logoalt Hacker News

tontinton • yesterday at 6:47 PM • 0 replies • view on HN

What I don't understand is how you do backpressure if sending to an actor is never blocking?

I get the idea of avoiding cyclic deadlocks (A waiting on B waiting on A, or maybe in a longer chain), but crashing on OOM seems like a bad tradeoff.

Apparently this is the same in Erlang.

Or are you actually bounding the number of items that can live in mailbox and make "send" fail when full? Then you can do (bad) backpressure with timers, or register a "wakeup" message when the mailbox got an entry.

Honestly, I would be wary of running an OS that doesn't handle backpressure well, resources get contended all the time in performance critical apps like databases.

Would like to hear your thoughts on this.