How to gracefully shutdown java application
Shutting down a java application gracefully is required to handle java scaling in kubernetes. Shutdown is handled via a hook in java and I'm doing an live coding example where I add code to wait until process is done.