3 ms·
> We've all had a program crash from a stack overflow. Launching a cloud function that recursively triggers the same cloud function, that doesn't have a simple
by seanwilson 6y ago
> We've all had a program crash from a stack overflow.
Launching a cloud function that recursively triggers the same cloud function, that doesn't have a simple safeguard for it looping or blowing up, and where billing scales with the number of cloud functions ticks the "very high risk" and "very high impact" boxes for me. A program running on a single server isn't similar here (you could accidentally create a DoS attack though).
Typical cloud function use is some event gets triggered like a user sign up, the function executes, then it halts. The above isn't a standard use case and is so incredibly risky this approach shouldn't be attempted in my opinion.