TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Database design best practices for fintech

2 点作者 bingemaker8 个月前
Hi,<p>Been working for quite sometime in a financial startup (5 years). My company uses postgres heavily. The system is getting overly complex, and every dev likes to add tables and columns however they want.<p>Are there any best practices around db design that you follow?

2 条评论

pestatije8 个月前
yes, you are doing it wrong right there: database as common infrastructure, and (worse) database with no ownership...instead, you want your backbone components to talk to each other with a messaging system, decouple responsibilities (counterparties, accounts, risk, ...), and give ownership to specific members
fefferkorn8 个月前
Thats tricky, maybe hire an DB engineer or ask professionals and partner with them, to train Devs? Restricting them after letting them run loose will make em mad anyway, so what are your concerns? security? performance?<p>I mean u can put layers on top, like ORMs or graphql stuff like hasura tonabstract access to DBs,or use external managed systems like neondb, supabase or aws&#x2F;azure own stuff.. to enable restriction on tables and DBs. but this things make management worse if there is no discipline.<p>Im no DB engineer, just a sysadmin also dealing with same issues, but there is no holy grail. In the company i work for, one Dev who really was into DB engineering took the Owner role and he is discussing engineering, giving access to them and rolling out changes with the the DEVs, when they need something, but not the devs itselfs. He also writes migrations. But he is also a very skilled Dev.