Serverless Functions
Info about what Serverless functions are...
Deploying Code as Serverless functions
- App code and dependencies are packaged into .zip files, with a a single entry point function.
- Example of cloud services that provide this: AWS Lambda, Google Cloud Functions.
- These services provide instant scaling upto 10,000+ requests per second, load balancing, etc.
- No worry of servers going down
- Only pay for compute time.
- Entire deployment package has to fit within 500 MB, <5 minutes execution time and < 3 GB memory (on AWS Lambda)
- Only CPU execution. No GPU!!
- Canarying: Easy to have 2 versions of Lambda functions in production.
- Easy to switch back to the previous version of the function.
Cons
Other Pros