This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-04-10
Channels
- # announcements (2)
- # babashka (20)
- # beginners (381)
- # calva (16)
- # chlorine-clover (21)
- # cider (1)
- # clj-kondo (18)
- # cljs-dev (107)
- # cljsrn (2)
- # clojure (161)
- # clojure-dev (5)
- # clojure-europe (2)
- # clojure-losangeles (3)
- # clojure-nl (3)
- # clojure-uk (35)
- # clojurescript (22)
- # conjure (48)
- # cursive (8)
- # datascript (11)
- # datomic (6)
- # figwheel-main (10)
- # fulcro (85)
- # hoplon (112)
- # jobs (1)
- # kaocha (5)
- # luminus (5)
- # malli (1)
- # off-topic (96)
- # onyx (1)
- # pedestal (1)
- # perun (1)
- # reagent (5)
- # reitit (1)
- # shadow-cljs (34)
- # specmonstah (1)
- # sql (6)
- # tools-deps (3)
- # xtdb (23)
Morning.
Mornin' Happy Friday!
morning
Mornin'
morning!
Has anyone here got much experience using Clojure/Clojurescript on AWS Lambda?
@peterwestmacott I’m fairly sure uswitch had support framework for doing lambda functions in AWS.
Oh thanks, I'll take a look.
I was imagining using clojurescript, but that looks super straightforward, so I'll start there. Thanks again!
@peterwestmacott what are you trying to do with it? I've done a fair bit and run a couple of workshops
Probably some https endpoints to write small bits of json to s3.
imo there's two good ways to do it
cljs-lambda library is good
or you can go directly to node via cljs and either shadow-cljs or something like node figwheel
iirc for the workshop it was node-figwheel?
here's the workshop notes https://gist.github.com/the-frey/767a9c403e691df9915e3ecf04f05594
basically cold starts make the JVM way way slower than node so cljs is 100% the way to go
& honestly I need to re-write this workshop to use shadow and lean more heavily on going direct to the node-aws-sdk
but yeah, the serverless framework (confusingly named, it's a node framework that gives you offline testing etc) makes lambdas on aws p easy in node and cljs can speak to it pretty easily
& here's the end state of the workshop I think.. not the nicest code I've ever done but shows how it fits together I think https://github.com/envoylabs/cljs-serverless-workshop/blob/add_csv_and_cljs_lambda/src/cljs_serverless_workshop/core.cljs
Wow, thanks!
no worries!
was supposed to run an updated version of this workshop at clojurex before it got cancelled lol
You also might want to look at these two posts: https://dev.to/beders/developing-testing-and-deploying-aws-lambda-functions-written-in-clojurescript-284l https://thegeez.net/2020/04/07/serverless_clojure_web_app_aws_lambda.html
that first link looks perfect!