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.
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
- Served Server-Sent Events directly from the identity provider, replacing client polling and the 4-component relay.
- 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.
- 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.