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

ref(actix): Update Store Actor #1397

Merged
merged 13 commits into from
Aug 10, 2022

Conversation

tobias-wilfert
Copy link
Member

@tobias-wilfert tobias-wilfert commented Aug 9, 2022

General

As part of the effort to future-proof Relay, this PR updates the
Store actor to work with standard Futures
instead of the former futures crate. It also moves away from
actix internally.

The bulk of the changes are in the store.rs file with minor changes
to the envelope.rs file for compatibility with the remaining system

Design Choices

Future Steps

  • To be determined

@tobias-wilfert tobias-wilfert changed the title Tobias wilfert/future proofing relay ref(actix): Update Store Actor Aug 9, 2022
@tobias-wilfert tobias-wilfert marked this pull request as ready for review August 9, 2022 13:34
@tobias-wilfert tobias-wilfert requested a review from a team August 9, 2022 13:34
CHANGELOG.md Outdated Show resolved Hide resolved
relay-server/src/actors/envelopes.rs Show resolved Hide resolved
relay-server/src/actors/store.rs Show resolved Hide resolved
relay-server/src/actors/store.rs Show resolved Hide resolved
relay-server/src/actors/store.rs Outdated Show resolved Hide resolved
@@ -30,7 +30,9 @@
- Spawn more threads for CPU intensive work. ([#1378](https://github.com/getsentry/relay/pull/1378))
- Add missing fields to DeviceContext ([#1383](https://github.com/getsentry/relay/pull/1383))
- Improve performance of Redis accesses by not running `PING` everytime a connection is reused. ([#1394](https://github.com/getsentry/relay/pull/1394))
- Change to the internals of the store actor. ([#1397](https://github.com/getsentry/relay/pull/1397))
- Distinguish between various discard reasons for profiles. ([#1395](https://github.com/getsentry/relay/pull/1395))
- Add missing fields to GPUContext ([#1391](https://github.com/getsentry/relay/pull/1391))
Copy link
Contributor

Choose a reason for hiding this comment

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

this accidentally moved to the wrong section?

Copy link
Contributor

Choose a reason for hiding this comment

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

i mean, the line below this :)

Copy link
Member Author

Choose a reason for hiding this comment

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

I think it should be in the Internal section? (At least that is where the entry for the change of the Healthcheck actor is as well)

Copy link
Contributor

@iker-barriocanal iker-barriocanal left a comment

Choose a reason for hiding this comment

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

Awesome!

relay-server/src/actors/envelopes.rs Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
@tobias-wilfert tobias-wilfert merged commit 26a86a4 into master Aug 10, 2022
@tobias-wilfert tobias-wilfert deleted the tobias-wilfert/future-proofing-relay branch August 10, 2022 09:56
tobias-wilfert added a commit that referenced this pull request Aug 18, 2022
- This PR updates the Store service to use the generic Addr introduced
  in #1405, to avoid duplicate code, it moves the shared code out
  to its own module in relay-system called service.

-  Some minor changes have been made to address the comments of Jan
  on #1397.

### Future Steps

- With the generic Addr in place the time has come to make a new
registry for the services, that replaces the hardcoded current solution.
@HazAT HazAT added this to the Upgrade Tokio in Relay milestone Nov 21, 2022
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.

4 participants