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

BN003 - LookupCache may not have a corresponding PopulateCache #480

Open
ssvaidyanathan opened this issue Oct 17, 2024 · 1 comment
Open
Assignees

Comments

@ssvaidyanathan
Copy link
Collaborator

The logic for BN003 might not be right

The plugin basically checks for a key from LookupCache policy matches with the PopulateCache policy. It fails if the PopulateCache policy is not part of the bundle

This is a common use case where I could have the logic to populate the cache in one proxy and have the lookup in another..

Similarly I could have populating cache in one SharedFlow and the retrieval in another sharedflow.. This should not flag as an error...

@DinoChiesa
Copy link
Collaborator

Ya, that is a good point.

Do you know, What happens if the PopulateCache is done within one Shared flow, and the LookupCache is done from within another shared flow, and if the Scope for the policies is anything other than Global ? Does it work?

If the Scope is "Application" does it use the shared flow name? or the proxy name? Do you know? What about the other cases?

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

No branches or pull requests

2 participants