Test Firebase Cloud Functions reliability with Gremlin Failure Flags. Inject latency and errors to validate trigger and downstream write resilience.
Firebase Cloud Functions are usually triggered by events rather than requests: a document write, a new user, a file upload. That indirection changes the failure story, because there's no caller waiting for a response and no obvious place for an error to surface.
When a triggered function fails or hangs, the event that caused it has already been recorded. The database write succeeded. The user was created. Whatever the function was supposed to do afterward simply didn't happen, and your system's state is now internally inconsistent with nothing checking for it. Retry behavior on triggers adds a second problem, since re-executing non-idempotent work creates duplicates.
Add Failure Flags to your function code and you can inject latency or errors into the downstream calls a trigger depends on. You'll find out whether a failed function leaves data half-written, whether retries duplicate work, and whether anything in your stack reports the gap.
For event-driven systems, the question isn't whether functions fail. It's whether anyone finds out when they do.
Dependencies: Failure Test
Simulate a failed dependency by dropping all network traffic to the dependency.
Dependencies: Latency Test
Recreate poor network conditions by delaying all network traffic to a dependency by 100ms.
Unreliable Networks - Dependencies
Simulate unreliable network conditions when communicating with dependencies by adding latency to API calls. Test whether your users are affected when dependency response times degrade.
* Failure Flags works wherever you can add the SDK to your application and run the Gremlin sidecar. Not every language and platform combination has been individually tested, and not all are officially supported. Check our compatibility documentation for what's verified, or get in touch if you don't see your runtime.
Intelligent Health Checks - GCP
Automatically monitor your Google Cloud services during testing in one-click with Intelligent Health Checks.
Avoid downtime. Use Gremlin to turn failure into resilience.
Gremlin empowers you to proactively root out failure before it causes downtime. See how you can harness chaos to build resilient systems by requesting a demo of Gremlin.
