Getting ChatGPT to Write Accurate Message Queue Consumer Logic Without Poison-Pill Loops
ChatGPT-generated queue consumer code looks clean until a malformed message traps your worker in an infinite retry loop and silently starves everything else. Here's how to prompt for the dead-letter, visibility-timeout, and backoff logic that actually makes consumers production-safe.