Skip to content
All work projects

Case study 03 · Work · Production

Fault-tolerant event streaming that delivers clinical alerts to web and mobile within 3 seconds worst case, with ~40% fewer failed or stuck message deliveries.

Context

The platform's 15+ services talk over Kafka, and clinical alerts have to reach web and mobile clients quickly and reliably.

Problem

Deliveries could fail or get stuck in queues, and releases couldn't be allowed to interrupt the alert path.

Approach

How it works, step by step

Scroll through the steps; the diagram follows. Hover or tap a stage for details.

gRPCEvent sourcedevicesKafka topics15+ servicesRules Engineconsumer grpNotifier.NET 8API GatewayroutingRetry + diagstuck queuesSignalRpush ≤ 3 sWebReact/ReduxMobile appalerts
  1. Event published: A device or system event is published to a Kafka topic.
  2. Rules Engine evaluates: The Rules Engine consumes the event and decides what alert it means.
  3. Retry, don't drop: A failed consumer retries, and queue diagnostics flag stuck messages — ~40% fewer failed or stuck deliveries.
  4. gRPC hand-off: The Rules Engine hands off to the Notifier over gRPC between .NET 8 services.
  5. Pushed in ≤ 3 s: SignalR pushes the alert to the web dashboard and mobile app within 3 seconds, worst case.
  6. Live during releases: Zero-downtime service updates keep the pipeline running while new versions roll out.
  • Event source (devices): Device and system events.
  • Kafka topics (15+ services): The platform's 15+ services communicate over Kafka.
  • Rules Engine (consumer grp): One of my services. Evaluates each event.
  • Notifier (.NET 8): Clinical Notifications, one of my services.
  • API Gateway (routing): One of my services.
  • Retry + diag (stuck queues): Failed consumers retry; queue diagnostics flag stuck messages.
  • SignalR (push ≤ 3 s): Real-time push to connected clients.
  • Web (React/Redux): React / Redux / TypeScript dashboard.
01 / 06

Event published

A device or system event is published to a Kafka topic.

Impact

What changed

  • fewer failed / stuck deliveries

  • alert delivery

    Worst case, not average

  • downtime during updates

    Service updates keep the pipeline live

Hard partsWhat made this tricky, and how I handled it
  • Failures without losing alerts

    Failed consumers retry, and queue diagnostics flag stuck messages.

  • A hard latency ceiling

    3 seconds is the maximum delay to web and mobile clients, not an average.

  • Releasing without going dark

    Zero-downtime service updates keep the pipeline live during releases.

Stack

  • Kafka
  • .NET 8 / C#
  • gRPC
  • SignalR
  • React / Redux / TypeScript
  • Prometheus

My role

Main engineer on my 4 services. The platform's 15+ services communicate over Kafka.

Details generalised for privacy; no proprietary code or UI shown.

Next case studyOn-Prem Installer & Orchestration Platform