How Cars24 Rebuilt Search At Scale With MongoDB Atlas

Cars24 revamped its search using MongoDB Atlas, improving speed, cutting costs, and enabling real-time, scalable, and AI-ready search for millions of users globally.

author-image
Manisha Sharma
New Update
MongoDB Atlas

As digital marketplaces scale, search is no longer just a feature—it becomes the backbone of user experience, conversions, and platform trust. For Cars24, operating at a global scale with hundreds of millions of users, this challenge became increasingly complex as data volumes, user expectations, and real-time demands surged.

Advertisment

In an interaction with CiOL,Vinay Agarwal, Manager, Solutions Architect, MongoDB, shared how Cars24 reworked its search architecture using MongoDB Atlas to improve performance, reduce operational complexity, and prepare for the next phase of AI-driven search experiences.

He highlighted that the transformation was not just about improving speed but about rethinking how data, search, and infrastructure come together in a unified, scalable system.

During the interaction, Vinay pointed out that Cars24’s earlier search setup was becoming a bottleneck as the platform expanded across geographies and services. The combination of multiple systems added complexity and slowed down both development and operations. He emphasised that moving to a unified platform helped eliminate synchronisation gaps and enabled near-real-time updates, critical for a marketplace where pricing, listings, and user behaviour change constantly.

He highlighted that eliminating duplicate systems and synchronisation layers significantly lowered costs, while a managed service model reduced manual effort around scaling and maintenance.

As search evolves beyond keywords, Vinay underscored the importance of having a data foundation that can support AI-driven capabilities, like semantic search and personalisation. Vinay also addressed concerns around vendor lock-in, suggesting that engineering leaders should prioritise flexibility when choosing cloud databases. He emphasised the importance of systems that can operate across multiple environments without requiring major rewrites.

According to him, this approach ensures that organisations can adapt quickly as technology and business needs evolve.

Advertisment

Interview Excerpts

Cars24 manages massive, fast-changing datasets – vehicle listings, pricing intelligence, and buyer/seller behaviour. What were the fundamental architectural limitations in their previous search system that made scaling or relevancy tuning difficult?

Cars24 is an Indian multinational online car marketplace serving over 300 million users globally. The platform offers a wide range of services spanning vehicle buying and selling, insurance, maintenance, financing, and related solutions that are reshaping the entire car ownership journey. Therefore, the ability to search isn’t just a utility; it's a core part of the marketplace experience. Buyers and sellers depend on relevant, real-time results to find the right listings, make pricing decisions, and complete transactions.

The big challenge Cars24 were facing was architectural complexity that was slowing down their developers and increasing their operational overhead. Previously, Cars24’s search architecture used PostgreSQL as the primary database with a separate, bolt-on search engine layered on top. While this worked at a smaller scale, it became a structural constraint as the platform scaled and expanded to new geographies and services.

The shift to MongoDB Atlas and MongoDB Atlas Search removed the biggest reliability risk by eliminating the synchronisation layer altogether. With search now embedded directly within the database, Cars24 no longer depends on fragile pipelines or delayed indexing, which further ensures that listings, pricing changes, and behavioural updates are reflected in near real time even during traffic surges. This unified architecture inherently improves consistency and reduces failure points under unpredictable load and helps deliver new search features faster.

Latency in searches directly impacts conversion in marketplaces. Beyond “faster response times", what specific engineering principles or indexing strategies helped Cars24 keep search reliability high during traffic spikes and inconsistent data inputs?

In large-scale digital marketplaces, search performance is directly tied to business outcomes. As platforms grow in users, inventory, and geographic reach, search systems must handle unpredictable traffic spikes, rapidly changing data, and diverse query patterns, all while delivering results in milliseconds. This has pushed marketplace leaders to rethink traditional, multi-system search architectures and adopt more unified, resilient approaches that can maintain reliability and relevance under peak load.

Advertisment

For digital marketplaces like Cars24, sustaining low latency at scale with near real-time data required them to simplify their architecture and remove the complexity of maintaining separate data and search systems.

The move to MongoDB Atlas Search, which is powered by Apache Lucene, significantly strengthened search reliability under load by unifying the database and search layer. This eliminated the need for separate search indices and near real-time data pipelines, allowing queries to run directly within the same platform that was storing the operational data, which further reduces data movement and ensures fresher results without synchronisation lag.

In addition, this shift enabled Cars24’s engineering teams to spend less time provisioning and scaling search infrastructure and more time focusing on application development and improving search performance and relevancy, even during traffic spikes.

Advertisment

Many enterprises adopt cloud-native databases but struggle with cost governance over time. In Cars24’s case, how did the engineering team ensure scale without accidental cost explosion, specifically around storage, replicas, and query execution?

Again, the key recurring point here is simplification. Often costs get out of hand because of the proliferation of different services that get bolted together into unwieldy spaghetti architecture.

At Cars24’s scale, cost governance is a direct outcome of architectural simplification. The team achieved around 50% cost savings by consolidating its disparate data and search infrastructure – previously siloed across PostgreSQL, Elasticsearch, and ArangoDB – onto a unified platform.

Advertisment

By eliminating the 'synchronisation tax' – the duplicate infrastructure costs and heavy administrative overhead required to keep separate systems in sync – Cars24 significantly reduced its operational spend. Furthermore, the move to a fully managed service minimised manual labour for scaling, patching, data duplication and replication.

Search quality is now deeply influenced by AI signals, personalisation, similarity search, and natural language queries. How prepared is Cars24’s current data foundation to shift from traditional keyword-based search to AI-driven contextual search at scale?

Moving to a unified platform can significantly improve an organisation's ability to take advantage of AI-driven search. There are a couple of reasons for that.

Firstly, MongoDB’s document data model is built to match how developers think and work and seamlessly handles vectors and any type of data at the scale AI-enriched applications require.

Secondly, MongoDB simplifies the tech stack by delivering the capabilities needed for AI in a single data platform – including lexical (keyword) search for intelligent applications, semantic (vector) search for generative AI, and hybrid search by combining lexical with semantic search, delivering more accurate, context-aware results.

By eliminating legacy databases, removing separate search systems, and cutting heavy synchronisation work, an organisation can unlock the stability, scalability, and real-time performance needed for AI-driven contextual search at scale.

Vendor lock-in remains a major concern as platforms grow. What decision frameworks should engineering leaders apply when choosing managed cloud databases so agility isn’t compromised down the line?

To avoid vendor lock-in, engineering leaders should apply a framework that prioritises infrastructure independence. This means choosing a database built for continuous change that runs natively on any cloud, on-premises, or in hybrid environments with a consistent developer experience. By decoupling the data layer from cloud-provider-specific services, organisations can move workloads – including advanced search and AI capabilities – across AWS, Azure, and Google Cloud without rewriting code or overhauling data models.

This "run anywhere" strategy ensures that initial deployment convenience does not compromise future portability, allowing businesses to innovate at the speed of the market rather than at the pace of their provider.