Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Looks promising, but does anyone know if FoundationDB has external events or triggers, similar to Firebase or RethinkDB? I can't seem to find much on it.

If not, then a lot of potential is being left on the table, because usage would require wrapping FoundationDB in a proxy or middleware of some kind to synthesize events, which can be extremely difficult to get right (due to race conditions, atomicity issues, etc). Without events, apps can find themselves polling or rolling their own pub/sub metaphor over and over again. If anyone with sway is reading this, events are very high on the priority list for me thanx!



It has the ability to watch keys so building a notification system on top of it is pretty easy. Really only limited by your imagination.


In addition to single-key asynchronous watches, there are also versionstamped ops (for maintaining your own, sophisticated log in a layer) and configurable key range transaction logging (but see the caveats in my other post on the topic).

I'm not sure it has every feature it will ever need in this area, but it's a pretty good starting point for building "reactive" stuff.


Your response is both very exciting and slightly intimidating! Would love to see a “NewSQL” and/or event store built on top of FDB tech. Would the key ranges and versioned ops be capable of providing/emulating a performant “atomic broadcast” similar to that in Kafka?


Does the trigger execute in scope of triggering transaction with the same isolation level?


Versionstamped operations and transaction logging are fully transactional. Watches are asynchronous: they are used to optimize a polling loop that would "work" without them.


Would versionstamped operations fit for the log abstraction modeling question I've asked about here on the forums?

https://forums.foundationdb.org/t/log-abstraction-on-foundat...


Yes.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: