Skip to content

TESTING: Flatten Interface Design#28

Draft
Integralist wants to merge 2 commits intomainfrom
integralist/testing-plan-access
Draft

TESTING: Flatten Interface Design#28
Integralist wants to merge 2 commits intomainfrom
integralist/testing-plan-access

Conversation

@Integralist
Copy link
Copy Markdown
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