All technological notes.
Amazon CloudFrontBenefits:
Content Delivery Network (CDN)
Improves users experience
DDoS protection (because worldwide), integration with Shield, AWS Web Application Firewall

OAC is replacing Origin Access Identity (OAI)
OAC
CloudFront Distribution and create an Origin Access Control (OAC), then update S3 Bucket Policy to only accept requests from CloudFront Distribution.CloudFront:
S3 Cross Region Replication:













Application Load BalancerEC2 instanceS3 website (must first enable the bucket as a static S3 website)
You can restrict who can access your distribution
Blocklist:
The “country” is determined using a 3rd party Geo-IP database




Price Class All: all regions – best performancePrice Class 200: most regions, but excludes the most expensive regionsPrice Class 100: only the least expensive regions
In case you update the back-end origin, CloudFront doesn’t know about it and will only get the refreshed content after the TTL has expired
CloudFront Invalidation
You can invalidate
*)/images/*)
AWS Global AcceleratorUnicast IP vs Anycast IP
Unicast IP:
Anycast IP:


AWS Global Accelerator
Anycast IP are created for your application
Anycast IP send traffic directly to Edge LocationsEdge locations send the traffic to your application
Works with Elastic IP, EC2 instances, ALB, NLB, public or private
Benefit:
Consistent Performance
Health Checks
Security
AWS ShieldCommons:
AWS global network and its edge locations around the worldAWS Shield for DDoS protection.CloudFront
Global Accelerator
non-HTTP use cases, such as gaming (UDP), IoT (MQTT), or Voice over IPHTTP use cases that require static IP addressesHTTP use cases that required deterministic, fast regional failover