top | item 42778979

(no title)

youerbt | 1 year 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?

discuss

order

tubthumper8|1 year ago

That'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|1 year ago

But they chose a solution (if I understand correctly), where tenant ID is not in the signature of functions that use it, either.