sejori / peko

Featherweight apps on the edge 🐣⚡ Node, Deno, Bun & Cloudflare Workers.

Home Page:https://peko.deno.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Peko/Store - Observable datastore connected to Server Events

sejori opened this issue · comments

I believe it makes sense to include a lightweight datastore/database wrapper in Peko. By default data would be stored in-memory but database-service connection functions can be provided to change this.

It would also be cool to make data updates trigger ServerEvents so that new data could be emitted to client apps in real-time applications.

Nope. This would go against the stateless principle. Only disposable cache data will be stored on the server. External data services should be used for persistent. data