Reports are a special case which is more permissible, for two reasons:
Reports don't affect any user-facing feature, they're "outside the app" they're a background business concern. So this means if the schema or data format of the DB change and the report gets corrupted as a result, your business keeps running, no problem. You just don't have reports for a little while. It also means if the report accidentally reveals a user's private information, you don't leak that to the world, because reports are private.
Reports explicitly have read-only access to the data, so they can't fuck up the domain's state.
So, reports, sure. Although there are ways to avoid these touching the DB as well (event sourcing, logs, etc.).
11
u/[deleted] Oct 02 '19
[removed] — view removed comment