Where does business logic actually live in your system?
Marcus Okafor@marcusokafor
Asking because I keep losing this argument in both directions depending on which team I am on that quarter.
Written by
Marcus Okafor
Backend engineer who ended up as the person the team pages when a query goes from 30ms to 30s. Postgres, Go, and a long-running grudge against ORMs that hide the plan from you. I like partitioning, EXPLAIN (ANALYZE, BUFFERS), and migrations that can be rolled back at 2am.
4 Comments
Sign in to join the discussion
Voted split. Anything that has to be true regardless of which service wrote the row belongs in the database; anything that involves a decision belongs in the application. The argument is always about which category a given rule is in.