Follow a request through a cloud website
Explain which requests can be served from a cache and which still need a live app or database.
Find the entry point
DNS helps the visitor’s device find an address for the site. The address can lead to an entry point that accepts HTTPS requests and routes them. A load balancer can distribute suitable requests across available app instances so one instance does not have to handle every visitor.
A public entry point does not require exposing every internal service. The library can let visitors reach the website while allowing its database to receive traffic only from services that need it.
Separate public files from live actions
A cache keeps a reusable copy of a response for later requests. A content delivery network can store eligible responses in locations closer to visitors. A public map or picture is a candidate for caching. A reservation changes state and needs live processing.
A cache has rules about when a copy is fresh and what can be reused. A visitor might see yesterday’s opening hours until the cached response expires or is refreshed. Configure private responses so they are not reused for a different visitor.
Try it yourself
Mark the public logo, the current visitor’s account page, and the booking submission as candidates for shared caching or live handling.
See the reasoning
A public logo is a good shared-cache candidate. Treat the private page and the write operation as live through a shared cache unless deliberate rules safely account for their behavior.
Check your understanding
Choose one answer per question to see the explanation. 0 of 3 answered.