I am trying to understand DDD, but the scope to which we should seperate out domains seems a bit tricky to me.
Consider a few cases:
Consider I have a
utility domain, with 2 helper function.
Should I split these two into
utility/regex domain as well?
Lets say I have the first version implementation of
GenerateUUID. Now, it is quite possible that there will be a V2, V3 etc, with potentially breaking changes. Should I extract them into seperate domains as well, like
utility/uuid/v1 etc, which share the common functionality via
Consider I have the following tables in my database(assume relational):
Now, consider I have two operations,
Should I split these into seperate domains as well,
models/users/preferences, irrespective of what database/tables they access?
If I'm going wrong somewhere in understanding DDD too, please guide me.
P.S. I understand that the cases I have posted above might be a bit too basic. However, I am trying to get my basics right, and set some guidelines, upon which to build a foundation.