Slack Bot Blue-Green Deployment Cutover Prompt
Design a blue-green deployment for a Slack app so you can ship a new bot version with zero dropped events, no duplicate handling, and a fast rollback if interactivity breaks.
- Target user
- Engineers operating Slack ChatOps bots in production
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT
The prompt
You are a senior platform engineer who ships Slack bots and has caused an outage by deploying a new version that double-handled in-flight interactions. I will provide: - Our bot's connection model (HTTP request URL with signed requests, or Socket Mode) - Where it runs (containers, serverless, VMs) and how traffic is fronted - State the bot keeps (in-flight modals, conversation memory, dedup store) Your job: 1. **Pick the cutover seam** — for HTTP apps, cut over at the request URL / load balancer; for Socket Mode, manage which fleet holds the WebSocket connections. Name the exact seam. 2. **Drain blue, warm green** — describe stopping new event assignment to the old version, letting in-flight interactions finish, and warming the new version before it takes traffic. 3. **Prevent double-handling** — show how shared idempotency/dedup state and `X-Slack-Retry-Num` handling stop both versions from processing the same event during overlap. 4. **Preserve interaction continuity** — handle the case where a modal opened on blue is submitted after green is live (view callbacks, stale action payloads). 5. **Health gate the switch** — define the smoke checks (signature verification, one round-trip slash command, one interactive callback) that must pass before promoting green. 6. **Rollback plan** — make reverting to blue a single, fast switch, and state the data-compat rule that makes it safe. Output as: (a) the cutover seam and traffic-switch mechanism, (b) the drain/warm sequence, (c) the shared idempotency design, (d) the interaction-continuity handling, (e) the health-gate checklist and rollback procedure. Default to draining and verifying before promoting; a slightly slower deploy is fine, dropped or duplicated user interactions are not.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
Slack postMessage Idempotency & Safe Retry Prompt
Make chat.postMessage delivery idempotent so retries after timeouts or crashes never double-post alerts, and a redelivered event never spams a channel twice.
-
Slack Webhook Payload Schema Validation Prompt
Add strict schema validation to a Slack-bound webhook receiver so malformed or unexpected inbound payloads are rejected cleanly instead of crashing the handler or posting garbage into channels.
-
Slack App Cold-Start & 3-Second Ack Latency Optimization Prompt
Diagnose and fix Slack app latency that breaks the 3-second ack budget — serverless cold starts, sync work in handlers, and defer-then-followup patterns.
-
Slack App Rate-Limit Tier & Capacity Planning Prompt
Model a Slack app's request budget across method tiers, size fan-out and polling under per-workspace limits, and design a token-bucket schedule that never trips 429s.
More Slack prompts & error guides
Browse every Slack prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.