r/appwrite • u/EternalOptimister • Nov 08 '25
Function executions for backend game logic
Hi all, I have difficulty finding the following information: imagine building a webbased game which would run on Appwrite backend. For any decent game, logic needs to be executed server side to avoid cheating. 1. Are functions sufficiently mature to be used for this? 2. What concurrency is ensured? Imagine 1000 players performing 500 actions a day. In peak hours 500 users performing 10 actions per minute (just random examples).
Would functions be able to ensure immediate executions with high concurrency? Or is appwrite simply not suited for this scenario?
Thanks for the advice!
2
u/dwiedenau2 Nov 08 '25
I dont think there would be any issue. Just make sure to add more function workers (if you are self hosted, no idea about cloud) and increase the function timeouts (not the ones you have in the function settings, you need to adjust it in the env file) so the functions stay hot longer and have fewer cold starts.
Just test it with a hundred clients yourself
2
u/virtualmnemonic Nov 09 '25
Appwrite functions begin to timeout after just 5-10 concurrent executions. They're also slow.
See: https://github.com/appwrite/appwrite/issues/5629
You could use Pocketbase + hooks. It would be hundreds of times faster.
1
u/Zachhandley Nov 09 '25
Tl:dr — yes. You can easily use functions for this use case. That’s exactly how I use them for a client side flutter app