Users¶
A User is anyone who makes direct use of one or some of our applications and therefore must be registered in our system, let it be an ITsynch administrator, employee, or a crew member. For each user we need to store some information regarding several aspects that make a User as a whole.
All this data was previously being held altogether, which led us to a gigantic entity that was hard to maintain or extend. By moving into a microservices environment and embracing DDD fundamentals, we now want to maintain a clear separation of concerns by splitting this massive load of information in different bounded contexts.
Users Service¶
The Users service
is responsible for maintaining information about our users
most superficial, profile oriented aspects.
Profile¶
The main domain concept that rules Users Service process is the User Profile
.
As we said, information kept by this service is pretty simple. Yet, there are
some constraints being enforced over these fields.
Login Id
: Represents the name, by which, the user will be logged into any of the applications. It has a maximum length of 50 characters.Display Name
: usually refers to the user name. It has a minimum length of 5 characters.Email Address
: will be used for communication purposes.- Must be in valid format according to restrictions specified by RFC 3696.
- Local part has a maximum length of 64 characters.
- Domain part has a maximum length of 255 characters.
- Overall address has a maximum length of 256 characters.