I have a web application. The front end is written in React.
There is the API gateway which is where the front end requests arrive, first stop.
Then this api gateway talks to multiple microservices (i.e. other laravel apps).
I want to use RabbitMQ between my api gateway and all other microservices around it.
I want to use RabbitMQ locally, I have a server just for this application and the microservicesare hosted on the same server.
So, I did manage to set up RabbitMQ locally. I have managed to add messages (with data -as array) from the API gateway (my producer) to the RabitMQ queue. I can see the messages in the RabitMQ management.
Question: How do I read a message with its data at the receiver end?
Question: How do I reply to the producer with data?
I have been looking at it 3 days now and I can't find something really useful other than those plain examples that run with manual commands (sorry, but these are almost useless).
Do you have a clear example of that in Laravel? An example following best practices.
Do I keep connections open, do I not? What should I do and what I should NOT!
Please can you help?