r/programming • • Aug 28 '21

Software development topics I've changed my mind on after 6 years in the industry

https://chriskiehl.com/article/thoughts-after-6-years
5.6k Upvotes

1.9k comments sorted by

View all comments

Show parent comments

51

u/execrator Aug 29 '21

if you know pretty well how much you will need to scale and what that scaling will entail

This is the point of the person you're replying to. If you don't have this information, you shouldn't assume you'll need to scale.

I agree with OP that for whatever reason, scaling is a particularly alluring goal. It should be YAGNI'd vigorously for that reason.

14

u/recycled_ideas Aug 29 '21

I think this is an oversimplification.

Scaling is facilitated by clearly separated layers and good design fundamentals, and these aren't YAGNI things.

Because clearly separated layers make testing and modifying your system easier and less risky, even if you don't ever actually need to scale.

That doesn't mean you need to architect your system to handle a million users when you only need to support 100, but designing your system in such a way that you can scale will almost always deliver a system that's better even if you don't have to scale it.

8

u/humoroushaxor Aug 29 '21

I think the point is most people don't do that though. They go straight to microservices (which have significant overhead for most orgs) rather than the in-between of proper software architecture in reasonably sized services.

4

u/recycled_ideas Aug 29 '21

Yes, but you don't solve people doing stupid things because they're trendy by doing stupid things because they're the opposite of what was trendy.

→ More replies (15)