Skip to content
All tags

#vision-api

1 posts
aidebug

Fixed It Three Times, Broke It Three Ways: Vision PDF Parsing Optimization in Three Acts

Parsing a 150-page PDF via Vision API took 29 minutes (one page per request). Batching cut it to 1.5×, adding 5-way concurrency brought it down to 24 seconds. One week after launch, a customer uploaded 23 PDFs at once — 70 parallel Bedrock requests triggered full throttling: 90 pages skipped, 5 files failed, 8 stuck. Fixed with Redis-based cluster-wide slots + backoff retries.