Skip to content

Introduce node ID synchronizer and time synchronizer#69

Open
GuoxinL wants to merge 1 commit intobwmarrin:masterfrom
GuoxinL:feat_allocator_sync
Open

Introduce node ID synchronizer and time synchronizer#69
GuoxinL wants to merge 1 commit intobwmarrin:masterfrom
GuoxinL:feat_allocator_sync

Conversation

@GuoxinL
Copy link

@GuoxinL GuoxinL commented Feb 9, 2026

Resolve the following issues:

Problem 1: NodeID Collision Prevention NodeID is allocated by a third-party medium, which can resolve NodeID collision issues.

Problem 2: Clock Backward Detection After Restart Since bwmarrin/snowflake is based on Go's monotonic clock, it won't encounter issues during runtime. Clock backward problems only occur during restart initialization, therefore checking for clock backward needs to be performed during initialization.

@GuoxinL GuoxinL force-pushed the feat_allocator_sync branch 4 times, most recently from aa2b6d3 to 54c59e0 Compare February 11, 2026 02:37
@GuoxinL GuoxinL force-pushed the feat_allocator_sync branch from 54c59e0 to 0fa63cc Compare February 11, 2026 03:24
@GuoxinL
Copy link
Author

GuoxinL commented Feb 12, 2026

This is the implementation I wrote for it, without any performance loss!!!

https://github.com/GuoxinL/snowflake-gorm

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.

1 participant