3 ms·
> Consider an endpoint that makes 100 behind-the-scenes requests Don't do that; Don't ever make middleware retry. An API endpoint should be quick, and if you
by geocar 4y ago
> Consider an endpoint that makes 100 behind-the-scenes requests
Don't do that; Don't ever make middleware retry.
An API endpoint should be quick, and if you can't figure out how to make it quick, use batch processing metaphors (submit task/query task) and a task-runner instead. The task-runner can retry indefinitely, but a user needs to be given feedback or they will push the refresh button.