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.
More from coding & agent
- Karpathy's nanochat hits 59K stars: a full LLM training lab in one repo — techNmak · 2026-11-01
- Personal agents' third act: giving your dot ongoing responsibilities — craigsdennis · 2026-11-01
- Hands-on tutorial trains a decision model on Qwen3-0.6B from scratch — dl_weekly · 2026-11-01
- ui-ux-pro-max and 6 more repos giving AI coding tools real design taste — GCWebDesigner · 2026-11-01
- Hex ships stable release: local voice dictation for talking to AI agents on Mac, Windows, Linux — madeofAjala · 2026-11-01
- Personal AI agent race heats up — this prompt migrates your entire setup between agents — EXM7777 · 2026-11-01