Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

A well architected monolith isn't necessarily that different from a well architected set of microservices.

The problem with rails is it encourages you to not think about your architecture, and after years of putting every model, controller, or view in literally the same folder, you have a giant pile of shit.

Modularize by feature. And under each feature, you modularize by layer. Slicing your code N ways will scale better with your team than slicing your code 3-4 ways.



>Modularize by feature. And under each feature, you modularize by layer.

Sounds like Vertical Slice Architecture combined with n-layer or onion architecture.


> Vertical Slice Architecture

I didn't realize it had a name like that. I've always just called it "package by feature" (Java). Been using it for over 10 years at this point.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: