DEV Community

Discussion on: How Facebook Live Scales

Collapse
 
joelbennett profile image
Joel Bennett

That was a really interesting read. I found myself on a project a little while ago that would have really benefited from knowing about that nginx setting. Long story short, there was a web service (we'll call it A) that made a call to another web service (we'll call it B). A would need to calculate something, so it would make a call to B to fetch and cache some data. Often, when the user made a request to A, A would end up making several calls to B for the exact same data. If we hit B with several simultaneous calls, the first call to it would succeed while the rest would fail (for a reason... it's complicated). Since all the calls in that set of calls from A to B were the same, we totally could have reduced it to just a single call to B.

Collapse
 
imwiss profile image
Wissam A

Thanks Joel, appreciate that! I agree with you - that nginx config would have saved you a lot of pain and debugging for this use case. I find that it's not a well-known config.