This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-04-01
Channels
- # announcements (3)
- # beginners (59)
- # calva (23)
- # cider (58)
- # clojure (125)
- # clojure-dev (18)
- # clojure-dusseldorf (1)
- # clojure-europe (21)
- # clojure-germany (1)
- # clojure-hamburg (1)
- # clojure-italy (13)
- # clojure-nl (29)
- # clojure-poland (3)
- # clojure-spec (61)
- # clojure-uk (74)
- # clojurescript (12)
- # core-async (6)
- # cursive (4)
- # data-science (7)
- # datomic (14)
- # defnpodcast (1)
- # events (4)
- # fulcro (72)
- # juxt (36)
- # kaocha (3)
- # nginx (3)
- # off-topic (14)
- # pathom (5)
- # ring-swagger (68)
- # shadow-cljs (25)
- # spacemacs (8)
- # sql (42)
- # tools-deps (8)
- # vim (6)
Has anyone else run into the issue of their first call to an web service ion timing out, while the rest work fine?
You might be running into something related to cold starts: https://blog.octo.com/en/cold-start-warm-start-with-aws-lambda/, https://epsagon.com/blog/how-to-minimize-aws-lambda-cold-starts/
Yeah, I was thinking it was something along those lines. Is that a common thing for ions? I haven't seen anyone specifically discussing cold starts with ions, so I wasn't sure if I was doing something weird or if it was expected behavior. Thanks for the links!
Sorry, I don't use Ions in particular. Many AWS Lambda users use hacks to keep their Lambdas warm -- often that is managed by the serverless framework you're using (https://serverless.com/blog/keep-your-lambdas-warm/). I wonder if Ions does or ought to do something similar
Yeah, I had this impression that ions had a way around the cold start. Thanks for the help!
@U054BUGT4 What we have done at work is create a cloudwatch event that passes some json to the lambda function to keep it warm once per minute. It’s pretty trivial to implement.
Perfect, that sounds like exactly what I need. I thought I might be missing some obvious datomic specific thing (or that my ion had something wrong with how I set it up. Thanks!
I am using Datomic Cloud ions. I have keys in the SSM, and I am using the code in the documentation to retrieve those parameters. I am getting an error "Too many results" when trying it locally or after a push. The thing is, it used to work. Any thoughts?
I have reduced the failure to this line
(ion/get-params {:path "/datomic-shared/dev/stackz-dev/"})
I'm running across a similar issue this afternoon when using Omniconf to populate our config. I'm not seeing a "too many results" error, though one could be masked by the Omniconf SSM code: we're just not getting values populated from SSM. In our case, too, nothing has changed in the config either in the SSM parameter store or in our config-calling code. In our case we're in us-west-2.
SSM has a max limit of 10 parameters to load into Datomic. I wrote a workaround to load all the parameters into my Clojure call from SSM.
Fixed the Omniconf issue. The AWS API returns 10 parameters and a NextToken value when there are more. https://github.com/Dept24c/omniconf/blob/ssm-recursive-next-token/src/omniconf/ssm.clj
SSM has a max limit of 10 parameters to load into Datomic. I wrote a workaround to load all the parameters into my Clojure call from SSM.