Daniel Craciun
May 31, 2024

--

For sure Alain, however it really depends on what the autoincrement id represents.

Normally, using an auto-id for sharing is fine, e.g. for blog posts, shopping items.

The programmer can use middleware and role-based auth on the backend to prevent people from accessing certain resources also.

But uuids are surely better when sharing items, since they guarantee uniqueness.

--

--