Building Super-Scalable Web Systems with REST - 3 views
-
Standard fare for most dynamic data and the way most everybody would tell you to do it. Only thing is that it scales like a dog.
-
The thing is that holding all the weather of the entire globe in memory, well, takes a lot of memory. More than is reasonable. In which case, there’s a fairly decent chance that a given request can’t be served from the cache, resulting in a query to the database, an update to the cache, which bumps out something else, in short, not a very good hit rate.
-
If we were able to make our clients in London perform an HTTP GET on http://weather.myclient.com/UK/London then we could return headers in the HTTP response telling the intermediaries that they can cache the response for an hour, or however long we want.
- ...1 more annotation...