4 ms·
Have those ever existed? https://xkcd.com/612/ https://xkcd.com/612/ Think of an app doing an AJAX call to load something from a database: 1. App sends HTTP r
by gregmac 3y ago
Have those ever existed? https://xkcd.com/612/ https://xkcd.com/612/
Think of an app doing an AJAX call to load something from a database:
1. App sends HTTP request
2. Load balancer gets request, sends it to actual server (or lambda or whatever)
3. Server gets request, makes database query
4. Database gets query, executes it against data
5. Data is returned to server
6. Server returns to load balancer
7. Load balancer returns data to client
Every single one of those points is a potential delay, and a potential failure point, and unpredictable. You don't know if the servers are heavily loaded or not, or if something is containerized and doing a cold start. You don't know if your query is going to return 1KB or 1GB of data.
It's not that it isn't possible to do something better than a spinner, but it's a really hard problem to predict "done". In most cases -- for example if your 95th percentile response time is <200ms -- the cost to do it doesn't justify the effort.