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

TESTING: Flatten Interface Design #28

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Integralist
Copy link
Owner

@Integralist Integralist commented Jun 6, 2023

I'm trying to validate if we can flatten the nested design of our service resources.

The problem is that each resource is executed in parallel, and this means even if we used a WaitGroup to try and synchronise a final fastly_service_activation resource, we couldn't use it because the wg.Wait() might be called first or second while a whole bunch of other resources haven't even been triggered for processing yet.

Options

There are two options for making this flatter design work...

  1. A two-step apply.
  2. depends_on with a potentially long list of resources (backends, domains, logging, snippets, vcl etc).

The latter is less problematic for users as it'll work for automated systems like CI.

@Integralist Integralist added the help wanted Extra attention is needed label Jun 6, 2023
@Integralist Integralist changed the title TESTING TESTING: Flatten Interface Design Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant