A basic exposure to RabbitMQ communication between Microservices
This is a simple demo project created using Springboot which utilizes a non-http(s) way of communication between the Microservices. This might be useful to others or to my future self. There are hundreds of tutorails which explain about communication b/w Microservices using HTTP but very minimal when it comes to non-http(s) that is AMQP, so felt this is not exposed much so here we are.
- Entity - A simple POJO which contains bootstrap methods (Constructors, Getters/Setters)
- Producer - Responsible for creating a POJO object, Encrpyting and transfering to the MQ
- RabbitMQConfig - Contains all the Rabbit MQ configuration files required for the process
- Consumer - Responsible for collecting the data from MQ, Decrypting and storing the data in a list for simplicity
Swagger-UI documentation is now available at http://localhost:8080/swagger-ui.html
- Communication using RabbitMQ
- Slapped a decent AES Encrpytion/Decrpytion algorithm which helps secure the data while communicating
- Single Microservice which contains Producer and Consumer (may it be the readers wish to implement these separately)
I will be constantly updating this repo with more useful information that I might learn and document it using this repo. This will definitely help others and also myself once I return back to this field after a few days.
Planned Features Include:
Implementing Google Protobuf to provider data serliazationImplementing Swagger-UI for API documentation- Implement a proper Consumer Microservice separately which communicates via RabbitMQ with Serialized Encrypted Data