India’s Leading Domain & Web Hosting Provider
Online pharmacy catches failed prescription uploads in 2 minutes instead of next morning
E-pharmacy delivering in 180 cities, about 22,000 orders a day · AWS Mumbai (ap-south-1) · 6 weeks
As-is situation
The pharmacy ran its storefront, prescription upload service and pharmacist verification queue on 64 EC2 instances and three RDS databases. CloudWatch sent 3,100 alarms a month to a shared mailbox, mostly CPU and disk warnings. The prescription upload path depended on an image-processing service and a third-party OCR API; when either failed, uploads appeared successful to the customer but never reached the pharmacist queue. Night failures were only discovered when the morning verification team found an empty queue, by which time hundreds of orders had missed same-day dispatch.
- Three overnight upload failures in one quarter delayed about 1,900 orders past their dispatch slot
- Fewer than 4% of 3,100 monthly alarms led to any action
- No check confirmed that an uploaded prescription actually reached the verification queue
Approach, tools and architecture
NTSPL built a CloudWatch Synthetics canary that uploads a dummy prescription every minute from Mumbai and confirms it lands in the verification queue within 90 seconds, tagged so pharmacists never see it. Queue depth and OCR API latency became paired composite alarms. We retired 41 CPU and disk alarms, replaced them with baseline-derived thresholds and routed everything through EventBridge into the NOC ITSM queue with runbooks. The OCR provider's status feed was added to the health wall, and a fallback path to manual verification was scripted for the NOC to trigger.
Implementation approach
Measured results
Operational improvements
- The morning verification team no longer starts the day checking whether overnight uploads arrived
- OCR vendor outages are now raised with the vendor within 10 minutes using evidence from the canary
Cost considerations
Synthetics canaries at one-minute frequency for three journeys added a modest monthly charge, offset by retiring unused alarms and moving debug logs to a shorter retention class. The NOC service was priced per monitored resource for 64 instances and three databases.
Return on investment
At an average basket of about ₹650, protecting roughly 1,800 delayed orders a quarter preserves around ₹11-12 lakh of at-risk revenue each quarter, before counting cancellations and refunds avoided. The service paid back within its first two quarters.