Hi,
Currently we are using mongo atlas for both stor db and data db. As we need to deal with huge number of documents ( More than a billion ) ... the indexes we had were big and we were getting performance degradation after certain limits. So we currently experimenting on using RDS for stor db and Redis cache for data db.
Current Configuration:
Data db: mongo ( with 8 vCpus)
Stor db: mongo ( with 8 vCpus)
CPS: We were getting around 900 CPS with this configuration when data is small.
New Configuration 1:
Data db: Redis cache ( with 4 vCpus)
Stor db: Postgres ( with 8 vCpus)
CPS: We got only around 200 CPS.
New Configuration 2:
Data db: mongo ( with 2 vCpus)
Stor db: Postgres ( with 8 vCpus)
CPS: We got around the initial 900 CPS which we had before with current configuration.
In conclusion we had bad cps when using redis as data db. In general redis cache should be faster than using a mongo ... so I was not sure if I was making some mistake.
Appreciate inputs from any one who worked on these lines before.
Thanks.