Fork me on GitHub
#datomic
<
2024-01-03
>
hadils12:01:26

Hi @souenzzo! Thanks for the eql-style-guide. It helped me a lot.

🙏 1
souenzzo13:01:12

are you using #C87NB2CFN too?

Aviv13:01:28

Hey, does com.datomic/client-cloud work with ClojureScript? thanks 🙏

souenzzo17:01:52

No. All datomic libraries only run on JVM. Why you want to run datomic on clojurescript? Is possible to access JS/npm ecosystem in Clojure/JVM via #CAJN79WNT polyglot Otherwise, checkout #C68M60S4F and #C87NB2CFN for fullstack solutions

đź‘Ť 1
Aviv07:01:13

I didn’t know it’s possible to access js/npm via graalvm, i’ll look into it, thanks! 🙏

itaied14:01:57

what are the use cases of Ions? I'm a bit familiar with serverless, but do Ions replace the necessity of a web server? Is it a solution for a scheduled / event-driven scenarios, or also for a web application?

cch115:01:23

We use Ions to host our web application and it works very nicely in that role. For event-driven tasks Ions provide simple and effective integration with the larger ecosystem through “proxy” lambdas that allow your Clojure code to do all the heavy (business domain) lifting. An area where Ions are weak is when dealing with non-AWS and non-HTTP requests/inputs, notably websockets. Effective websocket solutions I have seen require external termination for the websocket and an independent mechanism for associating websocket handles with proxied requests that you can send to your ion.

đź‘Ť 2
silian07:01:05

Could I ask where one might read more about proxy lambdas and Ions? Could you recommend a resource?

cch115:01:10

https://docs.datomic.com/cloud/ions/ions-reference.html#lambda-config is a good reference for configuration and https://docs.datomic.com/cloud/ions-tutorial/entry-points.html#invoke-lambda is a tutorial -but I’m not very familiar with it. What is not clear from this documentation (at least to me) is the format of each of the countless event body types when your lambda handler receives it. Ultimately I’ve always been able to back into the format by inferring the shape from map key names and presumably related AWS documentation. Either I’m missing something, or Cognitect never really documented this aspect of Ions’ lambda functionality.

gratitude-thank-you 1
cch115:01:33

(but it’s not too hard to suss out)