Monday, March 8, 2021

AWS - General Design Principals (Serverless)

Take in consideration below given General design principal while designing serverless application

  1. Simple & Singular: Keep functions single purpose and simpler
  2. Design for concurrent requests not total requests: Leverage concurrency  
  3. Orchestrate application with State machine: Use Step functions for big process not with underlying functions chaining
  4. Do not share anything : As lifespan of function is short, you can't rely on storing and sharing in runtime memory of function
  5. Do not write hardware dependent code: As its short lived and get changed 
  6. 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

Node | Cluster Vs Worker Threads

Cluster: Multiple processes (scale app across CPU cores) Worker Threads: Multiple threads (handle CPU-heavy work inside one process) Cluster...