Hacker News new | past | comments | ask | show | jobs | submit login

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?



At 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.


Good tests are a lot easier to write with good interfaces.


Database abstraction layers are leaky, if you don't test things like isolation levels or other tricky behaviors, those tests will have limited value.


Limited value is better than no value.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: