cupakromer / message_swagger

Apache License 2.0
0 stars 0 forks source link

Add user model #6

Closed cupakromer closed 2 years ago

cupakromer commented 2 years ago

Work towards #2

We are omitting an ADR for this as this is just a demo app. Normally the thought process that goes into a user's attributes is long and complex. In our case, it's highly probable the user's attributes are defined by another account / authentication system. If that were the case we'd copy the ADR from there into here as the documentation.

In lieu of an ADR, here are the rough thoughts going into the user model:

As a minor performance optimization, we do not run the extra DB unique checks when the handle has not changed. Rails will not send the handle data in an UPDATE command if it has not been modified. Thus there's no reason for us to increase latency doing an unnecessary DB round trip.