Take in consideration below given General design principal while designing serverless application
- Simple & Singular: Keep functions single purpose and simpler
- Design for concurrent requests not total requests: Leverage concurrency
- Orchestrate application with State machine: Use Step functions for big process not with underlying functions chaining
- Do not share anything : As lifespan of function is short, you can't rely on storing and sharing in runtime memory of function
- Do not write hardware dependent code: As its short lived and get changed
- Design for failure & care for duplicates: For failures make sufficient retries, as well as ensure that it would not generate duplicates
No comments:
Post a Comment