Swimlanes.io is a free webapp for making sequence diagrams. You simply edit the text on the left and the diagram is updated in real time. You can download your sequence diagrams as images or distribute with a link.
Holy-Lambda if: Simple GET request Client -> AWS Gateway: `GET /message` note: This example uses AWS Gateway to invoke the lambda, but any AWS trigger may be used. AWS Gateway -> AWS Lambda: Execute `ExampleLambdaFunction` note: `holy-lambda` creates and deploys the function `ExampleLambdaFunction` to AWS Lambda. [AWS SAM](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/what-is-sam.html) is used under the hood. else: Alternative HTTP methods Client -> AWS Gateway: `PUT /message` note: Any HTTP method or path can be routed to the lambda function AWS Gateway -> AWS Lambda: Execute `ExampleLambdaFunction` end AWS Lambda -> holy-lambda Runtime: Initialise holy-lambda Runtime -> Your Clojure Code: Invoke _entrypoint_ `ExampleLambda` note: The _entrypoint_ is the equivalent of [The Handler](https://docs.aws.amazon.com/whitepapers/latest/serverless-architectures-lambda/the-handler.html) in other supported AWS languages and the function is located in `basic.example.core/ExampleLambda` `ExampleLambda` recieves idiomatic Lambda parameters `event` and `ctx`: ``` clojure (h/deflambda ExampleLambda "Your code here" [{:keys [event ctx]}] (hr/text "Hello world")) (native/entrypoint [#'ExampleLambda]) ``` `event` and `ctx` represent [The Event Object](https://docs.aws.amazon.com/whitepapers/latest/serverless-architectures-lambda/the-event-object.html) and [The Context Object](https://docs.aws.amazon.com/whitepapers/latest/serverless-architectures-lambda/the-context-object.html) respectively Your Clojure Code -> Your Clojure Code: Handle request, create response Your Clojure Code -->> Client: HTTP Response