This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-06-08
Channels
- # announcements (7)
- # babashka (44)
- # beginners (162)
- # cider (22)
- # clara (11)
- # clj-kondo (14)
- # cljsrn (8)
- # clojure (91)
- # clojure-dev (24)
- # clojure-europe (6)
- # clojure-france (4)
- # clojure-italy (11)
- # clojure-nl (4)
- # clojure-spec (11)
- # clojure-uk (14)
- # clojurescript (92)
- # community-development (1)
- # core-logic (1)
- # cryogen (1)
- # cursive (6)
- # data-science (3)
- # datahike (3)
- # datomic (32)
- # degree9 (3)
- # dirac (3)
- # emacs (9)
- # eql (1)
- # events (1)
- # find-my-lib (1)
- # fulcro (67)
- # graphql (13)
- # helix (9)
- # jobs (1)
- # jobs-discuss (92)
- # leiningen (31)
- # malli (8)
- # meander (3)
- # news-and-articles (1)
- # off-topic (46)
- # pathom (2)
- # practicalli (1)
- # re-frame (52)
- # reitit (12)
- # shadow-cljs (40)
- # spacemacs (10)
- # sql (4)
- # xtdb (8)
Yes, for on-prem a system will have one active transactor (may also have an HA transactor)
Thanks!
i can't believe i'm asking this, but are there any future plans for a nodejs compatible datomic cloud client? i'm just thinking about speedy lambdas that can't really afford the cold startup time of the JVM. i guess there's always graalvm, but still, the ease of whipping up and deploying a cljs lambda is attractive.
You have to handle routing within the ion, but it has a significant (positive) response time impact.
sounds promising but i don't quite follow. HTTP direct lets me route api gateway traffic directly to datomic, but i don't see how that lets me query datomic from a cljs (nodejs) lambda which is my goal 🙂
(Though I suppose there’s a Rube Goldberg version that hits a private API Gateway endpoint proxying directly to an ion.)
^ yeah, i entertained the idea 😉 i don't have a specific use case, but let's say something like an API Gateway Authorizer, or an authentication lambda hooked in to Cognito, both of which are customer facing
Not too long ago I went and made a nodejs cloud/peer server project: https://github.com/csm/datomic-client-js not official, but it does work with cloud and peer server
@UFQT3VCF8 this is fantastic, thank you for sharing! i'm curious - why did you write the library in JS and not CLJS?
I’m trying to understand the terminology in datomic for “peer”. Is the Peer api and peer server similar in some way or does peer just have two meanings?
The peer api is the api used to become a peer. A peer server is a peer that provides the server half of the client api
“peer” means roughly “member of the datomic cluster”. They have direct connections to transactor and storage
@U09R86PA4 thanks, I think it makes sense now. Peer and peer server is the full Datomic api with caching etc, where Client is just an interface that connects to the peer server.
correct. Although a bit of nuance: the client api is designed to be possible to use from a non-peer process, but in certain circumstances for performance it can actually run in a peer and use that peer’s resources directly
they use the client api, but ion processes are also peers so the client api is implemented to call directly into the peer api without crossing a process boundary
Interesting, but this is some custom thing that is happening? I was curious if you could use the connection from the peer api with a client, but the apis didn’t seem compatible, with Client requiring an endpoint. But there was a :server-type :local
which I couldn’t find docs on that made me wonder