r/Clojure • • Jan 17 '18

Datomic Cloud

http://blog.datomic.com/2018/01/datomic-cloud.html
73 Upvotes

18 comments sorted by

12

u/LessCodeMoreLife Jan 18 '18

Are licensing costs rolled into the AWS fees now?

7

u/ertucetin Jan 17 '18

Good news! I think Datomic's popularity going to increase. It saves lots of installation steps which is very nice for newcomers.

5

u/freakhill Jan 17 '18

I don't really know.

Stuff like that won't really help making it a rails-like hit at anytime soon.

But I guess it will still bring some amount of paying customers and that it will help existing customers for greenfield projects (and word to mouth customers who already have a foot in the stew).

Can't see the dev-cost being huge so it's a plus :)

3

u/dustingetz Jan 18 '18

The infrastructure has to exist (and be amazing) before the rails layer can exist; Cognitect is the infrastructure. If you're curious what the rails-killer could look like, check out https://www.reddit.com/r/Clojure/comments/7jjjnq/clojures_big_picure_edn_unifies_database_schema/

Shamless plug, I'm in this space: http://www.hyperfiddle.net/

4

u/TheLastSock Jan 17 '18

Stuff like that won't really help making it a rails-like hit at anytime soon.

I dont think Rails today is a "rails like hit" like it was 10 years ago. right? I think its unclear whats going to be a "big hit" and more importantly, i dont think popularity should be the goal here.

2

u/RodeoMonkey Jan 18 '18

A vibrant ecosystem should be a goal, and popularity helps that.

3

u/TheLastSock Jan 18 '18

Not disagreeing with that, I should have said "i dont think popularity should be the only goal"

Honestly, I sort of had a knee-jerk reaction to the comment. Comparing Datomic to Rails seems like someone is stretching.

2

u/hlship Jan 18 '18

I still don't understand one thing: my previous understanding of Datomic was that there could be only one transactor; now it appears that each cluster node can perform transactions? Is there some new locking mechanism or other way to serialize transactions, or am I just missing something entirely?

2

u/yogthos Jan 18 '18

Here are the topology docs for the cloud version.

3

u/hlship Jan 19 '18

I can see that there's multiple nodes in the TX group ... are they for fast failover, or are they all processing TXs? If the latter, it underscores my confusion, since (as I said) I've always been under the impression that only a single TX could be active.

9

u/richhickey Jan 19 '18

It's not exactly failover/transfer. At any point in time one node is preferred to transact (per db, and can differ), and in normal operation all txes for a db will flow to/through that node. If for any reason (e.g. a temporary network partition) that node can't be reached, any node can and will handle txes. Consistency is ensured by CAS at the DynamoDB level. This situation increases contention for DynamoDB and decreases throughput, so if the condition persists (or in the case where the preferred node disappears) a different node will become preferred. This is all immediate, there are no transfer/recovery intervals etc. Thus it is not like the mastership transfer and failover of Datomic On-Prem (and many other dbs). But neither should it be confused with parallel multi-writer (a la Cassandra).

1

u/yogthos Jan 19 '18

I'm guessing /u/alexdmiller can answer that one better. :)

3

u/forreddits Jan 17 '18

For the solo version, does the transactor and the peer server run on the same node?

4

u/jaretbinford Jan 17 '18

The architecture is slightly different in Cloud. All activities are handled by a single node in Solo. If you're interested in more details you can check out the architecture page here:

https://docs.datomic.com/cloud/whatis/architecture.html

1

u/jmayaalv Jan 17 '18

This is great news ! Awesome work!