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: use sdk-partitions.json from trebuchet #1667

Closed
wants to merge 7 commits into from
Closed

Conversation

dayaffe
Copy link
Contributor

@dayaffe dayaffe commented Aug 7, 2024

Issue #

Description of changes

New/existing dependencies impact assessment, if applicable

Conventional Commits

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@jbelkins
Copy link
Contributor

jbelkins commented Aug 8, 2024

@dayaffe I have reservations about performance on this, since a file must be read from disk for every API request. File system caching might minimize the hit though. This might be something we can look at once performance monitoring is in place.

Copy link
Contributor

@jbelkins jbelkins left a comment

Choose a reason for hiding this comment

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

You have unresolved merge conflicts in this branch.

Also, better to use actor to prevent simultaneous access than DispatchQueue.

resources: [
<<<<<<< HEAD
.process("Resources"),
Copy link
Contributor

Choose a reason for hiding this comment

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

lol pick this

case readError(String)
}

public class PartitionData {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think if you just make this type an actor, it will enforce exclusive calls to loadAWSPartitionJSON().

We should not be using DispatchQueue & other GCD types in new code, except where necessary to interact with pre-Swift concurrency code.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I made PartitionDataCache an actor which is used by this and removed DispatchQueue

@dayaffe dayaffe closed this Aug 23, 2024
@dayaffe dayaffe deleted the day/partition-file branch November 19, 2024 18:29
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