4 ms·
Here's a couple significant disadvantages to the jvm. A simple jvm clojure app running jetting deployed as an uberjar takes about 12 seconds to start on a 1GB
by ledgerdev 10y ago
Here's a couple significant disadvantages to the jvm.
A simple jvm clojure app running jetting deployed as an uberjar takes about 12 seconds to start on a 1GB digital ocean vm.
Using jvm clojure as with aws lambda, it takes ~20 seconds for a cold start. Normal java is typically a couple of seconds, and it's likely that a cljs/node instance will be sub-second cold start.
- dskrvk 10y agoNote that with Lambda a cold start doesn't have to happen every time - if the function is executed frequently enough, the application will be kept around on the executing node. Also, if your application has fairly stable load, then startup times are irrelevant 99% of the time, since you can just run persistent servers.