Chapter 5. Microservices Development
In the last chapters, we explained how to install Docker, Composer, and Lumen, which will be necessary for each microservice. In this chapter, we will develop some parts of the Finding secrets application.Â
In this chapter, we will develop some of the more crucial parts, such as the routing, middleware, connection with a database, queues, and the communication between microservices of the Finding secrets application so that you will be able to develop the rest of the application in the future.Â
The structure of our application will have the following four microservices:
- User: It manages the registration and account actions. It is also responsible for storing and managing our secrets wallet.
- Secrets: It generates random secrets around the world and also allows us to get information about each secret.
- Location: It checks the closest secrets and users.
- Battle: It manages the battle between users. It also modifies the wallets...