Tools to develop a basic microservice
Developing an application is not just a coding process. In this chapter, to develop our microservice, we also need to select the Node.js framework and store information in our database:
- Database: We need to store information somewhere. It’s better to keep the service itself simple and store the information in a separate database:
For this service, we’ll be using MongoDB, a popular database that works differently than traditional SQL databases. MongoDB is a popular choice for building web services with Node.js technology.
It’s designed to handle situations where users mostly read information, and it can store a lot of data efficiently. MongoDB can be easily expanded by adding more servers as needed.
- Node.js framework: You can build a fully functional microservice using just Node.js but it takes some time and a lot of lines of code. Nowadays, most developers use the Node.js frameworks to build services fast with a minimal...