How akshara0405/cloudmart works
CloudMart is a serverless e-commerce application. Its main request path is API clients through API Gateway and authorization to product or order processing, with MySQL persistence; separate documented paths cover event notifications, daily reports, and the administrator dashboard. Product, order, and dashboard implementation details are only partially available, so edges between those components and AWS services rely on the README; the source index confirms the application modules use the bundled PyMySQL clients.
Main entry points: product-lambda/index.py Product service · order-processor/index.py Order processor · report-lambda/index.py Report Lambda · connections.py PyMySQL client
Components 15
Commerce API
- Lambda Authorizer
lambda/lambda-authorizer/index.py - Product service
lambda/product-lambda/index.py - Order processor
lambda/order-processor/index.py - Admin dashboard
dashboard/app.py
AWS Services
- API Gateway
- RDS MySQL
- EventBridge
- SNS notifications
- S3 reports
- Parameter Store
Operations
- CloudWatch monitoring
- Report Lambda
lambda/report-lambda/index.py
MySQL Client
- PyMySQL client
lambda/pymysql/connections.py - Order PyMySQL
lambda/order-processor/pymysql/connections.py
Other components
- API clients
Connections 19
- API clients → API Gateway: calls API
- API Gateway → Lambda Authorizer: authorizes requests
- API Gateway → Product service: routes product requests
- API Gateway → Order processor: routes order requests
- Lambda Authorizer → RDS MySQL: validates tokens
- Product service → RDS MySQL: reads and writes
- Order processor → RDS MySQL: reads and writes
- Product service → EventBridge: publishes inventory events
- Order processor → EventBridge: publishes order events
- EventBridge → SNS notifications: dispatches events
- CloudWatch monitoring → SNS notifications: sends alarm notifications
- RDS MySQL → Report Lambda: provides report data
- Report Lambda → S3 reports: stores daily reports
- EventBridge → Report Lambda: schedules daily run
- Product service → PyMySQL client: uses client
- Lambda Authorizer → PyMySQL client: uses client
- Admin dashboard → PyMySQL client: imports client
- Report Lambda → PyMySQL client: uses client
- Order processor → Order PyMySQL: uses bundled client