Notice
Key Performance Indicators
· GET /summaryInteractive Athena Federated Query
Real-Time Cross-Source JOINSelect or enter a customer to execute a live distributed SQL query. Amazon Athena joins transactional sales records in Amazon S3 with customer records in Amazon RDS MySQL in real time.
Rahul Kumar
C001 Athena Federated ResultMatching Sales Transactions from Amazon S3
| Order ID | Customer ID | Product ID | Order Date (S3) | Amount |
|---|---|---|---|---|
| 1001 | C001 | P001 | 2026-09-01 | ₹2,500 |
| 1003 | C001 | P003 | 2026-09-02 | ₹3,200 |
S3 — Sales Data
retail_analytics.sales (sales.csv)| Order ID | Customer ID | Product ID | Order Date | Amount |
|---|---|---|---|---|
| 1001 | C001 | P001 | 2026-09-01 | ₹2,500 |
| 1002 | C002 | P002 | 2026-09-01 | ₹1,800 |
| 1003 | C001 | P003 | 2026-09-02 | ₹3,200 |
| 1004 | C003 | P001 | 2026-09-02 | ₹1,500 |
| 1005 | C002 | P003 | 2026-09-03 | ₹2,800 |
Stored in Amazon S3 CSV bucket without relational indexing.
RDS MySQL — Customer Data
rds_mysql_catalog.retaildb.customers| Customer ID | Customer Name | City (Location) |
|---|---|---|
| C001 | Rahul Kumar | Hyderabad |
| C002 | Arjun Reddy | Vijayawada |
| C003 | Priya Sharma | Chennai |
Stored in Amazon RDS MySQL transactional relational database.
Customer Sales Leaderboard
0 recordsAggregated Athena Federated JOIN results · Click any row to query
| Rank | Customer | City | Orders | Total Sales |
|---|---|---|---|---|
|
Loading customer analytics from AWS...
|
||||
Sales by City
Sales by Date
DATA SOURCES
· Heterogeneous Cloud ArchitectureCSV object containing historical order transactions
sales.csvRelational database storing live customer master records
retaildb.customersExecutes distributed cross-source SQL queries in place
Trino EngineServerless query orchestration with AWS SDK v3
Node.js APISecure HTTP REST endpoints with CORS enabled
HTTP API v2System Architecture & Execution Pipeline
End-to-end distributed data processing flow without moving data
Project Concept & Architecture
Historical sales data is stored in Amazon S3, while customer information is stored in Amazon RDS MySQL. Amazon Athena uses federated querying to combine these datasets without first moving them into a single database. AWS Lambda and API Gateway expose the analytics to the web dashboard.
Live System Status
Federated SQL Query
Real query executed by Amazon Athena across S3 and RDS catalogs
SELECT
c.customer_name,
c.city,
COUNT(s.order_id) AS order_count,
SUM(s.amount) AS total_amount
FROM retail_analytics.sales s
JOIN rds_mysql_catalog.retaildb.customers c
ON s.customer_id = c.customer_id
GROUP BY
c.customer_name,
c.city
ORDER BY total_amount DESC;
This query joins sales data stored in Amazon S3 with customer data stored in Amazon RDS using Amazon Athena Federated Query.