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

feat(rust): add one second cache for incoming and outgoing access control #7784

Merged
merged 2 commits into from
Mar 21, 2024

Conversation

davide-baldo
Copy link
Member

@davide-baldo davide-baldo commented Mar 20, 2024

ABAC Policy can have a "slow" (few milliseconds) evaluation, adding a cache for 1 second is more than enough to remove any performance penality.
The cache is only available on std due to the Instant dependency. I could have used now() but it wouldn't be as robust.

@davide-baldo davide-baldo force-pushed the davide-baldo/one-second-cache branch from 8e9c00b to ccc1175 Compare March 20, 2024 15:28
@davide-baldo davide-baldo marked this pull request as ready for review March 20, 2024 15:43
@davide-baldo davide-baldo requested a review from a team as a code owner March 20, 2024 15:43
@davide-baldo davide-baldo force-pushed the davide-baldo/one-second-cache branch from ccc1175 to 2628f31 Compare March 20, 2024 18:36
Copy link
Member

@adrianbenavides adrianbenavides left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks for adding this 🙏 I left a couple of minor comments, feel free to ignore them.

@davide-baldo davide-baldo force-pushed the davide-baldo/one-second-cache branch from 703615a to 12307cb Compare March 21, 2024 15:02
@adrianbenavides adrianbenavides self-requested a review March 21, 2024 16:10
@davide-baldo davide-baldo added this pull request to the merge queue Mar 21, 2024
Merged via the queue into develop with commit 3aebc7e Mar 21, 2024
39 checks passed
@davide-baldo davide-baldo deleted the davide-baldo/one-second-cache branch March 21, 2024 16:32
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.

2 participants