4 ms·
Yeah, api1.domain.com api2.domain.com If you've got a SPA using static files hosted on a CDN it's probably the best way to load balance. Like DNS but you have
by throwaway189262 6y ago
Yeah, api1.domain.com api2.domain.com
If you've got a SPA using static files hosted on a CDN it's probably the best way to load balance. Like DNS but you have control over backend selection.
You can set retry interval a lot shorter than DNS. No problems with DNS caching. And you can try secondary on HTTP errors, not just connection timeout. In my experience clouds like to fail in ways that return 500/400 instead of timing out
- deleted 6y ago[deleted]
- cutemonster 6y agoThanks. If you happen to know about any related article that you like, it'd be interesting to read
- throwaway189262 6y agoSure! Uber uses it for failiver instead of load balancing but same concept https://eng.uber.com/eng-failover-handling/ https://eng.uber.com/eng-failover-handling/