Is gRPC suitable for service-to-service communication?
— No, gRPC is useful for request-response scenarios but should not be used for service-to-service communication.
When is gRPC a good choice for communication?
— gRPC is a good choice for browser requests to backend services or API gateways that require request-response communication and building view models.
Why is messaging preferred over gRPC for decoupling services?
— Messaging is preferred over gRPC for decoupling services because it allows them to work independently and enables long-running business processes involving multiple services.
What are the challenges of using gRPC in long-running business processes?
— It is difficult to handle failures and undo previous actions without a distributed transaction system like in a monolith when using gRPC in long-running business processes.
When may gRPC not be suitable for service-to-service communication?
— gRPC may not be suitable for service-to-service communication when the originating request starts from a message pulled from a queue or broker, as failures can occur without impacting end users.
We’ve got the additional info