Scrivio Interview library
LeadershipPrincipal6 min read · updated 12 November 2026

Your product's real-time features were built over the years on three different technologies (STOMP over WebSocket, SSE and a third-party push service). How would you decide whether to consolidate, and what are the long-term risks of each option?

Three real-time technologies multiply the operational knowledge, client libraries and security reviews we carry, so consolidation is usually worth considering, but each option has a long-term cost: one internal approach is cheaper to run yet carries migration risk for every client app, and a third-party push service lowers operations but adds vendor pricing, data residency questions and an exit that means changing every client. I would choose the simplest technology that covers most cases, often SSE plus mobile push, keep WebSocket only where traffic is truly bidirectional, and plan the migration around client release cycles, especially slow-updating mobile apps.

Why this question is asked

Products accumulate technology the way houses accumulate furniture: each piece made sense when it arrived. After several years, the result can be a STOMP chat, an SSE notification feed and a vendor's push SDK in every app, each with its own on-call knowledge and failure modes. Interviewers ask this leadership question to see how we decide, not just what we prefer: what evidence we gather, how we weigh migration risk against running cost, and how we avoid a migration that never finishes. In this answer, we will measure the cost of the current situation, lay out the options with their long-term risks, walk through a decision for an example product, and plan a migration that respects client release cycles.

1Understanding What Three Technologies Really Cost

The cost of several technologies is mostly invisible in the infrastructure bill. It shows up as knowledge: on-call engineers must understand STOMP brokers, SSE through proxies and the vendor's dashboard. It shows up in clients: web, iOS and Android each carry three libraries, three reconnection strategies and three sets of bugs. And it shows up in security and compliance: three things to pen test, three places where tokens are handled, three data flows to document for privacy reviews.

So the first step is to make that cost visible. For each technology we list the features using it, the traffic, the client versions that depend on it, incidents in the last year, the people who can support it, and the direct cost, including the vendor's invoice. In an example product, we might find that STOMP serves only the chat feature for 5% of users, SSE serves notifications and live status for everyone on the web, and the vendor delivers mobile push plus an in-app real-time channel for which it charges per monthly active user.

2The Options and Their Long-Term Risks

There are broadly three paths, and doing nothing is one of them. Each has a different risk profile over five years.

Options for the real-time estate
OptionBenefitLong-term risk
Keep all threeno migration workpermanent triple cost, knowledge erodes
Consolidate on our own stackone stack to run, full controlmigration of every client, we own scaling
Consolidate on the vendorleast operations for uspricing changes, data residency, costly exit
Simplest fit: SSE + OS push, WebSocket where neededmost cases covered simplytwo stacks remain, needs clear rules

3Weighing the Vendor Option Honestly

A third-party push service is attractive because someone else handles scale, mobile push credentials and global delivery. But we should look at the long term. Pricing is usually per active user or per message, and it can change at renewal when we have little leverage, so the cost grows with our success. Data residency is a real question: if messages contain personal data and the vendor processes them outside the regions our customers are promised, legal and enterprise customers will raise it. And the exit is expensive, because the vendor's SDK is inside every client; leaving means shipping new versions of every app and waiting for users to update.

None of this rules the vendor out, especially for mobile push where it often wraps APNs and FCM well. It means we treat the vendor as a dependency with an exit plan: keep message content minimal, wrap the SDK in a thin client-side module so it can be replaced, and know what an exit would take.

4Making the Decision

A senior person decides by matching technology to the shape of the traffic, not to taste. Most real-time features, notifications, status updates, live dashboards, are server-to-client. SSE covers those with plain HTTP, built-in reconnection and the least operational surface. Mobile apps in the background can only be reached by OS push, so we need that regardless. Truly bidirectional features, like chat with typing indicators, are where WebSocket earns its place. So in the example, the decision is: SSE for all server push to web and foreground apps, OS push through one service for background mobile, and WebSocket kept for chat only, with a rule that new WebSocket use needs a design review.

We write the decision down with its reasons and the evidence, and we say what would change it, for example "if more than three features need bidirectional messaging, revisit WebSocket as the default". That keeps the decision from being re-argued every quarter, and makes it easy to revisit when the facts really change.

Step throughHow the decision is made
  1. Inventory features, clients, cost, incidentsmake the hidden cost visible
  2. Group features by traffic shapeserver push, bidirectional, background mobile
  3. Does one simple option cover most?
    YesMake it the defaultNoKeep a small set with rules
  4. Price the vendor exit and residencybefore deciding to keep or adopt it
  5. Plan migration by client release cycleweb first, mobile by version share
  6. Write the decision and its triggerswhat would make us revisit it

6 steps in order. Play them, or step through them one at a time.

5Planning the Migration Around Client Release Cycles

The server side of a migration can move fast; clients set the real pace. A web client updates the moment we deploy, so the web can move in weeks. Mobile apps are different: some users update weeks or months late, some never, so an app version shipped today must be supported for a long time. That means the server supports old and new channels side by side, and we only switch off the old one when the share of users on old versions falls below an agreed threshold, for example 2%, or when a minimum supported version forces an update.

In practice we ship the new channel in the apps behind a feature flag, turn it on gradually while watching delivery and battery metrics, and keep a kill switch. We set an end date for the old technology from the version data, not from hope, and staff the work properly; a migration done in spare time can easily leave us with four technologies instead of three.

6Follow-up questions

How do you convince teams that consolidation is worth the migration work?

With the numbers from the inventory: incidents, on-call load, duplicated client code, security review effort and the vendor invoice, compared with an honest estimate of the migration. If consolidation does not pay back within two or three years, I would say so and instead freeze new use of the weaker technology, which costs nothing.

What if the vendor offers a big discount to stay?

A discount changes the cost line but not the residency question or the exit cost, and discounts tend to expire at the next renewal. I would take it into account, negotiate terms that protect us, such as data processing commitments and notice periods, and still keep the client SDK wrapped so we can leave.

Why not consolidate everything on WebSocket, since it can do everything?

Because being able to do everything is not the same as being the cheapest way to do most things. WebSocket brings stateful connections, custom reconnection and harder proxy behaviour to features that only need server push. And it still cannot reach backgrounded mobile apps, so push stays anyway.

7Conclusion

In this answer, we saw that several real-time technologies multiply knowledge, client libraries and security reviews, and that each consolidation path has a long-term cost: our own stack means migrating every client, and a vendor means pricing changes, data residency questions and an exit through every app. A sound decision inventories the real cost, matches technology to traffic shape, often choosing SSE plus mobile push with WebSocket only where traffic is bidirectional, writes down the reasons and triggers, and plans the migration around client release cycles, especially slow mobile updates.

What to say in the interviewAbout 90 seconds aloud

Open with

I would start by making the current cost visible, because most of it is hidden: on-call knowledge for three stacks, three client libraries in every app, three security reviews, plus the vendor's bill.

Then, if they want more

For each technology I would list features, traffic, client versions, incidents and cost. Then I would weigh the options over five years. Keeping all three costs nothing now and a lot forever. Consolidating on our own stack is cheapest to run, but it means migrating every client, and mobile clients take months.

Consolidating on the vendor reduces operations, but pricing can change at renewal, data residency becomes a question if messages contain personal data, and leaving later means changing every client.

My usual decision is to match technology to the shape of traffic: most features are server-to-client, so SSE becomes the default for web and foreground apps, OS push covers background mobile, and WebSocket stays only for genuinely bidirectional features like chat, with a design review for new uses.

If we keep a vendor, I keep message content minimal and wrap its SDK so we can exit. For the migration, the web moves quickly, but for mobile the server supports old and new channels side by side until old app versions fall below an agreed share, with feature flags and a kill switch.

And I would write down the decision with its reasons and what would make us revisit it.

About this answer

Last updated
12 November 2026
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "Your product's real-time features were built over the years on three different...": https://scrivio-interview-library.netlify.app/spring-boot/web-other/ee83ef438c/