How sannidhisriram-06/bookstore-microservice-architecture-on-aws works
This is a small serverless bookstore API proof of concept. A client request is routed through API Gateway to the Lambda handler, which dispatches GET/POST /books requests and returns JSON responses; its current book data is an in-memory array recreated on each invocation. The README documents MongoDB Atlas and CloudWatch in the intended deployment, but MongoDB is not wired into the sampled handler. Those documented services are shown as separate deployment capabilities, not as implemented runtime calls.
Main entry points: index.mjs Lambda handler
Components 8
Request handling
- Lambda handler
index.mjs - Route dispatch
index.mjs - JSON response
index.mjs
AWS deployment
- API Gateway
- CloudWatch Logs
Book data
- In-memory books
index.mjs - MongoDB Atlas
Other components
- API client
Connections 7
- API client → API Gateway: sends HTTPS
README.md - API Gateway → Lambda handler: invokes
README.md - Lambda handler → Route dispatch: dispatches request
index.mjs - Route dispatch → In-memory books: reads and updates
index.mjs - Route dispatch → JSON response: builds response
index.mjs - Lambda handler → CloudWatch Logs: logs events
README.md - Lambda handler → MongoDB Atlas: would access
README.md