reading-notes

code fellows reading notes

View on GitHub

Reading-Notes

Code Fellows Python 401

Read: 16 - Serverless Functions

What is Serverless Computing?

Serverless is a cloud execution model that enables a simpler, more cost-effective way to build and operate cloud-native applications.

Serverless vs. FaaS (function as a service)

Serverless pros and cons

| Pros | Cons | |—|—| | focus on writing code, not managing infrastructure | Stable or predictable workloads | | pay for execution only | Cold starts | | polyglot environment, code in any language or framework | Monitoring and debugging, move serverless architecture exacerbates complexity | | simplifies deployment | Vendor lock-in | | faster and more cost-effective | | | ear-total visibility into system and user times | |

Understanding the serverless stack

Comparing FaaS to PaaS, containers, and VMs

  FaaS  
Provisioning time: milliseconds minutes to hours
Ongoing administrative burden: None continuum from light to heavy
Elastic scaling: Instant and inherent, with auto-scaling to zero automatic but slow scaling, no zero scaling
Capacity planning: None require a mix of automatic scalability and capacity planning
Persistent connections and state: Limited more flexible
Maintenance: Managed by the provider Managed by the provider with significant more maintenance
High availability (HA) and disaster recovery (DR): Inherent no extra cost require additional cost and management
Resource utilization: 100% efficient some degree of idle capacity
Charging granularity and billing: units of 100 milliseconds by the hour

Use cases

Additional Resources

Bookmark and Review