Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Java sort of suck for microservices (microservices suck on their own) as it has relatively high bootstrap cost.

High allocation rate feels weird with micro services - I suppose that depends a lot on the coding style. G1GC is meant for generally large setups, with several cores at least. E.g. the default setup of 2048 areas on 2GB heap means, allocations over 1MB require special care.



If you GraalVM Native Image or one of the frameworks based on it then bootstrap cost disappears:

https://quarkus.io


GraalVm is great, it made our Spring REST API app go from 10+ seconds to 0.5 seconds on startup (not to mention the lower mem and cpu requirements).

Except… when we try to build it with Jenkins on a Kubernetes cluster, this happens: https://github.com/oracle/graal/issues/7182




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: