Writing the QueryStack container

After we create the files from CommandStack, it's time to create the files in QueryStack.

In the query_db directory, we have only one Dockerfile. In this file, we have configured a MongoDB as the database. Look at the following file:

FROM mongo:latest
CMD [ "mongod", "--smallfiles", "--logpath=/dev/null" ]

At the end of the database configuration settings, we have a PostgreSQL for the CommandStack segment and a MongoDB for the QueryStack segment. This choice is due to the characteristics of the two technologies in front of the business. Postgres addresses an area where consistency is paramount, and Mongo addresses an area where non-impedance is most important.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.117.100.20