I looked into this a little over the weekend, and wrote a small library
lein template/plugin for deploying Clojurescript functions to Lambda:
https://github.com/nervous-systems/cljs-lambda
There's a blog post / step-by-step tutorial here:
https://nervous.io/clojure/clojurescript/aws/lambda/node
Hi,
I've just released lambada, a tiny library that provides a way to write AWS
Lambda [1] functions in clojure:
https://github.com/uswitch/lambada
The slightly tricky part with using clojure on Lambda was getting the
clojure runtime to load classes using the correct class loader and this
You can get the initial startup time down by AOT compiling. I also believe
that Lambda will re-use the same runtime and lambda function instance until
a certain period of inactivity.
For example, in the example below I invoke the function (AOT compiled this
time) three times. First invocation
I gave it a go:
https://github.com/uswitch/lambada
It's just a POC. Needed a Java shim to manage class loaders so the
interface is not as nice I was hoping.
Might make it into library if there's interest.
On Monday, 15 June 2015 21:07:29 UTC+1, Kyle Sexton wrote:
Curious if anyone is doing
Answering my own question about performance, it looks like almost 14 seconds
for the Lambda function to run. Doing the math[fn:1] if I were to run this
300 times in a month bill would be about $342.56. Probably not the ideal
solution for clojure in the cloud just yet. :)
#+BEGIN_EXAMPLE
Nice work! Can you give any indication of what performance is like?
Kyle Sexton
Ragnar Dahlén r.dah...@gmail.com writes:
I gave it a go:
https://github.com/uswitch/lambada
It's just a POC. Needed a Java shim to manage class loaders so the
interface is not as nice I was hoping.
Might
Maybe Clojure itself isn't suitable, but Clojurescript w/ node as
target and lein-npm[1] should be okay (not tested)... Alternatively,
if you really need JVM features, you might be able to give Skummet[2]
a try (and please report back!)
[1] https://github.com/RyanMcG/lein-npm
[2]
I'm actually really curious about this as well, I've been wanting to
experiment with AWS Lambda but the slow start-up of the Clojure runtime on
the JVM has made me apprehensive... is there some mitigation of this on the
Lambda service?
On Mon, Jun 15, 2015 at 4:07 PM Kyle Sexton k...@mocker.org
Curious if anyone is doing anything on AWS Lambda now that it supports running
Lambda functions in Java,
https://aws.amazon.com/blogs/aws/aws-lambda-update-run-java-code-in-response-to-events/
?
Kyle Sexton
--
You received this message because you are subscribed to the Google
Groups Clojure