5.5 Fail Fast
If slow responses are worse than no response, the worst must surely be a slow failure response. Itâs like waiting through the interminable line at the DMV, only to be told you need to fill out a different form and go back to the end of the line. Can there be any bigger waste of system resources than burning cycles and clock time only to throw away the result?
If the system can determine in advance that it will fail at an operation, itâs always better to fail fast. That way, the caller doesnât have to tie up any of its capacity waiting; it can get on with other work.
How can the system tell whether it will fail? What kind ...
Get Release It! now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.