3 ms·
This is great! Can you implement a data-changed event stream like the RethinkDB changefeed and Firebase triggers? https://rethinkdb.com/docs/changefeeds/javasc
by zackmorris 5y ago
This is great! Can you implement a data-changed event stream like the RethinkDB changefeed and Firebase triggers?
https://rethinkdb.com/docs/changefeeds/javascript/ https://rethinkdb.com/docs/changefeeds/javascript/
https://firebase.google.com/docs/functions/database-events https://firebase.google.com/docs/functions/database-events
This functionality is critical for writing web apps that reflect the current state when multiple users are collaborating on the same data.
I've been down the road many times of starting with a POST-style request/response website, only to find that it inevitably needs a realtime event feed over WebSocket to show notifications or otherwise update the view when another user changes some data. I can't stress this enough, but, IMHO a database that doesn't have this doesn't really have anything. And most databases don't have this.
If that's too ambitious, another option would be filters and/or callback hooks on the server. That way a process would be notified when something was trying to be changed, or had been changed. Then the user could append events containing the data identifier/path onto their own WebSocket manually. Apologies if you've already implemented this and I just haven't read the documentation.
Another rather selfish ask for myself would be a transpiler from SQL to your RefineASM DSL. Being able to go the other way would be pretty awesome too. I'd love to design queries using sets and be able to generate the SQL without having to deal with SQL's quirks since it's so old.