Why We Built Hybrid Deployment: Data Observability Without Self-Hosting

Regulated teams want data observability, but data residency rules keep row-level data in their own cloud. Here’s why we built hybrid deployment, splitting Telmai into a SaaS control plane and a customer-side data plane, how we secure the agent between them, and what we learned building it.

Green graphic titled 'Why We Built Hybrid Deployment: Data Observability Without Self-Hosting', with an icon of a database inside a dashed boundary and an arrow pointing outward, showing data stays in the customer's cloud.

Prasad Nair

November 30, 2026

Regulated teams want data observability, but data residency rules keep row-level data in their own cloud. Here’s why we built hybrid deployment, splitting Telmai into a control plane and a customer-side data plane, how we secure the agent between them, and what we learned building it.

The Question That Kept Ending the Conversation

Anyone who sells data observability to regulated companies knows this moment. The demo goes well and the data team is excited. Then the security team says: “Your product is great. It just can’t read our data.”

We heard that line from banks, healthcare companies and large enterprises with strict data residency rules. The data team wanted us, but the CISO’s checklist had the final say. Deals kept stalling on one question in the vendor security questionnaire: does customer data leave our cloud?

For a SaaS product whose whole job is to scan data, the honest answer was yes. The only way to say no was for the customer to self-host our entire platform. That was our first answer. Hybrid deployment is our second, and it’s a better one. We built it after seeing what self-hosting cost our customers.

Observability Has to Touch the Data. That’s the Problem.

Most observability tools work from telemetry, meaning logs, metrics and traces. A data quality platform has to work from the data itself. To profile a column, detect distribution drift or evaluate a SQL rule, something has to read every row. In our SaaS model, that work happens in a Spark job in our cloud, which reads straight from the customer’s Snowflake, BigQuery, Databricks, Microsoft Fabric or Amazon S3.

That model is simple and fast to adopt. It also asks the customer to accept two things a regulated team often can’t:

  • Row-level data is processed outside their environment – Even if nothing is persisted, compliance teams treat processing as exposure. It raises data residency and sub-processor questions.
  • Their network has to accept inbound connections – Allow-listing a vendor’s IP ranges for inbound access to a production data platform is a hard conversation.

The frustrating part: the customer never needed their raw data in our cloud. They needed the profiling stats, data quality scores and drift alerts. The rows were simply what it cost to compute them.

Our First Answer Asked Customers to Run It All

When we started, full deployment was the only option for customers whose data could not leave their environment. If the data couldn’t come to our cloud, the whole platform went into the customer’s cloud account instead. But over time, we learned what operating the platform cost them.

Full deployment – runs the entire platform in the customer’s environment. This includes services, database, search cluster, Spark and UI. Both the control plane and the data plane sit inside their perimeter, and nothing connects back to our cloud. For a few customers, it is still the right fit.

The Hidden Costs of Self-Hosting

  • The pain starts before the first scan – Installing a full deployment often takes days, if not weeks. The customer has to provision infrastructure, open firewall ports, get security sign-off and line up people from several teams at the same time. Each step waits in a different approval queue, while the customer is already paying for a product they can’t use yet.
  • The ongoing cost is maintenance, and it lands on both sides – Every full install is its own release train. Upgrades wait for the customer’s change-management window, version skew builds up across customers, and a fix we ship today reaches them weeks, if not months, later.
  • Then there’s the bill – A full deployment means the customer runs an entire Kubernetes cluster around the clock. The customer pays that fixed cost whether they scan once a day or once a week, before a single row is profiled.
  • And the people to run it – Keeping it healthy in production takes a platform or DevOps team that knows Kubernetes, Helm, the database and Elasticsearch. Someone has to plan capacity, patch nodes, renew certificates, back up the database, roll out each release and carry the pager when a pod crash-loops at 2 a.m. For many data teams, that is a headcount request they never planned for, to run a tool they bought to save time.
  • Debugging is the hardest part – When a scan fails in a full deployment, our engineers have limited access to the environment it failed in. Diagnosis runs through screen shares, exported log bundles and back-and-forth with the customer’s team, so mean time to resolution stretches from an hour in SaaS to days.

Our Second Answer Keeps the Data Home and Hands Us the Rest

Customers raised those pain points again and again, and they are why we built hybrid. Hybrid keeps the one guarantee that matters for data residency (row-level data stays in the customer’s cloud) while removing most of the operational weight of full deployment.

  • Operations stay with us – Every service that never touches a row is part of the control plane, which we upgrade continuously and can debug directly. The customer side is small, and we monitor its connectivity and health from ours.
  • The cost moves too – The Kubernetes cluster that runs the platform lives in our cloud, on our bill. The customer pays for just two things, both in their own cloud account: one small agent (on a single VM, or as a single pod on a small Kubernetes cluster) and the Spark compute their scans use.
  • Installation and DevOps shrink – There are no inbound firewall rules to open and no platform to stand up. The customer installs one agent, keeps its host patched and upgrades it when we ship a new version.

The Design Splits the Brain From the Hands

Hybrid started as a hackathon brief with an idea to keep the control plane in our cloud and move only the data plane into the customer’s. Scheduling, the UI, alert policies and scan history stay in SaaS. The Spark jobs that read rows run on the customer’s own Google Cloud Dataproc, Databricks, Amazon EMR or Microsoft Fabric.

How the Hybrid Agent Protects Data Residency

Between the two sits one small piece of software we ask the customer to run: the hybrid agent, one per tenant, on a VM or in Kubernetes.

  • Outbound only – The agent dials out to us over a single TLS WebSocket, authenticated with its own API key. There is no inbound port to open, and every frame is signed in both directions.
  • Often, no stored credential at all – Where the cloud supports workload identity, the agent reads data with an identity the customer already controls: a service account for GCS and BigQuery, an IAM role for S3, a managed identity for Microsoft Fabric and Azure SQL. There is no secret to store, rotate or leak, and access is granted and revoked in their own IAM. Credentials for username-and-password sources stay encrypted on our side, as in SaaS. At scan time, we envelope-encrypt a copy to the agent’s public key. Only the agent’s private key, which never leaves the customer’s cloud, can decrypt it, and only for that one tenant and data source.
  • Spark talks to the agent, not to us – Jobs report status and results to the agent over the customer’s private network. The agent submits the next step of a scan itself, so a multi-step scan needs no round trip to our cloud.
  • Answers come back, rows don’t – Only aggregated metrics return: profiles, scores and drift. For hybrid tenants, the features that store sample row values are disabled.

How Data Moves in a Hybrid Scan

Telmai hybrid deployment architecture: the control plane runs in Telmai's cloud, and the hybrid agent and Spark run in the customer's cloud. Only metrics cross the network boundary.
For data residency, hybrid deployment keeps rows in the customer’s cloud. Only metrics cross back to Telmai’s control plane.

The agent is the only piece the customer runs. It dials out, so nothing ever dials in.

Once the metrics arrive, a hybrid scan is identical to a SaaS scan: same dashboards, same alerts, same APIs. The customer gets the whole product.

How We Monitor the Agent Fleet

  • We watch the fleet, so the customer doesn’t have to – Each agent’s heartbeat tells us whether it is online, when we last heard from it, whether its message queue is backing up and whether its clock has drifted. We get alerted when an agent goes down or starts to stall, often before the customer notices anything.
  • We track version drift too – We see which version every agent runs and flag the ones falling behind. The Spark jobs are checked against a supported version window: a tenant that is behind gets a warning, and one below the window cannot scan until it upgrades. No customer ends up silently running code we no longer support.

How We Secure the Agent

The agent is our code running inside the customer’s network, which makes it part of their attack surface. So we built it on a zero-trust model: every link, to our control plane and to Spark, is assumed hostile, and each one authenticates the sender and verifies message integrity.

Security Controls at a Glance

ConcernHow the agent handles it
Who may connectOutbound TLS only, authenticated with a per-agent API key that we verify before accepting the connection.
Forged or replayed commandsEvery message is signed in both directions with per-agent keys and carries a timestamp. Both sides verify the signature before acting and reject stale messages.
Credentials in transitEach credential is envelope-encrypted with a fresh data key, wrapped with that one agent’s public key, and bound to one tenant and data source. A copy cannot be reused anywhere else.
Blast radius of a stolen keyThe agent holds separate keys for signing messages and for decrypting credentials. Compromising one does not expose the other.
Spark talking to the agentJobs sign every report with a shared secret. The agent accepts reports only from allow-listed addresses and only inside a short replay window. Anything unsigned is rejected.
Cloud storage the agent can reachThe agent works in storage the customer creates and grants it access to, under an identity the customer owns. It can reach nothing else, and the customer can narrow or revoke that access at any time.
Rotating and revokingKeys rotate with a 24-hour overlap window, so in-flight scans keep running. A suspected compromise is handled by revoking the agent outright.
Who controls accessOnly the tenant’s admins can provision, rotate or revoke an agent. With managed identity, data access is granted and revoked in the customer’s own IAM.
How the hybrid agent handles each security concern

The result is an agent a security team can reason about: one outbound connection, signed traffic both ways, and credentials only it can decrypt.

What We Learned the Hard Way

The architecture fit on a whiteboard. Making it survive real customer networks took most of the work. A few lessons we paid for:

Designing for Outages Between Two Parties

  • “Offline” is the normal case, not the edge case – In SaaS, our scheduler and our Spark jobs share a network we control. In hybrid, the agent runs on a customer machine that gets patched, rebooted and firewalled on someone else’s schedule. So we designed for outages on both sides. If the control plane becomes unreachable, the agent reconnects on its own and keeps chaining scan steps locally, buffering results in a durable queue. If the agent drops mid-scan, Spark spools its results to the customer’s own bucket, and the control plane holds the scan open for up to 12 hours until the agent returns and replays them.
  • Two parties means two opinions about when a scan is done – Early on, both sides could decide a scan was finished, and occasionally they disagreed. We fixed it with one hard rule: only the control plane ever marks a scan finished. The agent reports facts. It never declares the outcome.
  • Fail closed, never fall back – It’s tempting to quietly route a hybrid scan through the SaaS path when something looks wrong. For a customer who chose hybrid to keep data home, that silent fallback is the worst bug we could ship. A hybrid scan that can’t run on the customer’s side fails, visibly.

Running Hybrid Across Clouds

  • Clocks drift, and signed frames notice – Every message carries a timestamp. An agent on a host with clock skew has its frames rejected as stale and drops offline. The agent now logs a plain “your clock is off” warning and recovers the moment the clock is fixed, with no restart.
  • Each cloud is its own product – GCP, AWS and Azure differ in ways no abstraction hides: how a cluster gets storage access, where a JAR may live, which identity a VM runs as. Azure Databricks, for example, pushed us to Unity Catalog volumes and external locations so that no credential sits in any cluster configuration.
  • Test the outage, not the happy path – We built an automated fault-injection suite that kills the agent before and after Spark job submission, restarts our control plane mid-scan, skews clocks and partitions the network. It runs against every supported cloud. Most of the bugs it found were invisible in a demo.

If You’re Building Something Similar

A few principles we’d keep if we started over:

  1. Move compute to the data, not data to the compute. The customer already runs and governs a Spark platform. Using it beats asking them to trust ours.
  2. Make the customer-side footprint as small as possible. One agent, outbound only, no database to run. Everything that can stay SaaS stays SaaS.
  3. Give one side the final say. In a distributed system with two owners, decide up front who declares an outcome, and never let the other side guess.
  4. Be precise about what leaves. “No data leaves” is a slogan. A list of exactly which fields cross the trust boundary is what earns a security team’s trust.
  5. Design the outage first. Write down what happens when each side is unreachable for a minute, an hour and a day, then build tests that cause each one.

Where Hybrid Goes Next

The goal for the next phase is simple: running hybrid should feel as hands-off as SaaS. That means taking the remaining operational work off the customer.

Upgrades that run themselves. Today the customer upgrades the agent. We have designed automatic upgrades for both the agent and the Spark jobs it runs, so the customer side stays on the release we ship without a change ticket.

A highly available agent. In-flight scans already survive an agent restart. Next, the agent will run as an active-passive pair: a standby takes over the moment the primary goes down, so new work never waits for a host to come back.

Moving to hybrid without starting over. Existing full-deployment customers will be able to switch to hybrid when they’re ready. We’re building a migration path that carries over their assets, monitors, custom metrics, scan history and open incidents, so trends and data quality scores pick up where they left off.

The Answer We Can Give Now

The security questionnaire still asks whether customer data leaves their cloud. Now we can answer with a list of exactly what crosses the trust boundary instead of a yes. That one change is what reopened the conversations that used to stall.

Hybrid runs today on GCP with Dataproc, on AWS with Databricks or EMR, and on Azure with Databricks or Microsoft Fabric.

As a result, regulated enterprises can meet data residency requirements and run data observability on their most sensitive data, without stalling in security review or taking on a self-hosted platform. Want to see how hybrid deployment fits your security and data residency requirements? Click here to connect with our team for a personalized demo.

Want to stay ahead on best practices and product insights? Click here to subscribe to our newsletter for expert guidance on building reliable, AI-ready data pipelines.

  • On this page

See what’s possible with Telmai

Request a demo to see the full power of Telmai’s data observability tool for yourself.