See also #6 .
It's possible that parallel duplicate requests are sent to register a device.
We should introduce a validation for uniqueness on the model and a unique index on the database level.
Still, due to race conditions, the validation will fail and an hard database error will be triggered.
If this happens, we will consider the registration successful and return a 200.
See also #6 . It's possible that parallel duplicate requests are sent to register a device. We should introduce a validation for uniqueness on the model and a unique index on the database level. Still, due to race conditions, the validation will fail and an hard database error will be triggered. If this happens, we will consider the registration successful and return a 200.