Some of these suggestions (like the sleep(16)) also apply to non-HTTP APIs.
In fact, I find the headers part of the suggestion the least useful. No client will check these headers.
In fact, I find the headers part of the suggestion the least useful. No client will check these headers.
- Is it a distributed system ?
- Are the clients yours ?
- Is it one server, or our there thousands of components with the same API ?
These things influence what's possible and what's a good/bad strategy.