Data orchestration
In shared data patterns, there is no need for the orchestration of data, because the microservices will use the same physical component for storage of the data. In the case of our related microservice, News
, this can be seen in the docker-compose.yml
file of our application.
In our archive, we add that MongoDB is our database. The declaration is done very simply by giving a name to the container, specifying the door where MongoDB will be exposed, and giving the command that should be executed for the functioning of Mongo:
mongo: image: mongo:latest container_name: "mongodb" ports: - 27017:27017 command: mongod --smallfiles --logpath=/dev/null # --quiet
Now, we add the microservices that we created earlier. The three offices have the same pattern. The highlight is the environment variables. The APP_SETTINGS
 variable indicates which setting we adopt in the microservice according to what is contained in the config.py
file of the application. The...