Order Flow MS is a microservice application designed to handle order management with integration of RabbitMQ for messaging and MongoDB for data storage. This application demonstrates how to use these technologies together within a Spring Boot application.
- RabbitMQ: Message broker for asynchronous communication.
- Spring AMQP: Integration of Spring with RabbitMQ for sending and receiving messages.
- Spring Boot: Framework for building microservices.
- Spring Web: For creating RESTful APIs.
- Spring Devtools: Additional tools for development, such as automatic reload.
- Spring Data MongoDB: Abstraction for data access with MongoDB.
- Lombok: Reduces boilerplate code like getters, setters, and constructors.
- MongoDB: NoSQL database for data persistence.
- Docker Compose: Tool for defining and running multi-container Docker applications.
- Ensure Docker and Docker Compose are installed on your machine.
- Navigate to the project directory in your terminal and run the following command to start the containers:
docker-compose up -d
- Start the Spring Boot application using:
mvn spring-boot:run
- Access RabbitMQ at http://localhost:15672/ and publish a message to RabbitMQ.
- Test the available endpoint.
Route | Description |
---|---|
GET /customers/{customerId}/orders | Retrieve a list of orders for a specific customer. |
- To contribute, fork this repository and submit your changes via pull requests.
- For bug reports or improvement suggestions, open an issue on the project page.