Spring Project

Bookstore: Architecture

The bookstore application is cut into the following microservices:
  • The catalog microservice provides access to the book catalog. It has its own local database but also accesses the Google Books API.
  • The order microservice is responsible for the customer and order management. When making an order, it looks up the books in the catalog microservice, makes a payment and sends a message to the shipping microservice.
  • The shipping microservice simulates the shipping of orders.

Architecture

Each microservice is implemented as a Spring Boot application and has a classical layer architecture:
  • The presentation layer consists of controllers that provide a REST interface.
  • The application layer consists of services that implement the application logic.
  • The integration layer consists of repositories that access the database and clients that access other microservices.