A scalable, low-latency cafe ordering and payment system built using serverless AWS architecture
This project is a cloud-native cafe management and ordering system designed to handle real-world ordering workloads with reliable payment workflows.
The frontend is built using HTML, CSS, and JavaScript, while the backend is implemented in PHP and deployed using AWS Lambda to achieve a fully serverless architecture.
RESTful APIs are exposed via AWS API Gateway, with persistent data stored in AWS RDS. Secure and compliant payment processing is handled using Cashfree.
- Serverless Backend powered by AWS Lambda
- RESTful API Design using API Gateway
- Secure Payment Processing with Cashfree
- Low-Latency Order Management using AWS RDS
- Auto-Scaling during peak cafe ordering hours
- Dockerized Setup for consistent local and cloud environments
- Client (HTML / CSS / JavaScript)
- AWS API Gateway
- AWS Lambda (PHP backend)
- AWS RDS (orders & payment state)
- Cashfree Payment Gateway
Request Flow:
Client → API Gateway → Lambda (PHP)
→ AWS RDS → Cashfree Payment
← Secure Callback Handling
| Frontend | HTML, CSS, JavaScript |
| Backend | PHP |
| API Layer | AWS API Gateway |
| Compute | AWS Lambda |
| Database | AWS RDS |
| Payments | Cashfree |
| Containerization | Docker |
- Designed for high availability during peak ordering times
- Implemented circuit-breaker logic for external payment API calls
- Handled secure payment callbacks to prevent duplicate transactions
- Focused on low-latency state management for real-time order updates
cafe-management-system/ ├── frontend/ │ ├── index.html │ ├── styles.css │ └── app.js ├── backend/ │ ├── handlers/ │ ├── services/ │ ├── config/ │ └── index.php ├── Dockerfile ├── database.sql └── README.md
- Docker installed
- AWS account with Lambda & API Gateway enabled
- AWS RDS instance configured
- Cashfree merchant credentials
git clone <repository-url> cd cafe-management-system docker build -t cafe-system . docker run -p 8080:8080 cafe-system
The application will be available at:
http://localhost:8080
- Package the PHP backend for AWS Lambda
- Deploy Lambda functions
- Expose APIs using API Gateway
- Configure environment variables for RDS and Cashfree
- Enable secure HTTPS endpoints
| Latency | Low |
| Scalability | Automatic (Serverless) |
| API Type | REST |
| Availability | High |
Vishal Soni
Cloud & DevOps Engineer
Email: vishalsoni6350@gmail.com
⭐ If you find this project useful, consider starring the repository.