Deploy microservice using Amazon Web Services S3, API Gateway, Lambda and Couchbase
summary
Microservice that serves a simple books API is built with static HTML on S3, API Gateway for REST, Java AWS Lambda functions for business logic, and Couchbase running on an EC2 instance for persistence. Deployment uses an AWS SAM template that uploads a ZIP to S3 and creates the Lambda + API mapping; Lambda charges per 100ms billing with 1 million free requests monthly. Example flow: an IoT button event triggers a Lambda that upserts a JSON document into Couchbase; gateway-to-Lambda requires a small custom serialization layer.
AI-written summary · about
chapters (19)
- 0:00Introduction and speaker background
- 1:10Microservices definition and architecture
- 4:02Microservice deployment architecture overview
- 4:45Serverless computing challenges and solutions
- 6:50Serverless vs VMs vs containers comparison
- 10:20AWS Lambda as function as a service
- 13:10How AWS Lambda works and pricing
- 16:26Lambda use cases and triggers
- 18:54Creating a Java Lambda function
- 23:35Couchbase overview and integration
- 25:55Demo: Java Lambda with Couchbase
- 28:43API Gateway for REST API management
- 32:55Demo: Books microservice with API Gateway
- 39:18Development workflow and deployment
- 40:40Serverless Application Model (SAM)
- 43:54AWS S3 basics and relevance
- 45:41Deployment architecture summary
- 46:43Revisiting microservices definition
- 47:46Q&A and wrap-up
