Looking for Architectural Advice

I’m developing a point-of-sale (POS) system as a personal project during my spare time.

For the front end, I’ve chosen Deku and Hyrule, and so far, the experience has been excellent albeit a bit rough. I keep going back to Conal Elliot’s brilliant Rick Rubin-like talks about FRP. It seems to be the perfect UX layer for FP.

On the data side, I’ve prototyped a switchable JSON/HTTP API, and I feel confident that it’s perhaps solid enough to start considering the back-end architecture.

Initially, I aspired to keep the entire stack in Purescript, embracing its type safety and elegance. However, when I compare it to frameworks like Servant in Haskell, it becomes clear that Node.js’s limitations could hinder the scalability and performance of a back-end built entirely in Purescript.

This has led me to consider alternatives: how feasible would it be to run a PostgreSQL database with Purescript Chez Scheme in the future? Could the Chez Scheme back end—recently introduced to Purescript—offer a viable escape from Node.js’s constraints? The thought of leveraging Chez Scheme for the back end is exciting, as it opens up new possibilities for performance and architecture.

I wonder if the adoption of this backend by a significant enterprise could drive the development of critical tools, like a robust PostgreSQL module. Languages like Rust and Go are gaining traction, but it feels like the broader developer community hasn’t yet realized the potential of Purescript on the Chez Scheme backend. If more people understood the opportunities here, it could lead to a renaissance for Purescript, enabling truly end-to-end solutions without compromise.

The underlying question I keep coming back to is: when will the community and industry recognize (and leverage) the extraordinary performance and efficiency of the Chez Scheme backend? It rivals anything currently available, yet Purescript seems to have fallen off the radar for many developers. I believe this could be the spark to reignite interest in the language—and finally make my vision of a fully Purescript stack a reality.


So what do you all recommend for a SUPER fast and robust back end?

Right now, my plan is to go with PostgreSQL and Servant (glued together with Nix flakes) but I’d love to hear some opinions of those that have trodden this path for a considerable distance.
Ps. I am open to literally ANY suggestion. I’ve even considered Elixir and Erlang.