https://github.com/madhurajayashanka/aws-sse-lambda-dynamodb
This repository demonstrates a real-time data streaming system using AWS DynamoDB Streams, AWS Lambda, EC2 (Node.js SSE Server), and Next.js Frontend. When data changes in DynamoDB, AWS Lambda triggers an event that updates an EC2-based backend. The backend then pushes live updates to a Next.js frontend via Server-Sent Events (SSE).
https://github.com/madhurajayashanka/aws-sse-lambda-dynamodb
aws aws-dynamodb aws-dynamodb-setup aws-ec2 aws-lambda nextjs15 server-sent-events streams
Last synced: 7 months ago
JSON representation
This repository demonstrates a real-time data streaming system using AWS DynamoDB Streams, AWS Lambda, EC2 (Node.js SSE Server), and Next.js Frontend. When data changes in DynamoDB, AWS Lambda triggers an event that updates an EC2-based backend. The backend then pushes live updates to a Next.js frontend via Server-Sent Events (SSE).
- Host: GitHub
- URL: https://github.com/madhurajayashanka/aws-sse-lambda-dynamodb
- Owner: madhurajayashanka
- Created: 2025-03-08T15:44:29.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-03-09T03:49:42.000Z (7 months ago)
- Last Synced: 2025-03-25T00:48:14.325Z (7 months ago)
- Topics: aws, aws-dynamodb, aws-dynamodb-setup, aws-ec2, aws-lambda, nextjs15, server-sent-events, streams
- Language: JavaScript
- Homepage: https://medium.com/@madhurajayashanka/real-time-dynamodb-stream-updates-with-aws-lambda-ec2-and-next-js-frontend-b4296540ba82
- Size: 1.66 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Real-Time DynamoDB Stream Updates with AWS Lambda, EC2, and Next.js
## Overview
This repository demonstrates a real-time data streaming system using **AWS DynamoDB Streams, AWS Lambda, EC2 (Node.js SSE Server), and Next.js Frontend**. When data changes in DynamoDB, AWS Lambda triggers an event that updates an EC2-based backend. The backend then pushes live updates to a Next.js frontend via **Server-Sent Events (SSE)**.
### π₯ Key Features:
- **Real-Time Streaming**: Updates in DynamoDB are streamed directly to the frontend.
- **AWS Lambda Trigger**: Automatically processes new DynamoDB records.
- **Node.js SSE Server**: Runs on an EC2 instance and pushes live updates.
- **Next.js Frontend**: Displays real-time updates from the backend.---
## π Architecture
1. **DynamoDB Table**: Stores real-time data.
2. **DynamoDB Streams**: Captures changes in the table.
3. **AWS Lambda**: Processes stream events and sends updates to EC2.
4. **EC2 Node.js Server**: Acts as an SSE server for real-time updates.
5. **Next.js Frontend**: Connects to SSE and displays live data.## π Architecture Flow
Hereβs an overview of how real-time updates flow through the system:

---
## π₯ Real-Time Streaming Demo
Check out the real-time data flow in action:

---
## π Read More on Medium
For a detailed breakdown, check out my Medium article:
π **[Read the Full Article Here](https://medium.com/@madhurajayashanka/real-time-dynamodb-stream-updates-with-aws-lambda-ec2-and-next-js-frontend-b4296540ba82)**