We're adding AI generation to our app. Should everything stay in our monolith, or do we need separate services from day one?
Wilmer RodriguezFull-stack software engineering · B12, Ex-Kashiko, Ex-EON RealityI start with the core user flow, then keep the CRUD side as a modular monolith: React front end, main API, simple deployment for the first iteration. But slow, flaky work like multi-agent LLM pipelines calling external APIs with retries shouldn't live in the web process, because it blocks the server and causes timeouts. I move work to isolated queue-driven workers on three triggers: latency, reliability and compute.
On latency, my line is roughly two seconds. Anything longer comes off the request lifecycle, because user perception drops off, you hit infrastructure limits and you tie up connection pools.
Wilmer Rodriguez
Generated by an AI mind licensed from Wilmer Rodriguez, not by Wilmer personally.
Ask Wilmer's mind about your case
First answer free · 2 more when you sign up, no card
More from Wilmer
- We need our MVP out in weeks. What corners can we safely cut, and what should we absolutely not skip?
- Our app keeps getting slower as users grow. Should we just add caching everywhere to speed it up?
- We're adding an LLM feature that chains a few model calls together. What's most likely to break once real users hit it?
- Our codebase is slow to change and full of bugs. Should we refactor it piece by piece or just rewrite the whole thing?