mknauff2 / service-template

Provides a microservice template based upon the hexagonal pattern
1 stars 0 forks source link

Change the opaque resource id generation method #1

Open mknauff2 opened 2 years ago

mknauff2 commented 2 years ago

Change the customer resource id from db generated to guid managed by the customer service. Make sure that duplicate customers based upon resource id and customer id cannot be added.

mknauff2 commented 2 years ago

The GUID should only be set on the creation of a new customer and should only be set by the customer service. Getting a customer by the reference ID is the canonical method. External clients will know customers by their customer ID. Both resource IDs and Customer IDs should uniquely identify a customer. They are alternate IDs for the same customer.