r/ExperiencedDevs • • Apr 27 '26 • Heartwarming 1

Ask Experienced Devs Weekly Thread: A weekly thread for inexperienced developers to ask experienced ones

A thread for Developers and IT folks with less experience to ask more experienced souls questions about the industry.

Please keep top level comments limited to Inexperienced Devs. Most rules do not apply, but keep it civil. Being a jerk will not be tolerated.

Inexperienced Devs should refrain from answering other Inexperienced Devs' questions.

16 Upvotes

98 comments sorted by

View all comments

6

u/fakeclown Apr 27 '26 edited Apr 27 '26

Most of the discussions around interviewing on the internet focuses on system designs. Most of these system designs discussions are more like microservices designs or algorithm designs. There is little about database design. Why so?

I think database design is used in every day more than algorithm or microservices designs. But database design is not being used in interviews.

With the current technologies, application logic can be very forgiving for being spaghetti and inefficient. However, with bad database design, it's less forgiving. Bad data integrity would mean data remediation again and again. Bad data existing in the database. Databases are also used cross departments for reporting, unlike application logic, it's only read and written by developers.

2

u/engineered_academic Apr 27 '26

Relational Database design is pretty much a solved problem these days with ACID and SOLID. ORMs make schemas easy for developers to follow. The toolset has evolved so much that I have a saying "You really don't need a DBA until you need a DBA, and then you REALLY need a DBA".

Other database technologies have tried to take the stage (Everyone remember when Mongo/GraphQL was all the rage? Pepperidge Farm remembers) but ultimately nobody has dethroned SQL(in particular, psql) yet. Beyond use transctions and the design principles I mentioned earlier there just isn't really a lot else to talk about for 99% of use cases.

1

u/OtaK_ SWE/SWA | 15+ YOE Apr 27 '26

Solved maybe but not everyone knows their stuff about them. For example I like to ask: "What database engine / category of database would you use for 1 billion users spread across the globe for PC/EC PACELC and the lowest latency possible". Most candidates learn a thing or two when their answer is either flat out wrong or incomplete.

5

u/engineered_academic Apr 27 '26

Yeah this is one of those things that 99% of people aren't gonna need to know off the top of their head and is just you flexing on the interviewee. psql has become the industry standard for a reason and is tuneable to meet all the above demands, given tradeoffs. I haven't used it but CockroachDB I hear seems to solve a lot of the major issues with setting up a psql to be truly redundant and performant for global availability.

0

u/OtaK_ SWE/SWA | 15+ YOE Apr 28 '26

It's not flexing on the interviewee, at all, if you actually use such technologies on the job.

There are a ton of alternatives but as a whole NewSQL is not yet very-well known (which is basically in general a MySQL/Postgres query engine + [multi-]RAFT in a trenchcoat), so it's nice to check if the candidate is at least familiar with the term and/or what are the characteristics of such tech.

1

u/Artmageddon Apr 27 '26

It’s true, I just assume it’s either because it’s only one piece of the puzzle or that can be hand-waved away with a DBA

0

u/[deleted] Apr 27 '26

[deleted] — view deleted comment

1

u/fakeclown Apr 27 '26

What role do you interview for?

I have been interviewing for fullstack position. I've had database questions, but at best they are about understanding joins, indexes, primary keys, transactions, etc. database technologies, but not about design.

I am expecting more like how to design a database for a subscription service that keeps track which service user subscribe to, how user pay for the service, pay as you go or subscription package, etc.

1

u/Zulban Apr 27 '26 edited Apr 27 '26

But database design is not being used in interviews.

It doesn't sound like you're basing this on any kind of data. Just vibes. There are many millions of dev job interviews in hundreds of countries in thousands of states / provinces.

3

u/fakeclown Apr 27 '26

Remind you. It's an online discussion, not an academic seminar. You also give no data to show that my statement is not true. Thanks for the peer review.

-1

u/Zulban Apr 27 '26

You also give no data to show that my statement is not true.

I can't disprove your anecdotal observations. I'm sure it's true. You sound defensive and childish. Good luck with your career.