Fork me on GitHub
#datomic
<
2018-02-28
>
Chris Bidler17:02:08

I would like to confirm my understanding of the current state of clients and Datomic Cloud: Cloud offers, at present, only the Client API in Clojure, correct? There isn’t a REST API server nor other implementations of the Client API wire protocol to allow for things like JavaScript or Python applications to natively consume Datomic Cloud databases?

jaret17:02:32

@chris_johnson You’re correct. There are feature requests for a JavaScript Client, Python Client, Elixir Client on our suggest a feature page (top right of http://my.datomic.com). You should log in and add your vote to one of those features.

jaret17:02:01

There is also a feature request to support ClojureScript Client lib.

grounded_sage18:02:31

I haven’t done much with Datomic. But the project on at work is ideal for it. It’s already months in and we are nowhere with the current DynamoDB/Serverless set up. I’m currently on front end tasked with Elm. Is there an easy way for me to pass queries to Datomic kind of like GraphQL In nature.

jonoflayham18:02:23

I’ve a fairly dumb question about Datomic pricing. https://www.datomic.com/pricing.html leads me straight to AWS Marketplace calculators which talk about “software and infrastructure” costs… but what about licence fees for Cognitect? I see those mentioned elsewhere, on https://www.datomic.com/get-datomic.html, but that seems to be talking only about the on-prem option.

marshall18:02:09

@jonoflayham the “Software Cost” for Datomic Cloud when you’re on the Marketplace listing is the fee to Cognitect

jonoflayham18:02:56

Thanks, @marshall. So just the $0.012 per hour, roughly? I’ve tried in 3 browsers and on 2 laptops, but I can’t get the software cost or infrastructure cost figures to change no matter what I use for region or fulfilment option.

jonoflayham18:02:35

Sorry; crossed in post. Wow - that seems like great value.

marshall18:02:47

That’s correct. The only difference is in the toplogy. So the Solo topology is $0.012 per hour and the production topology is $0.156 per hour

marshall18:02:00

per instance

jonoflayham18:02:39

None of those figures updates for me when I change topology or region, at the moment. But great to know the ballpark values - thanks.

jonoflayham18:02:42

And - dumber still - you’ll stop being charged when you tear down whatever it is that the CloudFormation templates have built?

marshall18:02:32

The fee to cognitect is only charged when you are running cluster node instances

marshall18:02:50

We don’t charge anything for the other infrastructure (dynamo, s3, etc)

marshall18:02:17

so, yes, when you delete your compute stack you are no longer paying Cognitect

marshall18:02:32

there are some storage resources (s3, dynamo, efs) that are retained when you delete a stack

marshall18:02:45

which you will still pay AWS for unless you explicitly delete them

jonoflayham18:02:21

Thanks for all that.

jonoflayham18:02:40

This isn’t a complaint, just feedback: I think there’s a problem with the AWS Marketplace widget for Datomic Cloud. It presents four fulfilment options and usage information entries - solo, production, solo, production. Separately, both solo and production links on https://www.datomic.com/pricing.html lead to the solo pricing. And solo + production pricing are identical, each varying in the same way according to the EC2 instance type.

jonoflayham18:02:09

Safari, Chrome, Firefox

marshall18:02:57

Agreed. We are aware of the issue and are discussing it with Marketplace.

jonoflayham18:02:31

Understood. I guess much of that is obvious to people used to AWS Marketplace; but if it isn’t, maybe the Cloud-oriented page could drop a few hints.

grounded_sage18:02:46

Am I right in my assumption that I can pass a data structure in JSON, parse that and then send it off in a Datomic pull?

marshall18:02:19

@grounded_sage are you wanting to access Datomic directly from your frontend app or via a webserver?

grounded_sage18:02:09

Web front end would be ideal.

grounded_sage18:02:45

It’s literally an app to keep track of inventory.

grounded_sage18:02:22

If I could query data and update data directly from my web app I would be happy as Larry. There is also an iOS app which is for warehouse workers.

grounded_sage18:02:36

Doesn’t seem to be any way to do it with Cloud.

alexk18:02:21

can I switch between solo and production later on?

alexk18:02:30

without losing data, I mean

marshall18:02:19

make sure you’ve done your First Upgrade Ever before doing that ^ https://docs.datomic.com/cloud/operation/upgrading.html#first-upgrade