2 Years, 0 Servers: Lessons learned from running a startup 100% on Serverless
summary
Company runs 100% serverless on AWS: Lambda + API Gateway, S3 for static, Serverless framework and deployment tool up. Production system has 70 functions and uses CI-side secret injection after SSM decryption hit limits. Tackles Lambda limits with recursive invocations to bypass the 15 minute limit and asynchronous API-handling for >30s work. Mitigations for cold starts include webpack bundling, pruning node_modules, lazy-loading and an open source bundler lambda pack. Benefits: zero servers, immutable versions, aliases and instant rollbacks; downsides: cold-start latency, extra AWS services and hop-induced latency.
AI-written summary · about
chapters (39)
- 0:00Introduction
- 1:47What is IDEO
- 2:13Lets build a Slack bot
- 2:23The upper bot
- 2:41Deploy to the cloud
- 2:53Write up
- 3:05Testing
- 3:21Comments
- 4:01Lambda
- 4:31What we got
- 5:40What we didnt get
- 5:50Will server lease work
- 8:09First thing
- 8:22Using aliases
- 9:35Infrastructure
- 10:09Serverless Example
- 10:42Security
- 12:22Limitations
- 12:59Recursive invocations
- 13:30Coupled invocations
- 14:19No persistent server
- 16:13Optimizing
- 17:41Lazy code
- 18:24lambdapack
- 18:50latency
- 19:52lambdas
- 20:37concurrency limit
- 21:04one large function
- 22:28secrets
- 22:55SSM
- 23:27Decryption
- 24:03Logging
- 24:32CloudWatch
- 24:49PaperTrail
- 25:45Active Improvement
- 26:26Improvements
- 27:02Challenges
- 27:19Conclusion
- 27:44Tals Twitter
related talks
54mServerless Architectures: no servers allowed!
40m4 Key takeaways from running Serverless on production for 4 years
44mServerless Architecture on Production: Good, Bad and Ugly Parts
42mNo Server Is Better Than No Server: Building Blocks for Serverless Architectures
58mServerless - the brief past, the bewildering present, and the beautiful (?) future
42mServerless Tales from the Trenches
01h 04mMigrating to Serverless - an experience report
39mServerless in production, an experience report
