TraceLink, 2023 to 2026
Compliance event processing for the pharmaceutical supply chain
TraceLink connects pharmaceutical manufacturers, distributors and pharmacies, and helps them report to regulators. As a Software Engineer II I built the APIs and event processing behind country compliance reporting, where a lost or duplicated message is a compliance problem rather than just a bug.
- Role
- Software Engineer II
- Domain
- Pharma supply chain compliance
- Scale
- 800K+ reports a week
- Stack
- Java, Spring, Kafka, GraphQL, Node.js, Scala
Context
Pharmaceutical companies must report transactions to regulators in each country, on time, exactly once, and at high volume. The systems I worked on take those transactions in, enrich and validate them, and submit reports to regulatory and order management systems downstream.
Faster processing with partition grouping
Messages varied widely in size: about 75% small, 20% medium and 5% large. Processed together, large messages held up the small ones behind them.
I introduced partition grouping in Java and JavaScript, so messages of similar size are processed together and large ones no longer block the rest. Processing latency fell by 33% and throughput rose from 18,000 to 24,000 events an hour on the same infrastructure.
Compliance reporting APIs
I designed and built RESTful Java APIs for several country compliance apps. Together they submit more than 800,000 pharmaceutical transaction reports a week.
I also contributed to the design of event-driven features connected through GraphQL APIs and Kafka, with idempotent message handling so retries never create duplicate filings.
Data quality
Transactions failed when they referenced product codes or trading partners the system didn’t recognise. I built automated master data and partner lookup services in Spring that fill in validated data first. Unknown-product errors fell by about 20%.
I also delivered void transaction handling in Scala and JavaScript, processing more than 10,000 voids a month under US supply chain rules (DSCSA).
Reliability and audit
I fixed critical data-loss bugs affecting more than 1.5 million transactions a month, then added over 15 custom metrics with Grafana dashboards so similar problems show up before customers notice.
For audits, I built a bulk export with Node.js, GraphQL and Handlebars templates rendered to PDF. Customers now generate more than 12,000 compliance PDFs a week.
Results
| Measure | Result |
|---|---|
| Weekly regulatory reports through my APIs | 800,000+ |
| Message processing latency | 33% lower |
| Throughput | 18K → 24K events an hour |
| Unknown-product transaction errors | About 20% fewer |
| Compliance PDFs generated | 12,000+ a week |
| Void transactions processed | 10,000+ a month |
| Transactions protected from data loss | 1.5M+ a month |