r/Clojure • • 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:

Features

  • Fully managed environment via bb tasks

  • Target either Java, Native or Babashka runtime from one code

  • Interactive development in Babashka runtime

  • Fully automated native configuration generation via bb native:conf

  • Fastest possible JSON parse, encode library metosin/jsonista included in native runtime. Fallbacks to cheshire for Babashka runtime

  • Automated stack deployment/deletion, bucket creation/deletion

  • Health check of the stack via bb stack:doctor and bb stack:describe

  • Interceptors support

Changes in 0.1.45:

  • Add Babashka layer with built into support for Babashka pods and additional Clojure. Check: here and here

  • Replace makefile build system with bb tasks

  • Bump holy-lambda template. The template is now fully deps.edn based.

  • Make Babashka runtime 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, Babashka tasks, and Babashka runtime. Thank you!

  • @viesti - thanks for inspiring me to support Babashka and 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 Babashka layer. Looking at your code helped me lot with making holy-lambda-babashka-layer

EDIT: If you looking for some examples then check this folder.

72 Upvotes

1 comment sorted by

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.