Serverless (Functions as a Service -- FaaS) tute
- Functions as a Service
- What is Serverless?
- What is AWS Lambda?
- https://martinfowler.com/articles/serverless.html
- https://serverlessland.com
Keywords:
- Stateless Functions
- Cold starts vs Warm starts
- Auto-scaling vs PaaS vs FaaS
- Pay-per-execution Pricing Model
Basically, the key idea for running a serverless application on AWS means:
- Write/create server-side business logic functions in AWS Lambda
- Then use/route HTTP requests through AWS API Gateway
Optionally,
- If you have a client-side SPA frontend that XHR to your Lambda backend functions, then you can compile static resources and, serve this client-side SPA through S3 -- with or without CloudFront, or CloudFlare as CDN.
- Your backend could be just pure compute function. Otherwise, some business logic implementation or, data processing and transformation (ETL for example) using persistence backend stack like RDS for database, DynamoDB or DocumentDB for NoSQL. And additionally a message queue like SQS or EventBridge in the mix!
- Node.js based Serverless Framework
- AWS Serverless Application Model
- Kubernetes Native Serverless Framework - https://kubeless.io
- Cloudflare Workers