INTRODUCTION
Explosive growth calls for a scalable, fast architecture
cure.fit, a health and fitness startup headquartered in India, has seen explosive growth during 2020. The company’s mobile application brings together all aspects of a healthy lifestyle on a single platform. It debuted in the United States just as consumers were looking for at-home fitness options while working from home due to COVID-19.
To keep up with demand, cure.fit needed a scalable architecture that could accommodate spikes in traffic, while also delivering unique content to users based on their segment.
THE CHALLENGE
cure.fit needed a way to deliver personalized content to users while managing spikes in traffic
cure.fit offers a suite of products, including cult.fit, eat.fit, mind.fit, and care.fit, so users can take a holistic approach to health and wellness. Each user is segmented based on their cure.fit usage and receives a personalized experience on pages such as merchandising, to help maximize revenue. However, with so many different use cases, the challenge was creating an architecture that was flexible enough to capture different data across user segments, quickly update to display personalized content, and scale to accommodate high traffic volumes like when a fitness class is in session.
THE SOLUTION
MongoDB Atlas on AWS accelerates feature releases from days to hours
Using microservices and MongoDB Atlas running on Amazon Web Services (AWS), cure.fit built a scalable, fast architecture that enables its developers to innovate quickly and be the engine powering this growing startup.
To achieve the scale and speed it needed, cure.fit broke down the application's infrastructure into 40 microservices, each enabling a specific piece of the business.
Originally MongoDB Atlas was used only when there were non-relational data requirements. However, as developers experienced how easy it was to develop with, how well it scaled and its rich feature set, such as support for ACID transactions, MongoDB Atlas has become the default database for new microservices. It is now the operational database for more than 60% of existing microservices.
One example of where this approach has been particularly successful is on the merchandising page. cure.fit uses a three-layer architecture where the application faces the end user, MongoDB Atlas is on the backend, and an API layer is in the middle. With the microservices approach, it only takes an hour to build a unique user experience, compared to at least a week for a traditional feature release. “When we released something to the user in the traditional way via some kind of code push or batches—if something goes wrong it becomes a huge pain,” said Kunal Khandelwal, Software Engineer, cure.fit. “But with MongoDB Atlas, we can just revert back to a previous version.” This strategy has enabled the team to A/B test quickly and discover new ways to engage users.


