Claude Message Batches API and Multi-Pass Review Design
👋 In plain words: If you have thousands of requests and nobody is waiting for the answers right now, the Message Batches API runs them at half the cost, in exchange for waiting up to 24 hours. This lesson shows when that trade-off makes sense and when it doesn't.
Batch processing questions are pure judgement: when is cheaper-but-slower acceptable? The exam also asks how to design reviews that stay accurate at scale (Task Statements 4.5 and 4.6).
🔑 Key terms
- Synchronous call: A normal request: you send it and wait for the answer.
- Message Batches API: Send many requests at once. They are processed within 24 hours at a 50% discount.
- custom_id: Your own label on each request, used to match results, because results can come back in any order.
- SLA (service-level agreement): A promised deadline, such as 'results within 30 hours'.
📖 The story in this lesson
Every night ShopNest classifies 10,000 product reviews, and every day developers want instant feedback on their pull requests. One of these jobs suits batches, the other does not.
💡 Think of it like this
Batches are like posting parcels by economy mail: half the price, arrives within a day, and parcels may arrive in any order, so you label each one. Synchronous calls are a courier: dearer, but there in minutes when someone is waiting.
📦 Message Batches API facts
- 50% cost savings compared with synchronous calls.
- Processing can take up to 24 hours; no latency SLA.
- Results are correlated with
custom_id— they can arrive in any order. - No multi-turn tool calling inside a single request (tools can’t run mid-request).
- You poll for completion.
🌍 Real-world example: 10,000 reviews overnight
ShopNest submits the nightly review-classification job as one batch, each request labelled with a custom_id like 'review-48213'. Results arrive by morning in a jumbled order. They match each result to its review by ID, and the bill is half what synchronous calls would cost.
{"custom_id": "review-48213", "params": {"model": "...", "max_tokens": 200, "messages": [...]}}📦 Batch or synchronous?
| Use batches | Use synchronous calls |
|---|---|
| Overnight tech-debt reports, weekly audits, nightly test generation, historical backfills | Blocking pre-merge checks, live chat, anything a person is waiting on |
🌍 Real-world example: Nightly report yes, PR check no
The nightly tech-debt report and the weekly test-generation job go to batches. The pre-merge check that blocks a developer's pull request stays synchronous, because a developer is sitting there waiting for it.
⏱️ SLA submission maths
If results are due within 30 hours and a batch can take 24 hours, a document arriving just after a submission waits until the next one. Submitting every 4 hours gives a worst case of 4 + 24 = 28 hours — inside the SLA. Every 8 hours (32 h) or 12 hours (36 h) can miss it.
🌍 Real-world example: Meeting a 30-hour promise
Finance needs each invoice processed within 30 hours, and a batch can take up to 24. If ShopNest submits every 4 hours, the worst case is 4 hours waiting plus 24 processing, which is 28 hours: safe. Submitting every 8 hours risks 32 hours: too late.
🚨 Handling failures
Resubmit only the failed custom_ids, with a fix applied (for example, chunk documents that exceeded the context limit). Before a large run, refine the prompt on a representative sample to maximise first-pass success.
🌍 Real-world example: Resubmit only what failed
120 of the 10,000 requests fail because the reviews were too long. ShopNest splits those long reviews into chunks and resubmits only those 120 custom_ids, not the whole batch.
🔍 Multi-instance and multi-pass review
- Independent reviewer: a second Claude instance without the generator’s reasoning context catches more than self-review instructions or extended thinking in the same session.
- Multi-pass: per-file passes for local issues plus a cross-file integration pass.
- Confidence per finding: useful for routing reviewer attention once calibrated — not as ground truth.
🌍 Real-world example: A second opinion for nightly code review
In the nightly code-review batch, one pass checks each file separately and a second pass checks how the files fit together. The reviewing instance is independent of the one that generated the code, so it doesn't just agree with its own earlier reasoning.
custom_id.🛠️ Try it yourself (about 5 minutes)
- List three jobs in your team that use or could use an AI model.
- For each one, ask: is a person waiting for the answer?
- Mark it 'batch' if nobody is waiting and up to 24 hours is fine, otherwise 'synchronous'.
- For one batch job, work out a submission cadence for a 30-hour deadline.
✅ You are done when: each job is labelled, and your cadence plus 24 hours stays under 30.
🧪 Exam-Style Practice Questions
Try these before opening the answers. They use the same scenario style as the real exam.
Question 1. Which properties apply to the Message Batches API? (Choose two)
- A. Guaranteed 5-minute latency
- B. Multi-turn tool calling within a request
- C. 50% cost savings
- D. Results returned in submission order
- E. Up to 24-hour processing window
Show answer
Answer: C, E. A: there's no latency SLA. B: tools can't be executed mid-request. D: results can come back in any order, so correlate with custom_id.
Question 2. Results are due within 30 hours, and batches can take up to 24 hours to process. Which submission cadence safely meets the SLA?
- A. Every 8 hours
- B. Every 12 hours
- C. Every 4 hours
- D. Once a day
Show answer
Answer: C. The worst case is 4 h waiting plus 24 h processing = 28 h, which is under 30. B (36 h), A (32 h) and D (48 h) can miss the SLA.
Question 3. Why is an independent Claude instance better than self-review for generated code?
- A. It's cheaper
- B. Self-review is disallowed
- C. The generating session keeps its own reasoning context and is less likely to question its own decisions
- D. It uses a different tokenizer
Show answer
Answer: C. It removes anchoring on the original reasoning. A, B and D are false or irrelevant.
📝 Assignment
Do these tasks in order. Each one has a Done when check, so you know when it is complete. The stretch task is optional but close to what the exam expects from an architect. Keep your answers in one notes file or Git repository, and revisit them in your final week of revision together with the cheat sheet in the last lesson of this course.
- Task 1: Submit a batch of 20 requests with custom_id values and match the results by ID.
✅ Done when: All 20 results are matched to their requests by custom_id, even though they arrive in a different order. - Task 2: Calculate the submission cadence needed for a 30-hour SLA with 24-hour batch processing.
✅ Done when: Your answer is every 4 hours or more often, with the worst-case arithmetic written out. - Stretch: resubmit only failed requests after chunking the oversized inputs.
✅ Done when: Only the failed custom_ids are resubmitted, and the resubmitted requests succeed.
❓ Frequently Asked Questions
🤔 How much cheaper is the Message Batches API?
About 50% compared with standard synchronous calls.
🤔 How long can a batch take?
Up to 24 hours, with no latency guarantee.
🤔 Can I use batches for pre-merge checks?
No. Developers are waiting on those, so they need synchronous calls.
🤔 How do I match batch results to requests?
Use the custom_id you set on each request, because results can arrive in any order.
🏁 Summary
- Batches: 50% off, ≤ 24 h, no SLA, custom_id, no mid-request tools.
- Never put a blocking workflow on batches.
- Resubmit only failures; refine prompts on a sample first.
Next, continue with Claude Context Management: Case Facts, Lost-in-the-Middle and /compact.
Independent study material by SQA Tools. Not affiliated with, endorsed by or sponsored by Anthropic. Claude is a trademark of Anthropic. Mock questions are original practice items, not real exam content. Exam facts checked against Anthropic's official exam guides and certification FAQ on 11 November 2026.