Home · Designing an AI Gateway for Enterprises · Part 7 of 17

A gateway that keeps working when its control room is offline

Two modes, one product, one rule: never let the manager take the system down.

architectureresilience

Every gateway needs settings: who gets what, what's allowed, what things cost. The question is where those settings live.

Keep them with the gateway and the system is simple and robust, but every change is a chore. Keep them in the portal and changes become a few clicks, but you've added one more thing that can be down. I decided not to choose. I built both ways of working into the same product.

Two modes of one product

It's the same gateway, with the same behaviour and the same records. Connected mode adds richness, not a different personality.

Standalone Gateway Built-in settings Connected Gateway Fallback settings Portalcontrol roomif reachable same product, same behaviour
The portal makes the gateway smarter when it's there. When it isn't, the gateway carries on.

The rule

The portal may make the gateway smarter. It must never make the gateway fragile.

The control room runs on Azure Container Apps with a PostgreSQL database behind it. They're ordinary building blocks, which means they have ordinary bad afternoons. If the portal is unreachable, the gateway falls back to its own settings, keeps serving, and says so in its own records. Nobody gets a failed request because a settings screen was unwell.

I keep returning to that sentence because it's easy to agree with and hard to honour. Every convenient feature, every shared setting, every clever dependency is a small vote for fragility, and the rule is how I vote against it.

Why this matters more than it sounds

The customers I care about live in three situations: a lab with no portal at all, a production system with one, and the middle-of-the-night outage where the portal is precisely the thing that's broken. A product that only works in the second situation is a demo.

It also changes the conversation with a cautious buyer. "Can it run without the portal?" is a fair question from anyone who has been burned by a management layer. The honest answer is yes, and the honest follow-up is that I test it.

What "connected" adds

Connected mode is where the product shows its full shape. Settings are managed in one place instead of being edited on the gateway. Budgets and access are explained as well as enforced. Reports and health appear alongside the traffic. None of it is required for a request to succeed, which is precisely the point: richness is something you add to a working door, not something the door needs in order to open.

Three lessons

One product, still

This is the clearest place to see why I won't describe the gateway and the portal as two products. They're two halves with a deliberate rule about who depends on whom. The control room depends on the door, because without traffic it has nothing to tell you. The door never depends on the control room, because the door must open at three in the morning whether or not anyone is watching.

Put the control room beside the request path, never in the middle of it.

Was this useful?

Want to discuss this? Connect with me on LinkedIn.

Next: why your logs aren't answers.