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

Introduce more common types #71

Merged
merged 1 commit into from
Feb 3, 2023
Merged

Introduce more common types #71

merged 1 commit into from
Feb 3, 2023

Conversation

tillrohrmann
Copy link
Contributor

The new common types are:

  • LeaderEpoch
  • PartitionId
  • PartitionLeaderEpoch
  • InovcationId

This fixes #56.

@tillrohrmann tillrohrmann added this to the 1A milestone Feb 3, 2023
Copy link
Contributor

@igalshilman igalshilman left a comment

Choose a reason for hiding this comment

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

Thanks Till, LGTM 👍

For your consideration: uszie vs u64

@@ -1,2 +1,15 @@
use uuid::Uuid;

/// Identifying a member of a raft group
pub type PeerId = usize;
Copy link
Contributor

Choose a reason for hiding this comment

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

Not that it matters a lot, but usize is a pointer sized type and thus architecture specific (32 or 64 bit) usize
Not that we are planning to support 32 bit systems, but perhaps u64 is a bit safer.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This makes sense. Will change it.

The new common types are:

* LeaderEpoch
* PartitionId
* PartitionLeaderEpoch
* InovcationId

This fixes #56.
@tillrohrmann tillrohrmann merged commit 524f11a into restatedev:main Feb 3, 2023
@tillrohrmann tillrohrmann deleted the issue#56 branch February 3, 2023 21:02
slinkydeveloper added a commit to slinkydeveloper/restate that referenced this pull request Mar 18, 2024
…eb24f..4378d559

4378d559 Move headers into InputStreamEntry. (restatedev#75)
433d4466 Remove the old discovery. Fix restatedev#71

git-subtree-dir: crates/service-protocol/service-protocol
git-subtree-split: 4378d559db7a53a477dd091b636a64712b2b630e
slinkydeveloper added a commit to slinkydeveloper/restate that referenced this pull request Mar 20, 2024
…eb24f..4378d559

4378d559 Move headers into InputStreamEntry. (restatedev#75)
433d4466 Remove the old discovery. Fix restatedev#71

git-subtree-dir: crates/service-protocol/service-protocol
git-subtree-split: 4378d559db7a53a477dd091b636a64712b2b630e
slinkydeveloper added a commit that referenced this pull request Mar 20, 2024
…eb24f..4378d559

4378d559 Move headers into InputStreamEntry. (#75)
433d4466 Remove the old discovery. Fix #71

git-subtree-dir: crates/service-protocol/service-protocol
git-subtree-split: 4378d559db7a53a477dd091b636a64712b2b630e
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.

Think about using UUIDv7 or ULID for invocation ids
2 participants