Fork me on GitHub
#datomic
<
2019-07-03
>
dl02:07:38

what is the best way to use websockets in datomic cloud, just like in datomic with sente?

cjsauer03:07:43

@dlorencic1337 API Gateway recently announced WS support: https://aws.amazon.com/blogs/compute/announcing-websocket-apis-in-amazon-api-gateway/ I haven’t tried it myself yet, but it seems like a promising ion integration. I was planning on experimenting with it using Cognitect’s aws-api lib: https://github.com/cognitect-labs/aws-api David recently added support for the ApiGatewayManagementApi.

👍 4
dl03:07:53

yeah I have heard that news message but didnt find of any tutorials on how to implement it with websockets

dl03:07:57

thats why I asked, thank you man!

dl03:07:43

I am curious because I have read that the Transaction Report Queue is only available with the peer inteface

dl03:07:01

how would you then go ahead to building an alternative that notifies the api gateway on changes?

cjsauer04:07:17

I was thinking it might be possible to wrap transact! by reading the resulting :tx-data and placing it into a queue (maybe SQS or even a core.async channel). Then some other process would actually interface with APIGW. Build your own report queue basically.

dl04:07:23

ok interesting.

dl04:07:26

I will look into it

robert-stuttaford09:07:04

@stuarthalloway @jaret what do i need to do to get an existing database to use the new tuple stuff? transactor and peer are both on the new version. i can make a new database and transact tuple attrs, via the same peer, transactor and storage. i can't transact any tuple attrs to the existing database - it complains that :db/tupleAttrs doesn't exist.

jaret12:07:28

Oh there is a typo in that anchor link ^ I am going to fix that.

robert-stuttaford19:07:13

thanks @jaret - suggestion 🙂 include this bit of news in any blog post that announces features 👍

👍 4
souenzzo19:07:05

I'm still gettin

:dependency-conflicts
 {:deps
  {org.clojure/clojure #:mvn{:version "1.9.0"} ...
when I {:op :push} I just deployed a fresh cloudformation today using 480-8770 both solo and storage.

Joe Lane19:07:42

Are you running with clojure 1.9 in your code base?

souenzzo19:07:08

1.10.1 in my deps.edn