17. Production-readiness
criteria
Production readiness criteria
for reducing uncertainty
● Ownership
● Infrastructure as code
● Testability
● Routing
● Deployment and rollback
● Observability and operability
● Monitoring and alerts
● Reliability
● Outages
● Security
Abstract criteria status
Config change deployed in <5
minutes
New config can be triggered
without downtime
Deployment progress can be
monitored
@nellgwyn21
18. Production-readiness
criteria
PRC: Make the abstract specific
Abstract criteria status specific criteria notes
Config change deployed in <5
minutes
unverified Empirically observed
to comply
New config can be triggered
without downtime
yes Lambda is triggered
on each request, so
there is no such thing
as an unavailable
lambda
Deployment progress can be
monitored
yes Via CloudFront APIs
GetDistribution
method
@nellgwyn21
19. Production-readiness list is an ideal
RUNNIN' RHINO
Design by Allan Faustino
@nellgwyn21
The goal is to
increase confidence
23. What else could run on Lambda@Edge?
<image_uri>?w=600&r=75&fit=pad&bg=rgb:4b2
Request
The Contentful Images API
More code, more traffic, more risk.
@nellgwyn21
31. Literature
Orignal idea
● https://aws.amazon.com/blogs/networking-and-content-delivery/dynamically-route-viewer-requests-to-any-origin-using-
lambdaedge/
● Using Amazon CloudFront with Multi-Region Amazon S3 Origins
● Amazon S3 Region Failover — Part 2: CloudFront S3 origin failover
Failover
● Failover solution https://medium.com/cloudaholics/highly-available-multi-region-s3-website-cloudfront-distributions-29fe07195a3
● Cloudfront origin failover: Amazon CloudFront announces support for Origin Failover
Python 3 in Lambda@Edge
● Python for Lambda@edge https://aws.amazon.com/about-aws/whats-new/2019/08/lambdaedge-adds-support-for-python-37/
Multregion:
● AWS best practices https://www.youtube.com/watch?v=2e29I3dA8o4
@nellgwyn21
32. @nellgwyn21
Takeaways
Lambda@Edge is a cheap, scalable & highly reliable
platform for stateless APIs
Use production readiness lists to reduce risk
Trust your gut feelings, turn them into actions