Amazon CloudFront is a fast content delivery network (CDN) service managed by AWS. It serves your contents across edge locations around the globe with high transfer speeds and low latency under secured connections.
In this post, we will set up an Amazon CloudFront distribution that serves private contents on your S3 bucket in order to speed up your content retrival while fully controlling user access permissions.
When developing HTTP APIs, we may have to process the same request-specific data throughout middlewares. Since it’s a quite common pattern, I decide to figure it out and share how I solve it.