All Tools
K
Dev ToolsFreeOpen Source
KSUID
K-sortable globally unique IDs for Go
MIT
ABOUT
Event streams and agent run logs need unique IDs that remain roughly time-ordered in indexes. Random UUIDs fragment storage. ksuid encodes a timestamp plus 128 bits of payload so IDs sort by time without a central generator.
INSTALL
go get github.com/segmentio/ksuidINTEGRATION GUIDE
1. Generate k-sortable IDs for agent run records in Go
2. Key Kafka or queue messages so consumers see roughly time order
3. Assign event IDs that sort in object-store prefixes
4. Parse ksuid strings from logs when debugging inference traces
TAGS
goksuididentifierstime-orderedevents