This is basically how Hapi works in the NodeJS world.
If the event loop is too long (you configure this) it means you're doing too much! So it issues 503s to all new traffic until the server can cope with the requests it's receiving and get the loop time time.
Works very well and you can configure it to do the same with memory limits as well.
Doesn't fix all issues, but it's a good way to keep your site usable by some users at least.
Not for some users though, usable for some requests. Users will still be annoyed when they can't complete actions, because some of their requests are failing randomly.
If the event loop is too long (you configure this) it means you're doing too much! So it issues 503s to all new traffic until the server can cope with the requests it's receiving and get the loop time time.
Works very well and you can configure it to do the same with memory limits as well.
Doesn't fix all issues, but it's a good way to keep your site usable by some users at least.