This task is to convert to using MongoDB as a database engine instead of Redis. Redis is in-memory which would require the server to have a significant amount of RAM. Additionally, Redis does not allow queries or advanced operations other than fetching all of the records avaliable. Using Mongo we can store the data on disk, which reduces the RAM size, as well as have the ability to perform queries on certain fields instead of having to return the whole table.
Solution
This solution is done when:
Docker compose is modified to use MongoDB image instead of redis
The server can connect with MongoDB
All redis storage calls are converted into MongoDB calls.
A MongoDB schema is created that works well with our protobuf objects.
An easy conversion should be able to be used that converts our Protobuf objects into Redis schema objects. This article explains how this can be done and may be of use.
Enhancement Description
This task is to convert to using MongoDB as a database engine instead of Redis. Redis is in-memory which would require the server to have a significant amount of RAM. Additionally, Redis does not allow queries or advanced operations other than fetching all of the records avaliable. Using Mongo we can store the data on disk, which reduces the RAM size, as well as have the ability to perform queries on certain fields instead of having to return the whole table.
Solution
This solution is done when: