Use case
Efficient MongoDB Snapshot Restoration from Production to Development
- Vishalkumar Chaurasia
About the Customer
Freshfruit.ai is an innovative company specializing in assessing the quality of fruits and vegetables. Freshfruit.ai product involves a comprehensive analysis of fresh produce, offering detailed insights into their quality. The Freshfruit.ai application is available on both Android and iOS platforms, utilizing cutting-edge machine learning tools and AI-powered platforms to accurately evaluate the quality of fruits. Through this technology, Freshfruit.ai aims to revolutionize the global fresh produce supply chain by providing robust assessments and enhancing overall quality assurance processes.
Customer Challenge
Freshfruit.ai operates two MongoDB clusters: a production cluster for transactional data and a development cluster for testing purposes. The development cluster typically lagged one day behind the production data, and the synchronization between the two was performed using a nightly dump and restore process. However, this process proved inefficient, taking over two hours to complete and requiring significant server storage for the dump files. This inefficiency also led to resource consumption on the production cluster, impacting its performance. Freshfruit.ai needed a faster, more reliable solution to restore production data to the development environment.
Solution
IAMOPS addressed Freshfruit.ai’s challenge by leveraging MongoDB Atlas snapshots to restore the development cluster. This method was four times faster than the traditional mongo-dump and restore process. IAMOPS automated the entire snapshot restoration process using AWS Lambda functions and Jenkins automation. Key components of the solution included:
- Installation and configuration of Atlas CLI for managing MongoDB snapshots.
- Creation of AWS Lambda functions to manage ECS services, ensuring services were stopped before the restore and restarted afterward.
- Automation of the snapshot restoration process using Jenkins, which triggered AWS Lambda functions for smooth operation.
See the attached diagram for a visual representation of the solution.

Semantic Release Workflow
Results & Benefits
- The snapshot-based restoration process led to a significant improvement in efficiency, reducing the restoration time from two hours to approximately 30 minutes, a 4X improvement.
- Freshfruit.ai was able to maintain up-to-date data in the development environment without causing disruptions in the production environment.
- Automation of ECS service management using AWS Lambda functions improved service stability and reduced manual intervention.
- The total cost of ownership (TCO) for the solution was estimated at under $90 per month, delivering an affordable and efficient solution.
About IAMOPS
IAMOPS is a full DevOps suite company that supports technology companies to achieve intense production readiness.
Our mission is to ensure that our clients’ infrastructure and CI/CD pipelines are scalable, mitigate failure points, optimize performance, ensure uptime, and minimize costs.
Our DevOps suite includes DevOps Core, NOC 24/7, FinOps, QA Automation, and DevSecOps to accelerate overall exponential growth.
As an AWS Advanced Tier Partner and Reseller, we focus on two key pillars: Professionalism by adhering to best practices and utilizing advanced technologies, and Customer Experience with responsiveness, availability, clear project management, and transparency to provide an exceptional experience for our clients.