Project: springxd
Issue XD-3145: Update batch modules to be short lived
h2. Narrative As a developer, I'd like a job module to be bootstrapped when the job is launched and shut down once it is complete instead of the current behavior of bootstrapping the context when the module is deployed regardless of if it's being used so that I can achieve better resource utilization. h2. Back story While streams are never ending, batch jobs have a true lifecycle with a beginning and and end. By having a job bootstrapped when it's not executing, it eats up precious resources. For example, if I have a job that creates connections to a database via a connection pool, the job module will hold those connections from the moment it's deployed to the moment it's undeployed, even if the job isn't being executed. A more efficient use of resources would be to have the job module provide just enough to receive the launch request and then bootstrap the job's context h2. Notes https://docs.google.com/document/d/1q964adRCA-kJke_i0GBToJHLXJJTV_7TaTpQT0ymsbc/edit
Story points: 8