I am interested in microservices and SOA. I read some tutorials. This is my understanding SOA. The API gateway receives lots of requests (requestA, requestB, ...) and put requests in messaging queues. Micro-services will consume the events in the messaging queues and do some processing. My question is after processing, how the response can be returned to requests (responseA to requestA, responseB to requestB).
I am not sure whether my understanding is right or wrong and whether messaging is used in every architecture.
Anyone can give me more details/examples how to decouple/connect the API gateways and the microservices. How to respond to requests? should the connection between API gateways and clients kept alive?
Sorry if my question is not clear. I am confused and have no idea how to understand each concept.
Any comment welcomed. Thanks