Follow Us

We use cookies to provide you with a better experience. If you continue to use this site, we'll assume you're happy with this. Alternatively, click here to find out how to manage these cookies

hide cookie message

Pinterest growth driven by Amazon cloud scalability

Rapid increase in Pinterest use wouldnot have been possible without AWS, company engineer Ryan Park says

Article comments

Pinterest operations engineer Ryan Park believes the explosive success of the social network would not have been possible without the scalability of the Amazon cloud services.

At the Amazon Web services Summit in New York he said: "The cloud has enabled us to be more efficient, to try out new experiments at a very low cost, and enabled us to grow the site very dramatically while maintaining a very small team."

As of last December, the social networking service employed only 12 people.

With very little in the way of internal IT infrastructure, Pinterest was able to attract almost 18 million visitors by the month of March, a 50% increase from the previous month, according to web ratings firm ComScore. The site has been one of the fastest growing sites in the history of the web.

Pinterest's use of Amazon's S3 (Simple Storage Service) grew by a factor of 10 since last August. Its use of Amazon's EC2 (Elastic Cloud Compute) grew by a factor of 3 in that time frame. The company now has about 80 million objects stored in S3, which holds about 410 terabytes of user data.

"Imagine we were running our data centre, and we had to go through a process of capacity planning and ordering and racking hardware. It wouldn't have been possible to scale fast enough," Park said.

Pinterest is an online pinboard, a service that allows people to collect and organise items of interest, so they can be viewed by others. The company uses a range of AWS services to run the site.

Today, Pinterest runs about 150 EC2 virtual servers, called instances, to run its core web services, which are written in Python and use the Django framework. Traffic is balanced across these instances using the Amazon ELB (Elastic Load Balancer). "The ELB has a great API, so we can programmatically bring in more instances, or take instances out if they are having problems."

Another 90 EC2 instances are dedicated towards caching, through memcache. "This allows us to keep a lot of data in memory that is accessed very often, so we can keep load off of our database system," Park said. Another 35 instances are used for internal purposes.

Behind the application, Pinterest runs about 70 master databases on EC2, as well as another set of backup databases located in different regions around the world for redundancy.

In order to serve its users in a timely fashion, Pinterest sharded its database tables across multiple servers. When a database server gets more than 50% filled, Pinterest engineers move half its contents to another server, a process called sharding. Last November, the company had eight master-slave database pairs. Now it has 64 pairs of databases. "The sharded architecture has let us grow and get the I/O capacity we need," Park said.

In addition to easy scalability, Amazon has also provided Pinterest with the ability to pay only for the resources it needs, which saves the company money. Most of Pinterest's traffic happens during the afternoon and evening hours in the US. It uses AWS' autoscaling feature so that more instances are added during the day when traffic is heavy, and excess instances are removed at night.

With this approach, the company is able to reduce the number of servers it uses at night by around 40%. Because Amazon charges by the hour, this reduction results in cost savings: During times of peak traffic, Pinterest spends about $52 an hour on EC2, though in the wee hours of the night the company can spend as little as $15 an hour.

Amazon's pay-as-you-go billing also lets Pinterest test new services without incurring the costs of buying servers or software. "There is no big sales process or big upfront costs when we try something out, so we can try experiments to see what works and what doesn't." Park said.

One successful experiment has been its use of Amazon's Hadoop-based Elastic Map Reduce for data analysis, a service that costs the company only "a few hundred dollars a month," he said.

During his own keynote talk, CTO Werner Vogels noted that today's web services, like Pinterest, need to have a way to scale very quickly, should they become successful. It would be almost impossible for a web service, should it grow wildly popular, to scale to the required size in a short period of time by buying and deploying systems in house. "We're here to help you with that," he said.

The company has been successful in this task. Overall, AWS now holds about 762 billion customer objects, and gets about 650,000 requests per second. Earlier this week cloud intelligence firm DeepField Networks estimates that about 1% of all internet consumer traffic in North America goes to the Amazon cloud.

Not everyone is enamored by the Amazon service. On the same day as the AWS Summit, environmental group Greenpeace hung a banner from the from the future Amazon headquarters in Seattle, chastising Amazon and Microsoft for not using clean energy to power their data centres.



Share:

More from Techworld

More relevant IT news

Comments



Send to a friend

Email this article to a friend or colleague:

PLEASE NOTE: Your name is used only to let the recipient know who sent the story, and in case of transmission error. Both your name and the recipient's name and address will not be used for any other purpose.

Techworld White Papers

Choose – and Choose Wisely – the Right MSP for Your SMB

End users need a technology partner that provides transparency, enables productivity, delivers...

Download Whitepaper

10 Effective Habits of Indispensable IT Departments

It’s no secret that responsibilities are growing while budgets continue to shrink. Download this...

Download Whitepaper

Gartner Magic Quadrant for Enterprise Information Archiving

Enterprise information archiving is contributing to organisational needs for e-discovery and...

Download Whitepaper

Advancing the state of virtualised backups

Dell Software’s vRanger is a veteran of the virtualisation specific backup market. It was the...

Download Whitepaper

Techworld UK - Technology - Business

Innovation, productivity, agility and profit

Watch this on demand webinar which explores IT innovation, managed print services and business agility.

Techworld Mobile Site

Access Techworld's content on the move

Get the latest news, product reviews and downloads on your mobile device with Techworld's mobile site.

Find out more...

From Wow to How : Making mobile and cloud work for you

On demand Biztech Briefing - Learn how to effectively deliver mobile work styles and cloud services together.

Watch now...

Site Map

* *