Tagged: ai
4 posts tagged with "ai". View all posts →
I Added Circuit Breakers to a Rails App and Had to Patch the Gem Twice
Wrapping OutfitMaker's six external API calls in circuit breakers was the easy part. Making breaker_machines actually trip — and actually survive a worker restart — took two monkey patches and a lot of reading the gem's internals.
I Swapped Fashn for Gemini and Discovered Vertex AI Can't Return Images
Replacing OutfitMaker's virtual try-on engine looked like a service-object swap. It turned into a same-day cascade of five fixes, including discovering the Gemini API I was already using can't return images.
A TOCTOU Bug in My Gemini Rate Limiter
A read-then-write pattern in OutfitMaker's rate limiter let concurrent requests bypass the daily Gemini quota. The fix compresses to a single atomic increment, but understanding why takes a minute.
Multimodal AI for Outfit Suggestions
How sending actual photos to Gemini instead of text descriptions transformed OutfitMaker's suggestions from generic to genuinely useful.