How did Marks & Spencer engage over 1.5 million people in a viral, wildly popular holiday game in just one week? Auth0 authentication scalability, of course!
Thanks you for your help. We saw over 1.5 million registrations and our campaign got a social media sentiment score of over 95% positive, so it has been deemed a great success!!
— AKQA – Agency implementing the campaign
Marks and Spencer, the famous U.K. department store founded in 1884 is on the vanguard of digital marketing. Seeking to drive massive engagement for the 2015 holiday season, they brought back their popular and well-known online game, “Pass The Parcel” for its fifth year, to push the Marks and Spencer brand to the forefront of awareness and associate M&S with the spirit of holiday giving.
M&S partnered with AKQA, a creative agency in London with substantial experience in building digital campaigns to roll out the 2015 version of the game. Running between December 8 and December 14, participants registered by logging in with Facebook or Twitter, or by creating a username/password account. Once registered, players could unwrap up to 5 presents per day – driving repeat traffic and excitement. If they won a prize, they could redeem it through an SMS code at their local store or online. Win or lose, participants could Pass The Parcel to a friend, who after registering, had their own chance to unwrap the present and win, garnering an additional unwrap opportunity for the player passing the parcel.
This viral engagement feature along with over 100,000 prizes to win, including a grand prize of a £2,500 holiday shopping spree delivered in just 7 days:
AKQA needed a login method that was fast, reliable, social, and above all, massively scalable. They turned to Auth0 to incorporate a high-performance, custom instance of the service able to easily handle this load.
M&S had seen unprecedented demand for Pass the Parcel during the 2014 holiday season, and so had first-hand experience with overwhelming authentication scale requirements. AKQA, wanting to make certain that there would be no issues in handling the expected millions of players, worked with Auth0 to specify requirements well in excess of anticipated maximum demand, and then work with the Auth0 Customer Success team to perform full-load tests of the designed configuration.
Authentication is ordinarily very critical to application availability, but because users typically log in but once per session, and identity tokens usually remain valid across a large number of user transactions, identity systems rarely see the kind of scalability demands typical of databases and application servers, which might handle 1000s of operations per second for web-scale use cases. An exception to this rule is found with online games such as Pass the Parcel. With a big marketing budget and extensive promotion before the game went live, coupled with a game design that drives explosive user growth through viral engagement, AKQA was expecting a massive spike in authentication events right at the start of the game.
Based on past experience and expected load, and wanting to insure plenty of headroom for unprecedented demand, AKQA determined that they needed to demonstrate a test system able to handle a peak load of 500 authentication events per second. This is huge authentication scalability – and as was proven in production, even more than this viral game required. Auth0’s architecture, relying on industry-standard scalability best practices such as a stateless RESTful API, sophisticated caching, careful database design for Auth0’s MongoDB and ElasticSearch clusters and strategic use of solid-state disks meant that the system could be directly scaled up by adding more servers. Load testing with performance profiling uncovered several optimizations that could be applied to achieve even more authentication scalability, including sharding document collections into distinct MongoDB instances.
It made sense not to build an authentication provider ourselves from a commercial perspective. We would have burnt weeks of developer hours and ended up in a poor imitation of Auth0.
In a few weeks’ time, Auth0 delivered a proof of concept load test that demonstrated performance exceeding AKQA’s specified 500 operations per second.
The M&S Pass the Parcel campaign was deployed on the Auth0 nodes running on c3.xl instances and BaaS (Backend-as-a-Service) nodes running on AWS t2.micro instances.
During the period December 8 to December 14:
As was expected, the first day saw a massive and sustained load on the system. The following chart shows requests across all endpoints for the first day.
Throughout the day, the 95th percentile (green line) response time for username/password login events was consistently around 125ms, and the 99th percentile (blue line) less than 200ms.
Total number of requests over the entire campaign:
Just under half of the authentication endpoint requests made of Auth0 were to retrieve user profile data based on the user’s identity token. Most of the remaining requests were to perform authentications – either through social identity providers or through username/password. You can find more information about these endpoints in Auth0’s extensive, dynamic documentation.
An online game such as Marks and Spencer’s holiday Pass The Parcel campaign is in many ways, the worst case authentication scalability demand. The viral nature of the game generates massive numbers of registration and login events through both social providers and through username/password as eager players open presents and engage their friends to play. The game builds a huge audience of active players that remain active for the entire promotion while recruiting even more players, each of whom must register and then login to play, often multiple times per day.
Auth0 provided the perfect fit of out-of-the-box features, flexibility and enterprise-level service. The team at Auth0 went above and beyond to accommodate our crazy performance testing and deadline needs.
Auth0 proved its authentication scalability mettle with this extremely demanding production test, coming through with flying colors. Pass The Parcel brought smiles to over 1.5 million participants in just 7 days of web-scale, rewarding fun. The campaign was a huge success, with over 95% favorable social sentiment, driving sales, engendering goodwill, and powering digital engagement of a massive audience with a venerable, famous brand.
If it can handle something as demanding as Pass The Parcel, imagine how Auth0 can scale to handle your business’s authentication workloads. Built by developers, for developers, Auth0’s super simple API, comprehensive support for identity providers, and flexible deployment options can speed your time to market, no matter how big the opportunity.
Auth0, a global leader in Identity-as-a-Service (IDaaS), provides thousands of customers in every market sector with the only identity solution they need for their web, mobile, IoT, and internal applications. Its extensible platform seamlessly authenticates and secures more than 2.5 billion logins per month, making it loved by developers and trusted by global enterprises. The company’s U.S. headquarters in Bellevue, WA, and additional offices in Buenos Aires, London, Tokyo, and Sydney, support its global customers that are located in 70+ countries.