Real-Time Live Sports Updates Using AWS AppSync

Real-Time Live Sports Updates Using AWS AppSync provides guidance for building real-time sports score updates, game and match statistics, fantasy sports updates, and social media interactions.  

This guidance is highly customizable and can be applied to other systems in the media and entertainment industry; for example: live streaming program updates, breaking news, or stock market changes.

Benefits

Flexibility for multiple data/feed ingestion

Data source can be the media and entertainment company or a third-party provider

Live game updates
Live game updates

Event updates (for example, when a goal is scored) display in the mobile or web app

Fantasy score updates
Live game updates

Fantasy team members' status and scores are delivered in near real-time during a game

Push notifications
Live game updates

Updates are delivered to users when the mobile app is not in the foreground

Overview

The diagram below presents the architecture you can build using the example code on GitHub.

Real-Time Live Sports Updates Using AWS AppSync architecture

Build with AWS services in the following stacks:

Main stack — The main stack handles data pre-processing and real-time delivery of data. Data from a third-party feed provider is ingested into Amazon Kinesis Data Steams, then an AWS Lambda function transforms and enriches the data using configuration information from the Amazon DynamoDB table. The Lambda function also calls AWS AppSync to invoke a GraphQL mutation, save the data to a DynamoDB table, and notify subscribers of events in near real-time.
 
Ingestion stacks — The two optional ingestion stacks can be provisioned to handle data ingestion. They can deploy an Amazon API Gateway REST API and an AWS Step Functions workflow.
 
Notification stack — The notification stack uses a Lambda function to connect to Amazon Pinpoint and notify users via push notifications.
 
Simulation stack — The simulation stack demonstrates how the solution works and tests your customizations against a set of simulated sports games. It provides an interactive web application hosted in an Amazon Simple Storage Service bucket.

Real-Time Live Sports Updates Using AWS AppSync

Version 1.0.1
Released: 08/2021
Author: AWS

Additional resources

Did this Guidance help you?
Provide feedback 
Case Study
Sky Italia Delivers Real-Time Sports Updates, Optimizes Data Propagation 15x on AWS
Sky Italia used AWS to rebuild its on-premises architecture in the cloud, enabling real-time sports data pushes and reducing compute costs by 30 percent.
Read the full case study 
Build icon
Deploy an AWS Solution yourself

Browse our library of AWS Solutions to get answers to common architectural problems.

Learn more 
Find an APN partner
Find an AWS Partner Solution

Find AWS Partners to help you get started.

Explore icon
Explore Guidance

Find prescriptive architectural diagrams, sample code, and technical content for common use cases.

Learn more