NetCoreMediatrSample icon indicating copy to clipboard operation
NetCoreMediatrSample copied to clipboard

Switch to ByteAether.Ulid for faster, always‑reliable ULID generation

Open Seramis opened this issue 8 months ago • 0 comments

Describe your suggestion Several C# projects currently use a ULID library that, per the spec, throws an exception if the 80‑bit random component overflows during monotonic generation GitHub. In high‑throughput scenarios this can halt ID issuance altogether.

Why ByteAether.Ulid?

  • Zero overflow errors: Instead of throwing, it increments the timestamp to preserve monotonic ordering without failure.
  • Top performance: Benchmarks show it outpaces popular .NET ULID packages in both throughput and low‑GC allocations (see repo README).

Additional context Links to ByteAether.Ulid:

Seramis avatar Apr 21 '25 10:04 Seramis