Hacker News new | ask | show | jobs
by youerbt 518 days 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?

1 comments

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
But they chose a solution (if I understand correctly), where tenant ID is not in the signature of functions that use it, either.