Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle Dependencies Properly #11

Open
gmt2001 opened this issue Sep 13, 2020 · 0 comments
Open

Handle Dependencies Properly #11

gmt2001 opened this issue Sep 13, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@gmt2001
Copy link
Owner

gmt2001 commented Sep 13, 2020

Handle dependencies recursively, based on the container hierarchy, instead of all-at-once

  1. Gather updateable containers list
  2. foreach updateable: Recursively determine dependencies and dependents
  3. Re-arrange updateable List as a dependency tree
  4. foreach in dependency tree: Stop everything in proper order, update everything that needs to be updated, start everything in proper order

Dependency tree example:

|-MongoDB
  |-Web-Backend
    |-Web-Frontend
  |-API
|-Standalone App

Order of operations for example (pseudocode):

if Web-Frontend or Web-Frontend.dependencies-recursive has update:
   Stop Web-Frontend
   Update? Web-Frontend

if Web-Backend or Web-Backend.dependencies-recursive has update:
   Stop Web-Backend
   Update? Web-Backend

if API or API.dependencies-recursive has update:
   Stop API
   Update? API

if MongoDB or MongoDB.dependencies-recursive has update:
   Stop MongoDB
   Update? MongoDB

if MongoDB stopped:
  Start MongoDB

if API stopped:
  Start API

if Web-Backend stopped:
  Start Web-Backend

if Web-Frontend stopped:
  Start Web-Frontend

if Standalone App or Standalone App.dependencies-recursive has update:
  Stop Standalone App
  Update? Standalone App

if Standalone App stopped:
  Start Standalone App
@gmt2001 gmt2001 self-assigned this Sep 13, 2020
@gmt2001 gmt2001 added the enhancement New feature or request label Sep 13, 2020
@gmt2001 gmt2001 changed the title Handle Dependencies Recursively and Per-Container Handle Dependencies Properly Sep 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant