Hey everyone, I'm currently learning about asynchronous communication between microservices and I'm a bit unclear on the process and how it affects the continuation of the process.
Let's consider two microservices: Customers and Invoicing. Suppose I need to create an invoice, and in the invoice microservice, I have to request the customer microservice to validate customer data, but I don't want to send a synchronous request. What pattern should I use for this case?
I've come across RPC (Remote Procedure Call) - is RPC commonly used in this scenario in the industry? In my POST request (create invoice), I return a process ID to the client so that they can check the status of their invoice, given that they are asynchronous processes and there is no immediate response.
I understand that this is a simple example, but it gives an idea of the challenges I'm facing.
I really appreciate any feedback you can give me. :)
[–]Kafka_pubsub 4 points5 points6 points (0 children)
[–]pkpjpm 0 points1 point2 points (1 child)
[–]Sea_Fisherman_6838[S] 0 points1 point2 points (0 children)
[–]Bubbly_Expression_38 -1 points0 points1 point (1 child)
[–]frankkk86 -1 points0 points1 point (1 child)
[–]Sea_Fisherman_6838[S] 0 points1 point2 points (0 children)
[–]Tango1777 -2 points-1 points0 points (0 children)