Server side event workers
Since we building more of a turn-based style slower game with lots of roles, permissions, acl it fits well in-between any two examples.
In llama farm the /worker/client.ts is being run by the client via the console.
Our goal is to generate events into a events table most of these process fairly quick, analytics and such but will get more compute heavy as time goes on, some events we want to run immediately . Its not something where we need a remote worker. Our worker needs to process the events and do often many mutations etc. The base question is how would you best run this worker on the hosting server?
Examples like AI-town seem to push us towards just doing as much as possible within convex. But will we regret putting too much compute on convex from a cost standpoint eventually. Our db interactions are just going to be unavoidably heavy. I don't exactly the idea of a 1 second tick type thing as with ai-town.
Is it possible to have server side(webhost) event listeners that respond immediately to pushed update from convex? Are there examples?
Seems like we might end up with a bit of everything.
