by rjbwork · 10y ago · 0 comments
The point is you're suffering the same problem. Whether you do it at the application level or the database level, it's a mess.
It doesn't free you from programming, from reasoning about your code, or from ensuring that this code is free of bugs. But it does free you from worrying about whether the bugs exist in multiple places or whether there are subtle race conditions involved in the code interacting with itself.
Whether this important depends on how many applications are accessing the same database. There's a strong argument for one app = one DB, if you can get away with it, and then none of this is relevant. This is not always possible.
... (2 years later) ... Oh, now I get it!