Case Studies > India’s Ecommerce Powerhouse Snapdeal Sees Immediate Payoff with Aerospike

India’s Ecommerce Powerhouse Snapdeal Sees Immediate Payoff with Aerospike

Company Size
1,000+
Region
  • Asia
Country
  • India
Product
  • Aerospike
  • MongoDB
  • MySQL
  • Amazon EC2
  • Amazon EBS
Tech Stack
  • Java
  • Linux
  • Amazon EC2
  • Amazon EBS
Implementation Scale
  • Enterprise-wide Deployment
Impact Metrics
  • Cost Savings
  • Customer Satisfaction
  • Productivity Improvements
Technology Category
  • Analytics & Modeling - Big Data Analytics
  • Application Infrastructure & Middleware - Database Management & Storage
  • Infrastructure as a Service (IaaS) - Cloud Storage Services
Applicable Industries
  • E-Commerce
Applicable Functions
  • Business Operation
  • Sales & Marketing
Use Cases
  • Inventory Management
  • Predictive Maintenance
  • Real-Time Location System (RTLS)
Services
  • Software Design & Engineering Services
  • System Integration
About The Customer
Snapdeal is one of the leading e-commerce platforms in India, empowering sellers across the country to provide consumers with a fully responsive and intuitive online shopping experience. The platform merges logistics subsystems with cutting-edge online and mobile payment models, offering a wide range of products from thousands of national, international, and regional brands. Snapdeal.com has a network of more than 20,000 sellers, serving over 20 million consumers. The platform is powered by the Aerospike database, which enables real-time big data processing capabilities. This allows Snapdeal to provide consumers with up-to-the-moment updates about product availability, pricing, and seller ratings, making buying decisions informed and convenient.
The Challenge
Snapdeal’s business and platform model is anchored by an innovative system enabling sellers to list their products, manage inventory and make pricing changes in real time while shoppers can review and rate sellers on issues such as shipping, delivery and returns. But challenges on how to maintain their platform’s real-time performance as the business scaled up 200 times arose. Sellers need to push their updates in real-time, and consumers demand a highly responsive online experience. With every page click, Snapdeal combines the updates from shoppers and sellers to display the most relevant products, as well as rankings for all the sellers that are offering the product by price, delivery time, and customer satisfaction. To support its inventory and pricing system, Snapdeal initially deployed MongoDB NoSQL database servers with data in DRAM as a cache in front of MySQL. The Snapdeal application used write-through techniques to update information first in MySQL and then in MongoDB, and it processed reads from MongoDB. However, as the business scaled and more sellers made price adjustments on more products, the MongoDB response times shot up from 5 milliseconds to over a second compromising the consumers’ shopping experience and leading to lost revenue opportunities. Worse, price changes were not always reflected in real-time.
The Solution
Snapdeal wanted a technology solution that could affordably scale as the business expanded. It required a high-throughput, low-latency system that could scale from 2 million to 150 million records, from 10,000 to 30,000 reads per second, and from 30 to 500 writes per second. Snapdeal also sought a technology solution that could affordably scale as the business expanded and did not want to use an expensive clustered relational database management system (RDBMS). For Snapdeal, the Aerospike in-memory NoSQL database provided several advantages over others. Most of the systems reviewed by Snapdeal engineers failed to meet at least one of the criteria: The existing MongoDB solution lacked predictable response times under high write loads, sharding was complex, and hardware requirements for scaling were cost prohibitive. Clustered RDBMS databases and the Terracotta BigMemory Max caching technology were too expensive. Redis did not have a server-side distribution mechanism at that point of time. Amazon Memcache and Amazon DynamoDB did not deliver predictable low latency. Couchbase replicas could only be used as backup copies, not to distribute load. Moreover, it required twice the number of servers as Aerospike for the same throughput. Aerospike performed with predictable low latency with 95-99% of transactions completing within 10 milliseconds—essential for enabling a responsive customer experience. Second, Aerospike had the highest throughput. Third, Aerospike delivered the highest price/performance—offering the lowest cost solution in terms of both hardware requirements and ease of operations.
Operational Impact
  • In-memory Aerospike database maintains sub-millisecond latency on Amazon Elastic Compute Cloud (EC2) while managing 100 million-plus objects stored in DRAM to support real-time dynamic pricing.
  • Predictable low latency with 95-99% of transactions completing within 10 milliseconds—essential for enabling a responsive customer experience.
  • Aerospike’s highly efficient use of resources enables Snapdeal to cost effectively deploy in Amazon EC2.
  • Full replication across the Amazon EC2 servers ensures business continuity.
  • Aerospike’s ability to work out of the box enabled Snapdeal to use Aerospike Client APIs and get up and running in days and nearly eliminate the need for maintenance.
Quantitative Benefit
  • Snapdeal scaled from 2 million to 150 million records.
  • Reads per second increased from 10,000 to 30,000.
  • Writes per second increased from 30 to 500.
  • MongoDB response times shot up from 5 milliseconds to over a second, which was resolved by Aerospike.

Case Study missing?

Start adding your own!

Register with your work email and create a new case study profile for your business.

Add New Record

Related Case Studies.

Contact us

Let's talk!
* Required
* Required
* Required
* Invalid email address
By submitting this form, you agree that IoT ONE may contact you with insights and marketing messaging.
No thanks, I don't want to receive any marketing emails from IoT ONE.
Submit

Thank you for your message!
We will contact you soon.