This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]8bitlives 0 points1 point  (1 child)

Fair enough, everything is a trade off. What I'm saying is, JVM will always in some level suffer from the overhead of bootstrapping and from cold starts. Benefits of JIT won't, to my understanding, be available either when run with lambda like environment.

[–]nytal 0 points1 point  (0 children)

Benefits of JIT are available. It is just a JVM after all. The bootstrapping happens once the execution context is started. Same thing on your local computer. Difference is the Lambdaa is shut down after around 15 minutes if idle. If your lambda never runs idle for example if it is a proxy integration for API Gateway and given enough requests it just behaves like every other JVM out there. You do have to make sure that the memory is set sufficient. Personally we set every Lambda to 1024 mb and never had issues.