Hacker News new | ask | show | jobs
by knowinow 39 days ago
This is the one thing I found crazy with the Erlang pattern that a lot of modern orchestration seems to be emulating in other languages.. If you put fixed limits everywhere on the theory that requests will just come back after you let them crash then you basically have everything having some hard to fathom upperbound that flips everyone from doing a long request to trying an infinite number of long requests..
1 comments

The big rule with that is dependency loops. Every time someone creates a service that breaks up its own task list into subtasks and sends them directly or indirectly to itself instead of to a subordinate, there’s some traffic level where it hits the Dining Philosophers and deadlocks.

Recursion should never be used in distributed computing. Always modify it into delegation without recursion.

You don’t even need fixed limits to run into this. Resource exhaustion either in the queue or closures for started but suspended tasks will hit implicit limits eventually.