August 2017
Intermediate to advanced
278 pages
8h 53m
English
One thing you don't want to do is queue thousands of requests as your backend system comes online. With a busy site, it's easy to overwhelm your system the moment it becomes available again. Especially since a big update or restart usually means local object caches within the backend are also cold, care needs to be taken when bringing it back online.
One great feature NGINX has is to lock the cache to ensure only one request per unique key is sent through. Here's an updated configuration to use this lock:
location / { proxy_pass http://www.verifiedparts.com:80; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Cached $upstream_cache_status; proxy_set_header Host www.verifiedparts.com; ...Read now
Unlock full access