Liking cljdoc? Tell your friends :D

Holy Lambda

Clojars Project CircleCI codecov cljdoc badge Slack DockerHub MIT Licence


Tiny native AWS Custom Lambda Runtime which fulfills your needs!

io.github.FieryCod/holy-lambda {:mvn/version "0.1.34"}

What it does?

It allows you to write one code which might run either on Official Java AWS Runtime or on Native Custom AWS Runtime built into your codebase.

Jump here to learn more and start the journey with the Holy Lambda.

Example

(ns some.ns
  (:gen-class)
  (:require 
    [fierycod.holy-lambda.core :as h]
    [fierycod.holy-lambda.interceptor :as i]
    [fierycod.holy-lambda.native :as native]
    [fierycod.holy-lambda.response :as hr]))

(i/definterceptor LogIncomingRequest
  {:enter (fn [request] request)})
 
(h/deflambda ExampleLambda
  "I can run on both Java and Native..."
  < {:interceptors [LogIncomingRequest]}
  [{:keys [event ctx]}]
  (hr/text "Hello world"))
  
(native/entrypoint [#'ExampleLambda])

Quickstart

Generate a new project from template via

lein new holy-lambda <your-project-name>

or

clojure -M:new -m clj-new.create holy-lambda basic.example

Thanks to

  • Daria - Thank you that you were always beside me, fighting for me when I had no faith and energy.
  • @KrzysztofTucholski - Thank you for boosting my ego
  • @uswitch - Thank you for interests in AWS Lambda Functions and providing us the lambada
  • @hjhamala - Thank you for sharing post about native lambda functions. You have inspired me to write holy-lambda.
  • Rum - deflambda parse mechanism is adapted from rum.
  • Ring - code from fierycod.holy-lambda.response is adapted from ring-core.

License

Copyright © 2021 Karol Wojcik aka Fierycod

Released under the MIT license.

Can you improve this documentation? These fine people already did:
Karol Wójcik & Eugene Koontz
Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close