Logo

dev-resources.site

for different kinds of informations.

BUILDING AN EVENT DRIVEN GAME NOTIFICATION APP

Published at
1/10/2025
Categories
devops
cloud
cloudskills
aws
Author
heritageolaleye
Categories
4 categories in total
devops
open
cloud
open
cloudskills
open
aws
open
Author
15 person written this
heritageolaleye
open
BUILDING AN EVENT DRIVEN GAME NOTIFICATION APP

USE CASE
I was tasked with designing a Games Notification system, leveraging a serverless architecture. The solution utilizes an AWS Lambda function, integrates with an external API for data retrieval, and employs Amazon Simple Notification Service(SNS) for disseminating notifications.

Image description

PREREQUISITES

  • AWS free tier account

  • Knowledge on serverless service

  • python

DEFINITION OF SERVICES.

  • AWS Lambda Function: It enables seamless code execution without requiring manual infrastructure configuration.

  • Simple Notification Service: It enables the delivery of notifications to subscribed endpoints, such as email addresses, phone numbers, or application endpoints.

  • Event Bridge: It serves as a scheduler and event bus, triggering the Lambda function at specified intervals.

Amazon Simple Notification Service (SNS)
Let's create the SNS that will serve as a notification.

Image description

Image description

Kindly leaves everything at default and create topic.
Next, is to create subscription so as to allow it to send to our email.

Image description

Image description

Image description

Lambda Function
Firstly, let's create IAM role for the Lambda function to define its permissions and access to AWS services.

Image description

Image description

Image description

Image description

Image description

Now let's create our Lambda function since we have created our policies and role.

Image description

Image description

Image description

API KEY
I was able to get the free API key from https://sportsdata.io/cart/free-trial-confirmation/nba

Image description

Image description

Image description

Code testing has been completed successfully, and the SNS has sent a confirmation email as expected.

Image description

Image description

EVENTBRIDGE
Now, let's configure EventBridge to schedule the game notifications, ensuring timely and automated delivery.

Image description

Image description

Image description

Conclusion

We have successfully implemented a game notification system utilizing a serverless architecture, leveraging AWS Lambda, Amazon SNS, and EventBridge. The system integrates with an external API using Python, enabling seamless notification delivery to users.

cloudskills Article's
30 articles in total
Favicon
DEPLOYING A WEB APPLICATION WITH ARM TEMPLATE AND AZURE CLI
Favicon
Site Reliability Engineering (SRE)
Favicon
BUILDING AN EVENT DRIVEN GAME NOTIFICATION APP
Favicon
Security Best Practices for Trading and Risk Analytics Workloads
Favicon
AWS Services and IAAS
Favicon
WEATHER DASHBOARD
Favicon
End-to-End Encryption for Healthcare Workloads
Favicon
Enforcing guardrails in the AWS environment
Favicon
Unlock Seamless Operations with Expert AWS managed cloud services
Favicon
AWS Global Infrastructure: Regional Edge Caches, Local Zones, Wavelength Zones, And Outposts
Favicon
AWS Global Infrastructure: Availability Zones, Regions and Edge Locations.
Favicon
Terminology from Software Development & Operations
Favicon
AWS Security Case Studies: Lessons from the Field
Favicon
General AWS Terminology
Favicon
Leveraging AWS EC2 for a Modern Nigerian Lifestyle: A Cloud Computing Solution
Favicon
How to use Glue crawler to add tables automatically
Favicon
Mastering Cloud Costs Optimization: Proven Strategies And Best Practices
Favicon
Auto scaling Multi-tier Web Application deployment architecture on Cloud(AWS)
Favicon
Secure Remote Access to AWS Environments
Favicon
Unlocking the Cloud: Your Guide to AWS Essentials
Favicon
Securing Data Lakes and Analytics on AWS
Favicon
Unlock Seamless Operations with Expert AWS managed cloud services
Favicon
Security Management and Advanced Threat Protection
Favicon
AWS Cloud Security Course in Delhi: Master Cloud Security with Ease
Favicon
Step by Step Guide to deploy a web app with CI/CD pipelines on Azure App Service.
Favicon
Serverless Security Best Practices
Favicon
Exploring Logging Best Practices
Favicon
AWS Security Considerations by Industry: Finance, Healthcare, and Beyond...
Favicon
Building a Secure CI/CD Pipeline on AWS
Favicon
Migrating Legacy Systems to Cloud-Based Solutions

Featured ones: