Skip to main content
2025

Improving performance and lowering document database costs with AiSensy

Learn how AiSensy, a WhatsApp solutions provider, reduced document database costs by migrating to Amazon DocumentDB.

Key Outcomes

20%

Lower spend on document databases

95%

Faster query performance

120

TB migrated in 3 weeks

0

Downtime for migration

Overview

More than 150,000 brands rely on AiSensy, a marketing platform built on WhatsApp Business APIs, to drive customer engagement and grow their revenue streams. As a fast-growing startup, AiSensy needed to improve the scalability of its platform so that it could continue to help its customers automate and scale their marketing campaigns globally.

To future proof its data foundation, the company migrated from MongoDB Atlas to Amazon DocumentDB (with MongoDB compatibility), a serverless, fully managed, MongoDB API-compatible document database service. By building on Amazon Web Services (AWS), AiSensy has streamlined its developers’ workflows while improving the performance and cost-effectiveness of its databases. 

About AiSensy

AiSensy is a WhatsApp marketing platform built on official WhatsApp Business APIs. Over 150,000 businesses use AiSensy to seamlessly communicate with customers, automate, and scale their marketing campaigns.

Opportunity | Increasing data storage on Amazon DocumentDB for AiSensy

AiSensy has experienced rapid business growth since it first launched its WhatsApp marketing platform in 2021. To process billions of messages, the company set up 12 clusters on MongoDB Atlas daily. 

As its data footprint grew to 120 TB, AiSensy began to search for solutions to reduce database costs and increase its storage limits. The company also experienced query performance issues on MongoDB, which impacted the stability of its platform and required ongoing maintenance. “We didn’t want our customers to lose trust in us,” says Gautam Rajesh Shelley, founder and CEO of AiSensy. “We experienced downtime at one point or another, so all of us were motivated to find a better solution.”

To be able to scale costs effectively, AiSensy decided to migrate to Amazon DocumentDB. Doing so would increase its platform’s scalability tenfold and help simplify the company’s technology stack on AWS. “Choosing Amazon DocumentDB was a no-brainer,” says Romit Singh Bhau, engineering manager at AiSensy. “If we migrated to some other document database, we’d have to rewrite a lot of our queries and application code, and that would’ve been a massive effort for our engineering teams.”

Solution | Using AWS DMS to migrate in 3 weeks with zero downtime

From the outset, AiSensy’s database team worked to maintain business continuity during the migration. Because the company was hitting performance and storage limits on MongoDB, AiSensy wanted to migrate as quickly as possible. 

To accelerate the migration, AiSensy used AWS Database Migration Service (AWS DMS), trusted by AWS customers to securely migrate more than 1.5 million databases. AiSensy worked closely alongside the AWS team to plan its migration. “We did a thorough evaluation of which clusters we needed to migrate first,” says Bhau. “We tracked our traffic patterns so that we could identify the ideal window to cutover.” 

AiSensy migrated the data from its clusters one by one. In between migration waves, the company performed load tests and data parity checks. To facilitate those efforts, AiSensy uses Amazon CloudWatch to observe and monitor resources and applications on AWS, on premises, and in other clouds. “All our logs are centralized in Amazon CloudWatch and can be accessed with a single query. It makes it very simple for our team to identify and troubleshoot issues,” says Bhau.

AiSensy uses Amazon DocumentDB change streams to automatically run event-driven functions using AWS Lambda, which empowers the company to run code without thinking about servers or clusters. When data is modified in Amazon DocumentDB, the change stream emits an event that cues an AWS Lambda function, which processes data asynchronously.

AiSensy completed the database migration in 3 weeks—with zero data loss or downtime. “Our migration went smoothly because we planned well in advance, and because we had consistent support from the AWS team,” says Bhau. “When we faced challenges, they were addressed proactively and effectively.”

Outcome | Fueling innovation while saving 20 percent on database costs

The migration helped AiSensy realize a 20 percent savings on document database costs. The company also experiences better performance and can handle database queries 95 percent faster than before. “Since we migrated to Amazon DocumentDB, our customers can load their dashboards, track key analytics, retarget customers, and make critical business decisions much more quickly,” says Shelley. 

Adopting fully managed services has also fueled developer productivity at AiSensy. By architecting event-driven data pipelines on AWS, AiSensy’s engineering teams no longer need to perform daily cluster maintenance to effectively scale to customer demand. 

With these productivity gains, AiSensy has redirected its engineering resources toward new product development intitiatives, including building generative and agentic artificial intelligence (AI) features. For its generative AI use cases, AiSensy plans to deploy foundation models using Amazon Bedrock, which fast-tracks generative AI applications and agents from prototype to production. “One of the biggest benefits of the migration is that we can seamlessly integrate our database with other AWS services,” says Bhau. “Now our teams can set up internal data pipelines and build new product features for our customers faster than before.”

Missing alt text value
Since we migrated to Amazon DocumentDB, our customers can load their dashboards, track key analytics, retarget customers, and make critical business decisions much more quickly.

Gautam Rajesh Shelley

Founder and CEO, AiSensy

Get Started

Organizations of all sizes across all industries are transforming their businesses and delivering on their missions every day using AWS. Contact our experts and start your own AWS journey today.
Contact Sales

Did you find what you were looking for today?

Let us know so we can improve the quality of the content on our pages