Closed prabirshrestha closed 1 year ago
Any reason id is of type Xid instead of String? https://github.com/ZeroAssumptions/aide-de-camp/blob/92aea347f69950a3d0f081e6590d47d73331bd1b/aide-de-camp/src/core/job_handle.rs#LL11-L11C25
Xid
String
Some database such as surrealdb will efficiently store UUID. While this would be breaking change it would be good if the id was of type String.
Yeah, this is to ensure multiple job publisher won't collide and IDs are still lexicographically sortable without a centralized broker. UUIDs are slower to generate, and at best 4 bytes larger than Xid.
Any reason id is of type
Xid
instead ofString
? https://github.com/ZeroAssumptions/aide-de-camp/blob/92aea347f69950a3d0f081e6590d47d73331bd1b/aide-de-camp/src/core/job_handle.rs#LL11-L11C25Some database such as surrealdb will efficiently store UUID. While this would be breaking change it would be good if the id was of type
String
.