5 ms·
I wouldn't even worry about coding to interfaces. When you need to replace Postgres because you have more than 1M users, you will probably have the revenue to r
by glutamate 4y ago
I wouldn't even worry about coding to interfaces. When you need to replace Postgres because you have more than 1M users, you will probably have the revenue to refactor your code to swap out Postgres dependencies. Because you have good integration and E2E tests, right?
- thomaslangston 4y agoGood tests are a lot easier to write with good interfaces.
- isbvhodnvemrwvn 4y agoDatabase abstraction layers are leaky, if you don't test things like isolation levels or other tricky behaviors, those tests will have limited value.
- jimbokun 4y agoLimited value is better than no value.
- marcosdumay 4y agoAt such time you will also have plenty of interesting new problems that require changing most of your code anyway. I agree that hedging against having to move from a FOSS database is pure waste.