1,514 karma · joined Aug 24, 2015 (11y ago) · 537 submissions
[ my public key: https://keybase.io/refset; my proof: https://keybase.io/refset/sigs/pyTK0thu8g5O4Zs7EA3HrQYKkYZjeEz_TUr8nZV2hlY ] c0ba44896414421c9009bc8a77a86ceb
meet.hn/city/51.0612766,-1.3131692/Winchester
Socials: - github.com/refset
---
comment 7y ago · link · parent
comment 7y ago · link · parent
A log gives you "transaction time" but you need to create an efficient representation of "valid time" for backfilling and corrections.
[1] https://en.wikipedia.org/wiki/Temporal_database
Disclosure: I work on a database for Kafka that provides point-in-time bitemporal Datalog queries https://github.com/juxt/crux
comment 7y ago · link · parent
comment 7y ago · link · parent
The RDF database marketplace is very established [3], and the likes of MarkLogic, DB2, and Oracle have clearly encountered profitable reasons to add RDF support. I believe RDF has good traction in knowledge-intensive industry domains such as clinical research and life sciences.
Disclosure: I work on Crux [4] which adds bitemporal versioning and eviction to a document->triplestore model running on top of Kafka.
[1] https://www.datomic.com/customers.html
[2] https://www.datomic.com/nubanks-story.html
[3] https://en.wikipedia.org/wiki/Comparison_of_triplestores
comment 7y ago · link · parent
[1] https://github.com/juxt/crux
[2] https://www.thestrangeloop.com/2019/temporal-databases-for-s...
486.
Show HN: Create an unbundled database with Crux and Confluent Kafka in 5 minutes(juxt.pro ↗)
12 points · by refset · 7y ago · 1 comment
comment 7y ago · link · parent
There was briefly (now deleted) a response to fulafel's comment which essentially pointed out how JavaScript itself should be considered a production-quality language that is up to the task. After all, JavaScript can also now be used to build JVM applications thanks to GraalJS ...except I wouldn't bet on that technology direction gaining much traction at this point in time (unless maybe Oracle has a trick up its sleeve).
comment 7y ago · link · parent
> GraalVM's polyglot abilities to load the JavaScript artifact from the ClojureScript app into the Clojure JVM and directly call the function with almost no overhead
I think Clojure is uniquely positioned here in its ability to fuse these JS<->JVM technologies using a single language and, in this instance, fully supplant the need for nodejs. Very impressive!
comment 7y ago · link · parent
Before I made this move, tinkering with Clojure and thinking about databases was just a hobby.
I wasn't around when Crux was initially designed and built, but my primary job so far as the product manager for Crux has been to figure out how we make the most of all the ingenuity and effort that's already gone into it. I also wear many additional hats at the moment: leading the development team, managing community interactions, speaking at events/conferences, creating the marketing, and working on sales & strategic partnerships.
This all keeps me incredibly busy but it is fun and it feels like the right thing for me to be working on and thinking about at this point in my life. I think of it like the perfect side-project that I am very fortunate to be able to work on all day long (and surrounded by excellent & talented people!).
comment 7y ago · link · parent
The transaction log design is a fundamental design tradeoff that Eva/Datomic/Crux share, which means system throughput is limited by the throughput of a single process. The argument in favour of such a design is that most businesses & business applications don't actually experience transactional data volumes over 10K tx/sec.
comment 7y ago · link · parent
comment 7y ago · link · parent
`EAV+T+added?` is the canonical data representation used by Eva, whereas Crux relies on two discrete "document" and transaction logs as the canonical representation. There are many reasons for this (data eviction, "unbundled" scalability etc.) but bitemporality (i.e. the ability to transact into the past/future) is definitely the primary reason why Crux doesn't follow the `EAV+T+Added?` pattern. You can get a feel for the indexes Crux uses here: https://github.com/juxt/crux/blob/master/src/crux/codec.clj#...
comment 7y ago · link · parent
One of the motivations for Crux was that `as-of` queries still weren't powerful enough for what the business really needed, which was something like `as-of` that could cope with retroactive corrections for out-of-order and delayed ingestion (of upstream transaction data).
comment 7y ago · link · parent
Edit: the other big picture Confluent quote I like is "You are not building microservices, you are building an inside-out database" (Tim Berglund, Confluent, 2018) which is a perfect answer to this other quote: "The hardest part of microservices is your data" (Christian Posta, Red Hat, 2017)
comment 7y ago · link · parent
We created Crux because we found ourselves routinely needing bitemporal functionality when building immutable systems that are capable of ingesting and interpreting out-of-order/late-arriving events [1].
So far we have decided against using Kafka Streams to keep our log-storage options very pluggable, but we pretty much implement the same mechanics.
Disclosure: product manager for Crux :)
comment 7y ago · link · parent
Another cool thing we haven't highlighted or documented anywhere yet is GraalVM support for the "standalone" deployment mode...which is mostly just for anyone who particularly dislikes the idea of using a plain old JVM :)
502.
Show HN: Crux, an open-source bitemporal Datalog database(juxt.pro ↗)
18 points · by refset · 7y ago · 1 comment
comment 7y ago · link · parent
The only issue I encountered was that adding comments after the final close parens in the code sections creates EOF errors.
comment 7y ago · link · parent
The documentation page alludes to payroll, audit and decision support applications -- have you implemented one or more of those already? I have been compiling a list of known uses for bitemporality in the Crux docs which you are more than welcome to borrow from:
https://juxt.pro/crux/docs/bitemp.html#_known_uses
It is great to see all this new enthusiasm for temporal databases now that they are finally viable, decades after all the major research happened :)
comment 7y ago · link · parent
comment 7y ago · link · parent
It sounds like this needs a second central log to enable eviction of sensitive data before it can be seriously considered usable. One log for transactions and another other for the data itself. Or at least that is the conclusion we reached when designing and building our own knowledge graph store (with a similar use of Kafka): https://juxt.pro/crux/docs/index.html#_unbundled
comment 7y ago · link · parent
Whilst there are no immediate plans from the core team to add columnar compression or otherwise improve our support for time series use cases, I think that a lot can be readily achieved by building on top of what already exists in the core. I very much look forward to seeing others experiment with the possibilities here.
[0] https://github.com/juxt/crux/blob/master/test/crux/ts_device...
[1] https://github.com/juxt/crux/blob/master/test/crux/ts_weathe...
[2] https://github.com/juxt/crux/blob/master/test/crux/decorator...
comment 7y ago · link · parent
Also note that Lotus Notes [1] has been doing all this replicated encrypted app platform stuff since the early 90s.
I am working on a log-centric bitemporal database at JUXT which I think intersects with this problem space as well, see my recent tweet relating to the article [2].
[0] https://www.scuttlebutt.nz/applications
[1] https://web.archive.org/web/20170228160130/www.kapor.com/blo...