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

🪀 Add fastly_backend interfaces for backend introspection #236

Merged
merged 4 commits into from
Mar 22, 2023

Conversation

acw
Copy link
Contributor

@acw acw commented Mar 20, 2023

This doesn't actually implement any interesting functionality -- it's not clear what pooling would mean within the context of Viceroy -- but it allows programs that use this flag to function properly.

Because this just bit me, I've also removed the bit of code that checks for unknown flags and errors. I think it actually makes more sense for old versions of Viceroy to ignore flags they don't understand. Admittedly, I'm betting that future changes will be like this one (in that they don't change any, or change very little, Viceroy behavior), and not settings which will totally change behavior.

@aturon
Copy link
Contributor

aturon commented Mar 21, 2023

There might be a good reason to keep the flag check: Viceroy is often used for testing SDK implementations, and having feedback about invalid flags could be invaluable for debugging.

wdyt?

@acw
Copy link
Contributor Author

acw commented Mar 21, 2023

Well, OK. I was going to argue a bit, but then we discovered that we were a few functions behind in the backend introspection API, and that this was going to cause problems. Which then made me think "well, that means we can't be super tolerant of unknown things in general", so ... OK, agreed.

Also, this PR just got bigger. Sorry for the surprise embiggening.

@cratelyn cratelyn changed the title 🪀 Update dynamic backends support to handle the "don't pool" flag. 🪀 Add fastly_backend interfaces for backend introspection Mar 22, 2023
@acw acw merged commit 62444d4 into main Mar 22, 2023
@acw acw deleted the awick/dbe-extensions branch March 22, 2023 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants