NetCoreMediatrSample
NetCoreMediatrSample copied to clipboard
Switch to ByteAether.Ulid for faster, always‑reliable ULID generation
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: