Fork me on GitHub
#aws
<
2015-11-30
>
cfleming00:11:43

@ragge: Once those few minutes are up, do they then trash the instance so you’re paying the 1s startup with Clojure again, or do they serialise the JVM state somehow?

ragge09:11:34

@cfleming: again from memory and based on a few unscientific observations, but it seemed like a new JVM was started and the lambda function handler instantiated

cfleming10:11:32

@ragge: Interesting, thanks. It looks like CLJS is actually probably a better fit for Lambda since Node is first class there, but I haven’t tried it yet.

ragge10:11:30

@cfleming: i think it will depend a lot on your usage patterns, but yeah, generally quick startup might be a win

cfleming10:11:18

@ragge: Right. I have one Lambda function right now that I need the JVM for because I’m using encryption (it’s just Java), but I think for most future things I’ll try CLJS first.

cfleming10:11:06

Lambda is pretty cool actually, I have a lot of use cases I can use it for.

cfleming10:11:16

The API gateway mapping is a gigantic pain, though.

ragge10:11:46

@cfleming: yeah, that too me seems like a poor re-invention of an ESB

ragge10:11:09

@cfleming: but I really like the unit of execution with lambda, don't want to care about instances if i don't have to

cfleming17:11:28

@ragge: Right, it’s perfect for a lot of use cases.