akLearn's avatar

Why do Queues use UUID?

Main purpose of this question is to understand the benefits of UUIDs. I have read articles on why these are beneficial in an application which is tracking order IDs for an ecommerce application. I don't understand the benefit Laravel is getting from using it in Queues.

In general... when is this a good tool? If you can link this to Queues, it would be great.

0 likes
3 replies
fylzero's avatar

@aklearn UUIDs are implicitly unique and obfuscate sequential ids, which can be useful for preventing bad actors from doing things they shouldn't.

1 like
akLearn's avatar

@fylzero Why would Laravel need to use this in Queues? I understand the usage of this in ecommerce order IDs.

Sinnbeck's avatar

My guess is that it will work on any driver. Some drivers does not have incrementing ids

2 likes

Please or to participate in this conversation.