Home / Companies / Momento / Blog / Post Details
Content Deep Dive

Seamlessly caching MongoDB Atlas (it’s automagic!)

Blog post from Momento

Post Details
Company
Date Published
Author
Ryan Brown
Word Count
497
Language
English
Hacker News Points
-
Summary

Momento Cache introduces an innovative approach to caching for applications using MongoDB Atlas by extending the Mongoose ODM to automate caching processes without requiring code refactoring, significantly reducing latency. By integrating this caching with just one additional line of code, queries to MongoDB first check the Momento Cache, fetching from the database only if necessary, and then store the results for future use. This method, demonstrated in a Lambda function, showed that cached queries achieved an average latency of 2.8ms, a third of the 9.2ms latency observed with uncached MongoDB Atlas, highlighting the efficiency of this seamless caching solution.