↩ Back to CV

Technical case study

WWKS2 integration with automated medication storage

Asynchronous WWKS2 service connecting medication-management and blister-production software with BD Rowa storage through TCP, XML, and resilient processing.

Context

Software used by pharmacies and blister centers must coordinate goods receipt, storage and retrieval, dispensing or production supply, returns, stock control, and operational tasks with automated storage systems. The integration is part of daily operations, so connection failures and delayed responses cannot be treated as exceptional edge cases.

The warehouse interface used WWKS2 messages over a persistent TCP connection. Several requests could be in flight while responses arrived asynchronously, which made reliable message correlation and controlled buffering essential.

Engineering approach

I built an asynchronous PHP service that separates medication and production workflows from the device connection. It sends and receives XML messages, correlates responses with their originating requests, and maintains explicit queues instead of relying on synchronous request-response assumptions.

Buffering and backpressure prevent producers from overwhelming the connection. Retry rules and connection recovery handle transient failures while keeping the state of individual operations observable.

Reliability and operations

The integration includes structured logging for message flow and failure analysis. Unit and integration tests use fixtures and mocked external behavior so that correlation, retries, and recovery paths can be exercised without requiring a physical warehouse system.

The service runs as a Linux-managed process with systemd, making startup, restart behavior, logs, and production troubleshooting part of the implementation rather than an afterthought.

Result

The service provides a durable boundary between business workflows and warehouse automation. Applications used by pharmacies and blister centers can initiate operational actions without embedding device-connection complexity throughout the application code.

Technologies and concepts

  • PHP
  • ReactPHP
  • WWKS2
  • BD Rowa
  • TCP/IP
  • XML
  • Asynchronous programming
  • Message correlation
  • Backpressure
  • Linux
  • systemd
  • PHPUnit