aws-lambda

mikeb 2020-09-10T17:57:28.010500Z

For others information, I did some absolute best case scenario tests.. using openj9 which should have better startup time than hotspot, using all startup optimizations, including shared classes cache, a jlink'd runtime as custom runtime layer, and the built in jdk 11 httpclient, running on a 1GB lambda... is showing 3.8 seconds initDuration in cloudwatch insights. Total end user latency to the json endpoint is 4.7 seconds. Honestly was hoping for better like under 2 seconds with all that, but sounds like graal native compilation is the only real option for non background jobs.

ghadi 2020-09-10T18:00:14.010900Z

I've gotten < 1 second on an ordinary JVM, using a custom runtime layer

ghadi 2020-09-10T18:00:34.011400Z

no graal native necessary, though you always need to be careful about # of classes loaded

ghadi 2020-09-10T18:00:58.011800Z

this is also a non-issue when you do provisioned concurrency