Serving - Gilligan128/Pancake GitHub Wiki

Serving

Serving is where all the action happens. It will setup all resources specified in the catalog.

Serving Activities

Serving Resources performs the following:

  1. Creates Resources that don't exists but are Ensured to be Present.
  2. Deletes Resources that exist but are Ensured to be Absent.
  3. Synchronizes the state of Resources that are different from their specified state.

Resource Dependency Resolution

Resources are served by Resource Type. Pancake will figure out the dependency Order of Resources.By default, Pancake inspects any Dependency properties on a Resource and will order each Provider based on these properties. It will also check for any circular dependencies or missing resources.

[TODO: Code Example] In this example, Resource B is registered after Resource B, but Resource B will be served first.

For self-referencing resources, each Provider needs to figure out how to handle those on its own.

Serving Behaviors

Serving behaviors are decorators that get plugged into the Serving pipeline. They allow us to wrap providers with additional behavior, audit the catalog, etc. [TODO: Code Example]