Skip to content

sonerd/microservice-sample

Repository files navigation

Microservice Sample

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.

Prerequisites

  • Install MongoDB
  • run ./mongod --dbpath <path-to-data>

Techstack

  • Spring Cloud and Spring Boot Reactive
  • MongoDB
  • Docker

Addressed concepts

  • 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

How to run

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published