This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-07-05
Channels
- # announcements (1)
- # asami (21)
- # aws (19)
- # babashka (37)
- # beginners (38)
- # clj-kondo (7)
- # clj-otel (8)
- # clojure (29)
- # clojure-europe (54)
- # clojure-nl (3)
- # clojure-spec (2)
- # clojure-uk (2)
- # clojurescript (15)
- # conjure (1)
- # data-science (1)
- # datomic (21)
- # emacs (6)
- # events (3)
- # figwheel-main (1)
- # gratitude (13)
- # holy-lambda (11)
- # joyride (6)
- # klipse (3)
- # malli (14)
- # missionary (26)
- # nbb (31)
- # omni-trace (2)
- # pathom (3)
- # reagent (1)
- # reitit (1)
- # releases (1)
- # shadow-cljs (24)
- # sql (27)
- # tools-deps (4)
- # vim (21)
Clj-kit?
https://kit-clj.github.io/ I just mean the style of app. Like you have some website, and it has some frontend, users click around maybe
Lambda and hl ring adapter to host static files if the size of a single file is less than 11MB and you dont expect much traffic. But if you do then S3 + Cloudfront is the cheapest option on AWS.
What artifacts does clj-kit produce? I assume a JAR + some static assets?
seems like the static assets are in the jar, so only a jar
I would probably deploy on an ec2 instance
the new graviton ones can be really affordable
and the JVM doesn’t care its ARM 🙂
You need to configure nginx with some nice secure setting, lets encrypt + a systemd service for the jar. If I were to do it from scratch I would template the configs with sablono which is included in babashka and run all of that from cloud-init - nice and simple 🙂
or I will try Lightsail (the AWS VPS); of course I’m making a lot of assumptions on the needs.
@U02CV2P4J6S can you elaborate what is your use case and what you need? How frequently the API will be used etc? PS: You can always develop your app with clj-kit and add hl-ring-adapter to target Lambda, since I know you mostly build apps on this service.
sounds interesting. It would be single users (team mates in house) clicking around for a few minutes. The thing would serve I think small html files. 1. a session might be more than 15min 2. I like the user to login with oauth2, so I would like to keep a session around. I guess with lambda I would need to log them in again after 15min, or persist the session.
> persist the session Isn't oauth2 a stateless authentication strategy? Therefore by persist you mean a "cookie" on frontend side? If yes why would you bother with how long the lambda lives?
Okay, so if you expect only few mates to use the service then maybe you don't need Cloudfront, EC2, Nginx or whatever. Single lambda will do the trick.
Yeah, you can also switch to EC2 if you didn't like the Lambda experience. Adding/removing adapter to a project is 2/3 lines of code 🙂