Skip to content
Where does business logic actually live in your system?
poll1.9K viewsAug 11, 2026

Where does business logic actually live in your system?

Marcus Okafor
Marcus Okafor@marcusokafor

August 11, 2026 · 1 min read

1.9K views4 comments

Asking because I keep losing this argument in both directions depending on which team I am on that quarter.

5 votesEnds 8/26/2026

Written by

Marcus Okafor

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

Diego Alvarez
Diego Alvarez@diegoalvarez1mo ago

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.

0
Lena Fischer
Lena Fischer@lenafischer1mo ago

Voted application layer and immediately regretted it after reading how option 3 is worded.

0
Sana Qureshi
Sana Qureshi@sanaqureshi1mo ago

Option 4 is the honest answer for every system I have actually worked in.

0
Marcus Okafor
Marcus Okafor@marcusokafor1mo ago

Option 4 is what option 1 becomes after two years.

0