Turtlewig, a serverless SaaS application for digital creators, faced a race condition due to network latency issues. The team used Hasura Event Triggers and an asset processing pipeline to eliminate the problem. They also implemented checks to handle edge cases such as failed database entries and dangling files in firebase storage. The solution involved using different components like Firebase Storage, client action, webhook, and Google Cloud Tasks.