This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-06-24
Channels
- # announcements (39)
- # aws (4)
- # babashka (18)
- # beginners (32)
- # biff (10)
- # calva (22)
- # clj-kondo (11)
- # clj-on-windows (2)
- # cljs-dev (20)
- # clojure (31)
- # clojure-europe (130)
- # clojure-norway (21)
- # clojure-spec (24)
- # clojure-uk (17)
- # clojured (2)
- # clojurescript (6)
- # conjure (1)
- # core-async (5)
- # cursive (11)
- # datalevin (1)
- # datomic (9)
- # emacs (24)
- # figwheel-main (42)
- # fulcro (6)
- # gratitude (6)
- # honeysql (8)
- # juxt (16)
- # kaocha (6)
- # lsp (235)
- # malli (2)
- # nbb (7)
- # off-topic (23)
- # other-languages (24)
- # pedestal (7)
- # reitit (6)
- # sci (1)
- # shadow-cljs (21)
- # tools-build (22)
- # tools-deps (57)
- # vim (24)
What is datomic.ion.lambda.api-gateway/ionize? I can't find any docs. It looks like just what I need to ionize a ring handler. It also appears from doing a code search for it on github that it is intended for use with a proxy port. Is this still a viable route in 2022? How did people find out about this function and where is it documented? Anybody who has made a ring handler an ion before, how did you do it, HTTP direct? Lambda? I'm having a rough time getting an app that works with my datomic cloud database remotely to work as an Ion inside the VPC. CHEERS AND THANKS!
I think the relevant doc is here if that helps: https://docs.datomic.com/cloud/ions/ions-reference.html#ionize
Yes! Thanks Alex for the link! I missed that, because I skipped over that section. It is titled 'Older Versions of Datomic Cloud' I am using the latest Datomic cloud and a production topology. This does not appear to apply to me, but in searching for some source of people doing what I'm trying to do it appeared to be the path most traveled. Alex, if you were going to interface with Datomic cloud via a ring handler, how would you deploy your app? I initially wanted to use Ions because I liked the idea of off-loading the work of HA and easy deployment. I have an app that queries and transacts directly with my storage stack on a datomic cloud VPC from outside, but I'm running into major issues getting it to deploy as an Ion. In your expert opinion, what's the best path to move forward? I know it's a subjective question, but I very much need some solid advice. CHEERS!
@pat561 From our https://docs.datomic.com/cloud/ions/ions-reference.html (which you should start reading from the top) we have section on https://docs.datomic.com/cloud/ions/ions-reference.html#web-ion which doesn't use ionize
.
From there we link to the https://github.com/Datomic/ion-starter project, which has an https://github.com/Datomic/ion-starter/blob/master/src/datomic/ion/starter/http.clj#L16 without ionize
.
I hope I'm not being too dense... HTTP Direct essentially does the work that in prior versions was ionizing a lambda function, so deploying a handler as an Ion is done via :http-direct my-ns/my-handler. So for my specific use case, I'd like to call http-direct, and lambdas don't apply.
I don't understand what problem you're having. Forget about ionize
, it's unrelated to :http-direct
. Have you gone through the ion-starter project I linked to above?
Yes, I've deployed it, then made some tweaks and redeployed. Everything is working from the starter project in my cloud stack just fine. My problem came when I tried to move to my application. I had incompatibilities causing failed deploys and the error I got mixed my mind up on where exactly they came from. I may be sorted. I hope I no longer have a knowledge problem, but a code one. It'll take some significant refactoring before I can go from the starter project working to knowing if I'm understanding things right for my specific needs. I do appreciate the help. Things are getting clearer.
@U0CJ19XAM & @U064X3EF3 Thanks for your support. I was right proper turned around. Once I pin-pointed to issue with my application code, Deploy was as easy as should be expected.
HOW TO DEBUG ION DEPLOY ISSUES WITH APPLICATION CODE? Sorry, if I'm monopolizing the space here, but I just have so many questions. When you are trying to troubleshoot deployment problems for Ions, how do you ensure that you get timely and instructive errors? Right now, I go digging through my CloudWatch logs and look for the errors in my specific instance, then if I can make sense of them, I make changes and repeat. This is obviously inefficient and frustrating, but I don't know of a better way. Any ideas or correction on my approach are appreciated! CHEERS!
@pat561 From our https://docs.datomic.com/cloud/ions/ions-reference.html (which you should start reading from the top) we have section on https://docs.datomic.com/cloud/ions/ions-reference.html#web-ion which doesn't use ionize
.
From there we link to the https://github.com/Datomic/ion-starter project, which has an https://github.com/Datomic/ion-starter/blob/master/src/datomic/ion/starter/http.clj#L16 without ionize
.