Prime Captain Prioritizes Innovation and Ensures Smooth Scaling with Searce and AWS
Challenges
PrimeCaptain is a fantasy sports platform that offers the simplest ways of playing fantasy games. Prime Captain application is globally accessible and they are storing and delivering their data in S3. The users accessing the application are global and they face a lot of issues in latency. Along with that the application users of Prime Captain regularly face bandwidth issues and poor loading time while accessing the application. Other challenges like they have only one environment for production and other lower environments and all their deployments being carried out manually, they were unable to certify the build during testing and deploy it on the live production environment. Their other significant challenge was that the Application wasn’t able to handle bulk requests, failed to respond and slowed down during the busy sports season.
Searce Solution
Keeping in mind the problem statement about the latency, Searce configured AWS CloudFront for both static and dynamic content distribution based on Application Load Balancer (ALB).
The AWS infrastructure was designed and deployed in a way that it could scale based on peak loads.
- Created a CloudFront distribution to deliver the entire website of Prime Captain. Users can continue to use a single domain name (www.primecaptain.com) for a customer’s entire website. Amazon CloudFront provides us with granular control for configuring multiple origin servers and caching properties for different URLs on customer’s website
- Added CloudFront distribution to the Prime Captain infrastructure by creating origin ALB with SSL termination and Route 53 record
- Implemented the CloudFront Origin Security using Field-level Encryption as an Additional layer of Security(uses asymmetric Encryption), AWS WAF (to protect from web exploits), Secrets Manager and Restricting Access to S3(OAI)
- Created separate environments for Dev, Staging and Production
- Deployed the infrastructure by using Terraform
- Created VPC peering among the Dev, Staging and Production for private connections
- Automated the deployment of web tier by using CodeCommit, CodeBuild and CodeDeploy on AutoScaling Group
- Automated the deployment of App tier by using CodeCommit, CodeBuild on EKS
- Modified the Aerospike Database storage layer to handle around 5000 IOPS and 150 throughput
- Implemented the Managed Scale EMR with the combination On Demand and Spot Instances to reduce the cost and to scale EMR based on load
- Additionally, Searce also automated the provisioning of Dev and Staging environments using terraform and deployed the CICD pipelines for EKS and Auto Scaling Groups by leveraging AWS Native Developer tools
Business Impact
- Before implementation of Cloudfront Distribution the latency was 10 ms and post implementation it reduced to 2 ms
- Post implementation of Cloudfront distribution Prime Captain’s 40% latency issue resolved
- Reduced the complexity of the release process
- Test the builds and certify the builds before deploying on Production environment
- Redesigned the architecture helped the team to handle the peak load without any timeout errors
- Increased the pace of innovation and reduced rework to ensure time and money were saved
About Prime Captain
PrimeCaptain is a fantasy sports platform for the sports enthusiasts all over the world for fantasy games. The application offers game series like Cricket, Football, Basketball, and Baseball.
The platform offers the simplest way of playing fantasy games. The users create virtual teams consisting of players who actually play these games in real life. These virtual teams are then rewarded based on the points depending on the performance of the real players in the real games.
Industry: Gaming
Location: India