· 1 min
Microservices vs. modular monolith: a pragmatic take
Splitting into fifteen services on day one doesn't make you more scalable — it makes debugging harder for no reason.
By Akshay Dhanraj Kurve, software engineer
Splitting a codebase into microservices before you have a reason to is one of the most common ways teams add complexity without adding capability. A modular monolith with clean internal boundaries gets you most of the benefits with none of the network overhead.
When it's actually worth splitting
The clearest signal I've seen is a component with radically different scaling characteristics than the rest of the system. On a chat platform I built, long-lived WebSocket connections needed to scale independently from the stateless REST API — co-locating them meant a spike in DB-heavy report queries could drop active chat sockets.
Realtime WS Gateway <--> API Gateway (stateless)
| |
v v
Chat Service User Service
- Never split without a clear bounded context and a real operational reason
- Stateful connections almost always deserve isolation from stateless business logic
- Prefer async, event-driven communication over synchronous chains between services