I have been loving FaunaDB for various projects, especially small side projects. One thing I have been playing around with is building a simple multiplayer dice game and I have a burning question:
Will FaunaDB be a good solution for real time UI?
The good so far:
- Concurrency is not a concern for me. FaunaDB handles concurrency well with its ACID model.
- Scale is not a concern either, especially with players in multiple geographic locations.
- GraphQL works great. I wired up with TypeScript types and feel confident when working on frontend UI.
The rough parts:
- Polling: I believe GraphQL subscriptions are on the roadmap (correct me if I’m wrong) and that would make things much easier. For now I am polling to get the “real time” feel, which is probably not great for FaunaDB operation limits but it works okay.
Debugging: Debugging logic is challenging. With complex functions, I often need to inspect state at a certain spot. The Debug function in
faunadb-fql-libis helpful but still not as convenient as an interactive debugger or even console.log (see related thread).