Selected work

06 / Real-time auth

SSE and Infinispan: real-time auth events without a broker

Replaced polling and a Socket.io relay with Server-Sent Events from the identity provider, cutting 4 components to 2.

DeliveredKeycloakSSEInfinispanJava

01The problem

A consumer banking identity platform learned about authentication events by polling every second through a Socket.io relay. That meant extra moving parts and delayed delivery.

02What I did

  1. Served Server-Sent Events directly from the identity provider, replacing client polling and the 4-component relay.
  2. Solved the cluster problem: an event raised on any identity-provider pod must reach the pod that holds the user's SSE connection. I owned the architecture, using Infinispan as a distributed publish/subscribe layer.
  3. Worked on omnichannel account activation: push notification, activation code and postal letter.

03Result

  • Components cut from 4 to 2 and authentication event delivery made near-instant.
  • Won Groot of the Quarter, Q3 2024, at Grootan Technologies.