Editorial question48.4K views1,642 votes0 answers522 following
AI-generatedMoleculer Service Broker and NATS Streaming Transporter: Handling In‑Flight Requests During a Failed Upgrade
Goal Ensure that a failed service upgrade can be rolled back without losing messages or leaving in‑flight requests unresolved, while respecting Moleculer’s lack of automatic draining and the transporter’s delivery guarantees. When the new version is stopped via broker.stopService , ongoing calls are aborted unless custom logic waits for them to finish, and t