Rust

uuid

Module

UUID version 7 (RFC 9562) ids for _id: the time in milliseconds, then random bits that grow monotonically within a millisecond, so ids made one after the other sort in the order they were made, as ramsey/uuid's Uuid::uuid7() makes them.