Uploaded image for project: 'Spring XD'
  1. Spring XD
  2. XD-3145

Update batch modules to be short lived

    XMLWordPrintable

    Details

    • Type: Epic
    • Status: To Do
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2 RC1
    • Fix Version/s: None
    • Component/s: Batch
    • Labels:
      None
    • Epic Name:
      Spring-Cloud-Task
    • Story Points:
      8
    • Rank (Obsolete):
      9223372036854775807
    • Acceptance Criteria:
      Hide
      1. The current interaction of how job modules are deployed, launched, etc should not change.
      2. When a job module is deployed, it's context should not be bootstrapped by default.
      3. When the launch request comes in (xd:> job launch foo), the job's context should be bootstrapped, executed, then closed.
      Show
      The current interaction of how job modules are deployed, launched, etc should not change. When a job module is deployed, it's context should not be bootstrapped by default. When the launch request comes in ( xd:> job launch foo ), the job's context should be bootstrapped, executed, then closed.
    • Out of Scope:
      1. Provide a flag that would eagerly bootstrap the job's context.

      Description

      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.

      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

      Notes

      https://docs.google.com/document/d/1q964adRCA-kJke_i0GBToJHLXJJTV_7TaTpQT0ymsbc/edit

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mminella Michael Minella
              Reporter:
              mminella Michael Minella
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: