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

Use Xid instead of UUID for SubscriptionID #142

Merged
merged 3 commits into from
Jan 9, 2021
Merged

Conversation

hackerwins
Copy link
Member

@hackerwins hackerwins commented Jan 9, 2021

What this PR does / why we need it:

Use Xid instead of UUID for SubscriptionID

Xid(12bytes) smaller than UUID and it's sortable. It is useful if the
SubscriptionID can be sortable.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

We need to merge #141 first.

Does this PR introduce a user-facing change?:


Additional documentation:


Checklist:

  • Added relevant tests or not required
  • Didn't break anything

Before implementing the distributed PubSub implementation using ETCD, we
need to extract the temporarily implemented MemoryPubSub and leave only
the high-level abstraction logic in PubSub.
Xid smaller than UUID(12bytes) and it's sortable. It is useful if the
SubscriptionID can be sortable.
@codecov
Copy link

codecov bot commented Jan 9, 2021

Codecov Report

Merging #142 (944de59) into master (1a2ccef) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #142   +/-   ##
=======================================
  Coverage   58.59%   58.59%           
=======================================
  Files          27       27           
  Lines        2968     2968           
=======================================
  Hits         1739     1739           
  Misses       1056     1056           
  Partials      173      173           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1a2ccef...944de59. Read the comment docs.

Copy link
Member

@dc7303 dc7303 left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@dc7303 dc7303 assigned hackerwins and unassigned dc7303 Jan 9, 2021
@hackerwins hackerwins merged commit f696850 into master Jan 9, 2021
@hackerwins hackerwins deleted the replace-uuid-with-xid branch January 9, 2021 14:50
jeonjonghyeok pushed a commit to jeonjonghyeok/yorkie that referenced this pull request Aug 4, 2022
Xid(12bytes) smaller than UUID and it's sortable. It is useful if the
SubscriptionID can be sortable.
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