What Is Micronaut? In a nutshell, Micronaut is a lightweight, JVM-based framework that's ahead of compilation time, with less startup time.
Service Request-Offers Microservices is a simple microservices application using Micronaut framework. The application covers the following areas:
- Service Discovery using Netflix Eureka or Consul.
- Integration with Zuul Gateway.
- Securing Microservices with JWT.
- Using Micronaut Data with MySQL and Liquibase.
- Using Reactive Mongodb.
Read more https://medium.com/@hashimati/micronaut-microservices-fundamentals-in-practice-fdf74af2b88f
- Eureka Server or Consul Server: A Service Discovery Server.
- UsersService: It is an account management service. It provides registration, authentication and authorization services. Also, it propagates JWT tokens to RequestsService and OffersService. UserService stores users' data in MySQL instance and uses the Micronaut Data Framework to handle the data.
- RequestsService: This service produces all services which are related to requests. The service stores the requests in MongoDB instance. Also, it will consume the offers services as required.
- OffersService: This service produces all services which are related to the offers. Offers objects will be stored in a MongoDB instance. The OfferService invokes services from RequestService as requires
- Gateway: a Netfix Zuul gateway service.