Subscribe / Unsubscribe Enewsletters | Login | Register

Pencil Banner

Survival of the Quickest

Sneha Jha | April 11, 2014
As Snapdeal's business grew 200 times, it needed its IT systems to scale and support its rapid growth. We take a look at how its CIO made that happen.

As Snapdeal's business grew 200 times, it needed its IT systems to scale and support its rapid growth. We take a look at how its CIO made that happen.

Shopping is an endless thrill. It gives a high that's unparalleled. It's powerful enough to make the most apathetic shopper succumb to his latent shopaholic impulses. But in today's fast paced life scouring shops and standing in painfully long queues makes shopping a gruelling experience. Online shopping has changed that. Today, buyers can just check out the multiple choices available on their laptops, snap up the best deals and their shopping is done. And one company that does that in style is Snapdeal.

Snapdeal is one of India's largest e-commerce companies. Launched in 2010, the online retailer boasts of a network of over 22 million members, over 4 million products across 500 categories and more than 20,000 sellers. The company caters to over 5,000 cities in India. Today, Snapdeal.com's platform enables sellers to list products for sale on the site, manage inventory, and make up-to-the-moment pricing changes.

While that sounds impressive, the amount of pressure this enormity of business puts on Snapdeal.com is overwhelming. Its inventory and pricing management system had to process more than 500 writes per second (write operation in the database allows sellers to make changes to the price and inventory). In the meantime, buyers review and rate sellers for customer satisfaction based on their product experience, including shipping, delivery, and returns. All this had to happen in real time. However, as the company grew at a blistering pace, it was faced with the challenge of managing data real-time. "In two years, we have scaled more than 200 times--the number of products listed, the number of sellers, the amount of business they do, the number of servers, storage and the technology team--everything has grown 200 times," states Amitabh Misra, VP- Engineering, Snapdeal.

To support its inventory and pricing system, Snapdeal had deployed 10 MongoDB NoSQL database servers with 5GB of data in DRAM as a cache in front of MySQL. As the seller base swelled and it started listing more products and making more changes in response to market dynamics, Snapdeal had to moderate the rate at which it was pushing updates--in terms of price and inventory. It had to spread them out evenly throughout the day as opposed to being able to absorb them in near real-time. Sometimes the updates had to wait for three hours and the sellers could not sell anything during that time. MongoDB's response times also shot up from 5 milliseconds to more than a full second. This compromised the buyer's shopping experience.

Moreover, Snapdeal anticipated its business volume would rise around Diwali and Misra wanted to address the challenge before it impacted business. "We needed our system response times to complete within 10 milliseconds, 95-99 percent of the time--even while our platform processed up to 10,000 reads per second," recalls Misra. With 500 percent growth in 2013, Snapdeal realized that it would require a high-throughput and low latency system that could scale from two million to 150 million records, from 10,000 to 30,000 reads per second, and from 30 to 500 writes per second. Misra started out by evaluating the available solutions on four parameters: Cost-effectiveness, the ability to perform concurrent reads and writes, scalability and performance. Most of the systems he reviewed failed to meet at least one of the four criteria.

 

1  2  Next Page 

Sign up for CIO Asia eNewsletters.