This is a sample project to demonstrate how a microservice could be developed based on the Spring stack. The sample is including a product-service and a review-service. Beside that there is a composite service which uses both services. The configuration is handled by the config-server.
- Install MongoDB
- run
./mongod --dbpath <path-to-data>
- Spring Cloud and Spring Boot Reactive
- MongoDB
- Docker
- using reactive repositories to handle the data layer
- enabling MongoDB auditing with
@EnableMongoAuditing
- using auditing fields like
@CreatedDate
in the entity classes - writing integration tests based on Spring Boot testing APIs
- using a configuration server
- enabling resilience with Hystrix
- using event streams for eventual consistency