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 Reality

I 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