3 ms·
While I like the simplicity of the lookup table, I find myself in larger projects to have different backoffs for different upstream services. I'll have shorter
by unsnap_biceps 1y ago
While I like the simplicity of the lookup table, I find myself in larger projects to have different backoffs for different upstream services. I'll have shorter ones for services that can degrade without a large impact to service results and longer ones for services that are critical for results. I would prefer to have one algorithmically generated call that is flexible vs multiple individual functions that have different lookup tables, or generating tables and passing them in each time.
- fmbb 1y agoYou could have two lookup tables.
- deleted 1y ago[deleted]
- harpiaharpyja 1y agoGenerating tables is the way to go in that case. The flexibility you need, with the advantages of being data driven.
- kiitos 1y agoBackoff is a client-side behavior, so if you want to give different backoff behaviors to different classes of upstream services, you just define those backoff tables somewhere where the client can pick from them based on the target service it's trying to talk to.