India’s Leading Domain & Web Hosting Provider

  • Chat
    Live Chat 24 X 7 online support
  • Contact NTSPL Hosting support
    Call Now +91 - 8260003333
AWSOnline pharmacyHealthcare & Life Sciences

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

Amazon Web Services
01

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
02

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.

Synthetics canary → upload API → OCR service → SQS verification queue → composite alarm → EventBridge → NOC ticket
CloudWatch SyntheticsCloudWatch composite alarmsAmazon EventBridgeAmazon SQSAWS Health
03

Implementation approach

Week 1 · Alarm auditClassified 3,100 monthly alarms and found 2,980 were informational or duplicates.
Weeks 2-3 · Journey canariesBuilt upload, search and checkout canaries with synthetic-order flags.
Week 4 · Runbooks and routingWrote 18 runbooks including the manual-verification fallback trigger.
Weeks 5-6 · Shadow runNOC ran alongside the in-house team before taking primary ownership.
04

Measured results

Time to detect upload pipeline failure
5-8 hours (next shift)→Under 2 minutes
Monthly alarms
3,100→260
Actionable alarm ratio
4%→68%
Orders missing dispatch slot due to monitoring gaps (per quarter)
About 1,900→Under 60

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
05

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.

06

Return on investment

ROI indicator

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.

Illustrative scenario: a composite based on typical NTSPL engagement patterns for this industry and service. It does not describe a named customer. The figures are indicative, and actual results depend on the workload, its scale and the commercial terms.