What is the reason behind uuid in laravel notifications
Asked Answered
F

1

6

What is the reason uuid is the id in the notification system?

Frequently answered 25/2, 2018 at 3:46 Comment(0)
R
8

The notifications table uses UUID's because they will scale much better for large applications and distributed databases. Since they aren't necessarily sequential, they are not subject to database column type limits either.

Here is a description straight from the ramsey/uuid library that laravel uses:

Anyone can create a UUID and use it to identify something with reasonable confidence that the same identifier will never be unintentionally created by anyone to identify something else. Information labeled with UUIDs can therefore be later combined into a single database without needing to resolve identifier (ID) conflicts.

Reluct answered 30/4, 2018 at 2:20 Comment(1)
Thanks for your descriptionFrequently

© 2022 - 2024 — McMap. All rights reserved.