Skip to content

hashimati/Service-Requests-Offers-Microservices

Repository files navigation

ko-fi

Micronaut Microservices Fundamentals In Practice

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:

  1. Service Discovery using Netflix Eureka or Consul.
  2. Integration with Zuul Gateway.
  3. Securing Microservices with JWT.
  4. Using Micronaut Data with MySQL and Liquibase.
  5. Using Reactive Mongodb.

Read more https://medium.com/@hashimati/micronaut-microservices-fundamentals-in-practice-fdf74af2b88f

Image of Diagram

  1. Eureka Server or Consul Server: A Service Discovery Server.
  2. 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.
  3. 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.
  4. 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
  5. Gateway: a Netfix Zuul gateway service.