r/Clojure • u/Fierycodev • May 04 '21
Announcing holy-lambda. The micro framework that integrates Clojure with AWS Lambda on either Java, Clojure Native, or Babashka runtime.
It's my first post here announcing holy-lambda https://github.com/FieryCod/holy-lambda. I've resisted posting it for almost two years since it was far from being production-ready software. On the other hand, today, holy-lambda reached version 0.1.45 with some great features and fixes included. It's high time to show this project publicly.
Holy lambda is a unified micro-framework that utilize AWS SAM and Babashka tasks to provide the best possible support for following runtimes:
Babashka(https://serverlessrepo.aws.amazon.com/applications/eu-central-1/443526418261/holy-lambda-babashka-runtime),Clojure (GraalVM),
Clojure (Java).
Features
Fully managed environment via
bb tasksTarget either Java, Native or Babashka runtime from one code
Interactive development in Babashka runtime
Fully automated native configuration generation via
bb native:confFastest possible JSON parse, encode library
metosin/jsonistaincluded in native runtime. Fallbacks tocheshireforBabashkaruntimeAutomated stack deployment/deletion, bucket creation/deletion
Health check of the stack via
bb stack:doctorandbb stack:describeInterceptors support
Changes in 0.1.45:
Add
Babashkalayer with built into support forBabashkapods and additional Clojure. Check: here and hereReplace makefile build system with bb tasks
Bump
holy-lambdatemplate. The template is now fullydeps.ednbased.Make
Babashkaruntime interactive. Sources are distributed without packing to .jar.
Incoming changes
Add benchmarks of runtimes
Add Node.js compatible runtime
Refine documentation
Fix first sync error
Add PGO optimizations for GraalVM Enterprise
For chatting about native runtime, Babashka runtime, or holy-lambda micro-framework join #holy-lambda channel on Clojurians.
Acknowledges
@borkdude - a wizard who spent enormous time helping me out with
deps.clj,Babashkatasks, andBabashkaruntime. Thank you!@viesti - thanks for inspiring me to support
Babashkaand all the discussions.@Eugene Koontz - thanks for being the first contributor!
@holyjak - hereby granted permission to use the word
holy:D@Dainius Jocas - Thank you for making the first
Babashkalayer. Looking at your code helped me lot with makingholy-lambda-babashka-layer
EDIT: If you looking for some examples then check this folder.
1
u/disclosure5 May 04 '21
You know I just DDG'ed "clojure aws lambda" and the third result was this thread I just read. So from that view this looks promising. I'll be looking through it, sure looks interesting.