Strangler Fig pattern for adding LLMs to a legacy monolith without breaking production

Dense-Set4765 · reddit · 2026-10-31

A detailed architecture proposal for adding LLM classification to a legacy Java monolith: facade interface, separate LLM gateway, shadow evaluation with the legacy classifier staying authoritative, feature flags for gradual rollout, and validation with fallback. Key insight: schema-valid ≠ semantically correct ≠ authorized—the app must own business actions. Discusses failure scenarios and when the operational cost of separation is worth it.

Original post →

More from coding & agent

coding & agent channel →