In this section, we are going to set everything up for our first microservice. A microservice is essentially just like every other backend application; that is, it is only configured and set up to operate in a network of services. There are a couple of implications and best practices that make networking much more manageable. Because the service is not addressing humans, we can be a lot more mechanical in the way we design it.
We will look into the following topics:
- Version control: Keeping an excellent track of what we changed when
- Using the API template: An easy template to use for most services.
- Dependency management: Including the needed packages
- Configuration: Setting it up correctly
- Routes: How to expose the service to the world.
Let's explore!