{"type":"video","version":"1.0","html":"<iframe src=\"https://www.loom.com/embed/b253253c828d42379a778cbb1aea4a87\" frameborder=\"0\" width=\"1920\" height=\"1440\" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>","height":1440,"width":1920,"provider_name":"Loom","provider_url":"https://www.loom.com","thumbnail_height":1440,"thumbnail_width":1920,"thumbnail_url":"https://cdn.loom.com/sessions/thumbnails/b253253c828d42379a778cbb1aea4a87-f9b46a75666bb1be.gif","duration":477.2956,"title":"Stress Testing State Management in Real-Time Auctions with XState and Convex","description":"In this video, I demonstrate a stress test of using XState in Convex for a live auction scenario, showcasing real-time bidding and state management challenges. I illustrate how both human participants and a simulated AI bot interact in the auction, highlighting features like bid increments and auction pausing. I also discuss the benefits of using state machines for robust business logic and the ease of testing them for edge cases. I'm curious to know if there's interest in open sourcing this concept or writing a blog post about it, and I welcome any feedback on potential scalability issues.\n\nForgot to show:\nSystem is robustly recording winners in ACID compliant manner for this critical settlement, click the END button to end auction early and see results."}