2 ms·
> it violates various architectural principles, for example, from the point of view of our business logic, there's no such thing as "tenant ID" I'm not sure I
by youerbt 2y ago
> it violates various architectural principles, for example, from the point of view of our business logic, there's no such thing as "tenant ID"
I'm not sure I understand how hiding this changes anything. Could you just not pass "tenant ID" to doBusinessLogic function and pass it to saveToDatabase function?
- deleted 2y ago[deleted]
- tubthumper8 2y agoThat's exactly what what they're talking about, "tenantId" shouldn't be in the function signature for functions that aren't concerned with the tenant ID, such as business logic
- youerbt 2y agoBut they chose a solution (if I understand correctly), where tenant ID is not in the signature of functions that use it, either.