A visit to the Angry Birds store in the Amazon cloud
A Well-Feathered Nest
Thanks to the scalability of Amazon's web services, the Angry Birds shop and its databases do not fail even when visited by a teaming mass of bird lovers.
Rovio became known in 2009 with a small game that first appeared as a smartphone app. In the game, angry birds cause buildings to collapse with full wing power. Today, the Finnish company mainly generates revenue with T-shirts, cuddly toys, and key rings. Up to a million users a day visit the Angry Birds store in the cloud. At peak times, 5,000 visitors might be online at the same time, and the system processes multiple orders per second.
Rovio relies on Magento, an open source application for e-commerce, and combines it with Amazon Web Services (AWS) to operate the shop economically in quieter times. Rovio's Magento universe consists of the store with front ends for Europe, Asia, and America.
Integration to an external system exists to global warehouse management, shipping, a DRM server for licensing games, an email and gift card service, and the payment service Braintree.
Always Like New
Many online store owners can calculate the load on their systems fairly easily, but the Rovio store must be prepared for a very high volume of visitors when new products appear or a new ad campaign begins.
At the beginning of the project, Rovio, in collaboration with AOE media, decided to run the Angry Birds store in the form of agile software development and to add new releases constantly – a practice known as continuous deployment. Each element is treated as a software project and tested both automatically and manually; after each change, the system rebuilds the website completely from scratch.
Continuous deployment requires a sophisticated system for automatic quality assurance and rollout. It also needs to be capable of migrating new functions, modules, templates, and layout changes from test to production systems within minutes.
Rapid Testing
In the case of Rovio, the developers retrieve the current version on the site from system storage before starting work. Changes to the website flow back into backup storage. The modified site is then merged with the site operators' images and texts, which are waiting in backup storage.
After the first unit tests, the developers install the site on the "Latest System" where further tests follow (Figure 1). The site is then pushed to a staging server in the S3 cloud and, after final integration tests, ends up on the production system. All builds of the website, whether automatic or manually supported, are handled by the free Continuous Integration Server, Jenkins CI [1].
AWS at Your Service
The entire Angry Birds store infrastructure is virtualized on Amazon's Web Services. At the touch of a button, AWS provides databases (MySQL, Oracle, MS SQL Server) in different versions and also offers the option of automatically merging upgrades to minor versions.
The capacity of the database server can be flexibly modified after setup, although this causes downtime – it takes about 10 minutes to get a new database instance up and running. At the press of a button, snapshots can be created, from which the operators can generate new databases as needed.
At the same time, Amazon permanently creates backups of the latest versions. Restore point in time
lets you revert to earlier states. The company also guarantees high redundancy and availability, configurability of the Security Group [2] for hardening the database against external access, and a guaranteed number of I/O operations per second (provisioned IOPS). This setup provides a very good basis for a fully virtualized web store. CloudWatch [3], the integrated monitoring tool provides a comprehensive overview of the state of the system at any time.
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Canonical Releases Ubuntu 24.04
After a brief pause because of the XZ vulnerability, Ubuntu 24.04 is now available for install.
-
Linux Servers Targeted by Akira Ransomware
A group of bad actors who have already extorted $42 million have their sights set on the Linux platform.
-
TUXEDO Computers Unveils Linux Laptop Featuring AMD Ryzen CPU
This latest release is the first laptop to include the new CPU from Ryzen and Linux preinstalled.
-
XZ Gets the All-Clear
The back door xz vulnerability has been officially reverted for Fedora 40 and versions 38 and 39 were never affected.
-
Canonical Collaborates with Qualcomm on New Venture
This new joint effort is geared toward bringing Ubuntu and Ubuntu Core to Qualcomm-powered devices.
-
Kodi 21.0 Open-Source Entertainment Hub Released
After a year of development, the award-winning Kodi cross-platform, media center software is now available with many new additions and improvements.
-
Linux Usage Increases in Two Key Areas
If market share is your thing, you'll be happy to know that Linux is on the rise in two areas that, if they keep climbing, could have serious meaning for Linux's future.
-
Vulnerability Discovered in xz Libraries
An urgent alert for Fedora 40 has been posted and users should pay attention.
-
Canonical Bumps LTS Support to 12 years
If you're worried that your Ubuntu LTS release won't be supported long enough to last, Canonical has a surprise for you in the form of 12 years of security coverage.
-
Fedora 40 Beta Released Soon
With the official release of Fedora 40 coming in April, it's almost time to download the beta and see what's new.