Ever imagined, How IPL Fantasy League Applications deals with high Millions of requests per minutes?🤔🌟

We’re dealing with the top 3 Fantasy League Applications success stories in this blog which have created a huge impact on the market with the help of Amazon Web Services Dynamo DB with just a startup team of maximum of 16 people.😲

Case Study by Rohit Ghumare

Hey, Today I’m here to just share the “Gyaan ka Pitaara” for the most trending topic in current IPL season. Everybody in India watches IPL and shows their talent skills by managing the own cricket teams on Fantasy League Applications but I wanted to just ask one thing that you ever tried to learn: How they manage their huge servers? How they Render huge deployments? How they handle DevOps system?

For all of the above questions, Answer — Amazon Web Services (AWS)💎

FanFight

Cricket is arguably the most popular sport in India. In 1983, the Indian national cricket team won the Cricket World Cup, and it went on to garner a series of wins from 2002–2013. To allow zealous fans to participate as well as spectate, Akhil Suhag founded the fantasy sports platform FanFight. “We started with the mission of providing a better second screen experience and giving users better ways to be a part of the game happening in front of them,” says Akhil, CEO of FanFight. But just 2 years after the application’s launch, its hybrid database solution buckled during peak traffic of prominent matches, disrupting service for users and generating more work for FanFight’s small team. The company needed to be able to quickly scale on demand — and do so automatically so that its staff could focus their efforts on adding value to the business.

Fanfight

FanFight Cuts Costs by 50%, Boosts Daily Revenue by Four Times Using Amazon DynamoDB

The FanFight team turned to Amazon DynamoDB, a fully managed key-value and document database from Amazon Web Services (AWS). Amazon DynamoDB is popular in the gaming industry because it can scale reliably to millions of concurrent users and requests while delivering single-digit millisecond performance. It naturally fit with FanFight’s existing application architecture based on the serverless AWS Lambda, which executes code when triggered by Amazon DynamoDB. Using this AWS solution, FanFight was able to scale for peak traffic on game days while massively reducing costs and improving staff productivity.

Searching for Simplicity and Scalability👌

FanFight is the second-biggest fantasy sports platform in India, with nearly five million users who create teams, compete against each other, and potentially win cash daily. Cricket is the main sport, but the app also has leagues for basketball, soccer, and kabaddi, a contact sport popular in India. Quizzes engage users and diversify revenue for FanFight during the off-season.

Using Amazon DynamoDB’s autoscaling capabilities, FanFight could easily accommodate traffic fluctuations without any action or preplanning on the part of its team of fewer than 50 employees. Amazon DynamoDB would function seamlessly alongside AWS Lambda to execute code only when needed, conserving compute resources and therefore money. Amazon DynamoDB’s pay-per-usage model meant FanFight paid only for the resources it consumed. FanFight was also drawn to the fully managed AWS solution because the company didn’t have a DevOps team that could tackle software development and IT operations. “We are a very small team, and we don’t have any DevOps, so Amazon DynamoDB was the perfect solution for us,” says Tushar Dhara, vice president of technology at FanFight. “We don’t have to do anything.”

Migrating to Amazon DynamoDB Overnight👦

In December 2019, FanFight migrated to Amazon DynamoDB in less than 4 hours. A week before the migration, the company performed a successful proof-of-concept trial with about 20 million requests to test the solution and check that data would migrate quickly to minimize application downtime. Helping to facilitate the migration were Amazon EMR and Amazon Simple Storage Service (Amazon S3), an object storage service that offers industry-leading scalability, data availability, security, and performance. FanFight converted its data 80 million records — using Amazon EMR, then put it into Amazon S3. From there, AWS Lambda ran the data to Amazon DynamoDB.

AWS provided continual support by supplying best practices prior to the migration and monitoring the application during the migration to detect any bumps in the road. Tushar says the AWS team was available in the middle of the night, replying within an hour or two. “Anytime I called the AWS Support team — the Technical Account Manager or solutions architect or anyone — they responded quickly,” he says. “That helped give us a lot of confidence.” FanFight’s AWS Technical Account Manager also connected the company to the right technical experts within AWS, helped identify and mitigate potential risks, and conducted AWS Infrastructure Event Management to facilitate a smoother migration. And with the help of AWS Enterprise Support, which provides 24/7 technical support from high-quality engineers, tools, and technology, FanFight knows it can get the right support whenever it needs it.

Using Amazon DynamoDB, FanFight achieved a simplified structure with one database solution rather than a hybrid of MongoDB Atlas and Amazon EMR. Now the app can scale up to one million writes per second with no service disruption. After migrating to Amazon DynamoDB, FanFight saw optimized API call response time and faster player points updates in the leaderboard. Using Amazon DynamoDB Streams, which captures a time-ordered sequence of item-level modifications in any Amazon DynamoDB table and stores this information in a log for up to 24 hours, FanFight also provided users nearly lag-free real-time transactional push notifications. Because FanFight pays less during low-usage periods, the company cut costs by $450,000 annually when it stepped away from MongoDB Atlas — a 50 percent reduction. Furthermore, FanFight increased daily revenue by four times. But FanFight hasn’t just improved its bottom line; it’s made better use of its resources. “Obviously there are multiple cases where we can use money better,” says Akhil. “It goes into acquisition retention. Processes are streamlined, so everything from support to billing moves to one common place. That takes a lot of headache out of it and lets people focus on important things.”

♦ Mobile Premier League (MPL)

A Fast-Growing Mobile Gaming Market

With the proliferation of smartphones and affordable mobile data plans in India, mobile gaming is quickly becoming a common pastime. According to Kantar IMRB, India currently ranks fifth among the world’s top mobile gaming markets. Bangalore-based Mobile Premier League (MPL) is one of the biggest and fastest-growing players, offering more than 40 games via its eSports platform. All games, including fantasy sports or the country’s favorite, Rummy, can be played for cash prizes. The MPL mobile app launched in September 2018 and acquired 10 million users within three months, which met the company’s one-year subscriber goal. Today, MPL has more than 40 million subscribers, making up 14 percent of the total mobile gaming market in India, according to the 2019 report “The Power of Mobile Gaming in India.”

Mobile Premier League

Small Team for Big Jobs🚀

Post Credits

The startup launched on the Amazon Web Services (AWS) Cloud because many of its DevOps engineers had experience on the platform, which accelerated time-to-market. Scalability and automation were also a priority for MPL’s AWS Cloud infrastructure. The startup began with Amazon Aurora as its primary database, using Amazon Relational Database Service (Amazon RDS) to automate administrative tasks such as provisioning and backups. However, as its dataset grew — particularly its volume of unstructured data — MPL found that Amazon DynamoDB NoSQL database service worked better for gaming use cases because it offered low-latency data access and easy horizontal scaling. Amazon DynamoDB can efficiently handle volume, velocity, and veracity for the data-heavy workloads typical of gaming companies. Additionally, the database automatically scales capacity to maintain performance during peak periods such as nationwide sporting events, when online traffic for MPL’s fantasy games can spike to 2.5 million hits per minute. Such automation is key in MPL’s architecture and resource planning. Despite being a year and a half into operations, MPL’s DevOps engineering team have never had to expand since launch. “Our team of 12 engineers manages DevOps, reliability engineering, and 24/7 monitoring,” says Mukta Aphale, vice president of Reliability Engineering at MPL. “We don’t need a big team to run all our applications on AWS.” Its DevOps engineers currently use a microservices architecture for development, automating the deployment of more than 50 separate microservices using AWS CodeDeploy and AWS Lambda.

For below stanza, Go through my EKS article. You will understand What is the power of Amazon EKS??

Performance at Scale☢

AWS solutions architects held several discussions with MPL and thought them importance of containerization which aims to stabilize application performance at scale and improve operational efficiency. Its engineers use Amazon Elastic Kubernetes Service (Amazon EKS) to run the containers with high availability. “We appreciate being able to control our architecture and decide where and how to automate things. Amazon EKS is much more robust than open source Kubernetes,” Aphale explains. Implementation of containers is just the first step in MPL’s cost optimization journey. During its first year of operations, the company was focused on scaling and right-sizing its architecture. Now, teams are working on optimizing infrastructure costs and looking to innovate further. Aphale says, “We’re pleasantly surprised with the proactive help from AWS to improve our architecture and save costs.” Working with their assigned TAM on finding the right instance types for production versus non-production workloads has gone a long way toward reducing costs. In addition, MPL signed up for the AWS Enterprise Discount Program. Since beginning cost optimization exercises, MPL has cut infrastructure costs by 40 percent.

eksworkshop.com

Dream11: From a Dream to Reality!

The online gaming sector in India has undergone a tremendous change in the last few years. The online gaming market in India which stood at $290 Mn in 2017, is expected to grow to $5 Bn by 2022. A report by Flurry Analytics said, “India currently ranks among the top five countries in the world for online and mobile gaming.” Being India’s number one online gaming platform did not come without hurdles. First of them being the legal challenges, particularly because of its similarity to gambling, which is largely illegal in India. The industry though growing at an ever-increasing speed is at a self-regulatory phase. The version of Dream 11 Application in which we can play fantasy league was never a part of google play store. Only the later was available in google play store because the play store does not allow ‘pay and play’ apps. After the investments from Tencent Games, Their registered users grew from 2 million in 2016 and to 45 million in 2018. They decided to remove the free version of the game and now only the Dream 11 Pro — which is now Dream 11 official app is available for download from their official website.

Case Study from 2017

In 2018, Dream11 welcomed Mahendra Singh Dhoni as its new brand ambassador, which helped a lot in the image building of the platform, making it easier for the public to trust. In 2019, BCCI signed up Dream11 as IPL’s official fantasy sports partner till 2022. This was not only validation for Dream11, but the whole fantasy gaming sector in the country.
In Inc42’s 42Next list, Dream11 was one of 42 innovative startups.

In 2020, it is the IPL’s title sponsor!

AWS help to achieve Dream11 reach heights of success!!

Now, that Dream11 is not available in the Google Play Store, it has to have a really powerful website. For web hosting, Dream11 uses Amazon Web Service (AWS).

Amazon CloudFront backbone of Dream11 App

CloudFront is Amazon’s content delivery service. It gives developers and businesses an easy way to distribute content to end users with low latency, high data transfer speeds, and no minimum usage commitments. The goal of the Content Delivery Network (CDN) is to serve content to end-users with high availability and high performance.

DNS Server Provider

DNS, or the Domain Name System, translates human readable domain names (for example, www.amazon.com) to machine readable IP addresses (for example, 192.0.2.44). A DNS service such as Amazon Route 53 is a globally distributed service that translates human readable names like www.example.com into the numeric IP addresses like 192.0.2.1 that computers use to connect to each other. The Internet’s DNS system works much like a phone book by managing the mapping between names and numbers. DNS servers translate requests for names into IP addresses, controlling which server an end user will reach when they type a domain name into their web browser. These requests are called queries.

Amazon Web Services — Data Center Provider

Datacenter GIF credits

In today’s fast-moving, interconnected economy, a company’s IT solutions can either empower it to compete in increasingly crowded markets or hold it back. Developing a strategy for technology infrastructure is no longer just a concern for large-scale enterprises, but also for the smallest businesses. If an organization doesn’t have a plan in place to address its future data and computing needs, it can be caught in a situation that makes it impossible to respond to changing circumstances or take advantage of unexpected opportunities.

Benefits of AWS

  • Ensures API latency of 30 milliseconds or less
  • Maintains application uptime of 99.9%
  • Cuts infrastructure costs by 40%
  • Provides automation to support growing its business without increasing resources

Thanks for Reading…✨

Do connect with me on below platforms:

I wrote awesome blogs, Do check my blogs/Articles which crossed 2L views on above medium profile given. Thanks ❤

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store