So I'm designing a dapp that'll utilize a single account that I want to serve as a pot that all players can deposit SOL into and the winner can claim the entire pot. However, I know there will be bottleneck issues when more than a few people try to write to that account at once which would be a problem during heavy traffic. What is the best way to handle this? I was thinking about creating a simple Queue system on the client-side that doesn't run the sendAndConfirm transaction until it's next in line.
I was wondering if anyone has come across this issue before? I imagine someone has, but I don't know if there's any open source code to use as inspiration before attempting to implement my own thing.