Skip to main content

DFE architecture

DFE takes events from your agents, products and APIs, carries them over Kafka, and lands them in ClickHouse, where you search them in the DFE console. This page is the map of the whole suite, and dfe-infra is the repo that deploys it onto Kubernetes.

Figure 1. L2 Services -- DFE suite. The transforms and the direct gRPC path are optional. Up: top of the DFE docs. Down: L4 Detail -- DFE suite control path, L3 Components -- Argo CD, and each repo's architecture page in Components.

The control path​

Nothing reaches the cluster except through git: the console's changes go through dfe-engine to the deploy repo, and Argo CD applies what is committed.

Figure 2. L4 Detail -- DFE suite control path. Up: L2 Services -- DFE suite.

How data flows​

  1. Agents and products post to dfe-receiver over HTTP or HTTPS in the protocol they already speak: Splunk HEC, Elastic bulk, OTLP, syslog and more. dfe-fetcher pulls from cloud and SaaS APIs, databases and files. Both write each source to a *_land topic of its own.
  2. A source that needs grok or custom logic gets a transform. It reads *_land and writes *_load. Most sources need none.
  3. dfe-loader inserts each topic's records into ClickHouse tables. Every field lands, mapped or not. dfe-archiver writes the landing topics to compressed files in object storage, so a replay never depends on Kafka retention.
  4. The DFE console queries ClickHouse. Every change you make there, a source, a rule or a user, goes through dfe-engine.
  5. dfe-engine commits each change to the deploy repo, and Argo CD applies it. dfe-engine also creates every ClickHouse table and Kafka topic when it starts.

On the slim tier there is no Kafka, and each stage sends to the next over gRPC. A per-source transform needs Kafka, so slim runs just the transforms a deployment ships.

Components​

PartRoleIts page
dfe-receiverTakes what senders post, in their protocol, and hands on JSONdfe-receiver
dfe-fetcherPulls from APIs, databases, files and containers on a scheduledfe-fetcher
Source topicOne *_land topic per source, created by dfe-engineKafka providers
TransformsOptional per-source parsing: VRL, Vector, or compiled Elastic ingest pipelinesvrl, vector, elastic
Transformed topicThe *_load topic a transform writes and the loader reads insteadKafka providers
dfe-loaderInserts records into ClickHouse without a mapping firstdfe-loader
dfe-archiverWrites streams to compressed files in a local path or object storedfe-archiver
ClickHouseEvery table you search, plus the stack's own logs and metricsClickHouse
Object storageThe archive, one compressed file per topic and org per rollArchiving
DFE consoleSearch, dashboards, sources, rules and admindfe-ui
dfe-engineThe config API, schema and topic owner, and the token issuer every DFE service trustsdfe-engine
Deploy repoOne git repo per environment: pins, values, backing-service settings and configState, storage and repositories
Argo CDApplies dfe-infra's charts and the deploy repo to the clusterArgo CD

External dependencies​

Every backend is a config choice, not a code change. We never fork a chart to swap one, and a part just one provider can supply is a bug. A dependency goes in this table before it merges.

BackendSwitchChoices
Clusterthe vanilla-cluster contract, checked by bootstrap preflightRKE2 and EKS, tested. AKS and GKE Standard through values overlays
Kafkakafka chart mode, kafka.bootstrapServersin-cluster single broker or Strimzi, Amazon MSK, Confluent Cloud, Redpanda (licence gate)
ClickHouseclickhouse.mode single, cluster or external, clickhouse.hostin-cluster, ClickHouse Cloud
Object storagethe archiver's destination settingslocal path, MinIO, S3, GCS, Azure Blob
Document storemongodb.uri in the dfe-hyperdx valuesbundled DocumentDB on CloudNativePG, any external MongoDB-protocol service
Deploy repoDFE_BUNDLED_DEPLOY_REPO and its credentialsbundled Forgejo, GitHub, GitLab
SecretsExternal Secrets ClusterSecretStoreOpenBao or Vault, AWS Secrets Manager
TLScert-manager ClusterIssuer, tls.acme.* or tls.vault.*ACME, Vault or OpenBao PKI
DNSexternal-dns provider, or the deployment's DNSCoreDNS on-premises, Route 53
Load balancerenvoyGateway.service.*MetalLB, a cloud NLB, NodePort behind a hardware balancer, external IPs
Loginthe external OIDC issuer in the deploy repo's config/any OIDC identity provider

versions.yaml holds every pin. argocd/values/common.yaml holds every other shared fact, including the hostnames: map each surface's DNS name comes from.

Deployment variants​

TierBetween stagesWhat runs
slimgRPCone replica of each core app and the archiver, a single ClickHouse node
singleone Kafka broker, no operatoradds the VRL and Elastic transforms
scaleStrimzi or Redpanda through an operator, or a managed brokertwo replicas up, KEDA to 12, a ClickHouse cluster through its operator

The cluster secret's dfe.hyperi.io/profile label picks the tier. What a tier deploys comes from apps.yaml, and sizing from the deploy repo, so a tier is a default, not a lock.

On Docker, dfe-docker runs the same images on one host as slim or single profiles over Kafka or gRPC. Compose can't scale out, so there's no scale there.

The edge VPN is optional on scale. culvert lets appliances behind carrier NAT dial in and post through the tunnel (edge-fleet VPN).

Design considerations​

Security. The stack is an OIDC relying party to your identity provider. dfe-engine issues the tokens the DFE services check, and publishes the keys they check them with. Every record carries _org_id, and an org_viewer login sees its org's rows and no others, enforced by its ClickHouse role. Every UI with a login is reachable from outside by default, and the infra UIs have a kill switch (edge exposure and auth). Secrets come from your secrets store through External Secrets, never from git.

Reliability. Kafka is the buffer between stages. Its retention covers consumer downtime plus archiver lag, and the archive covers anything older. A record no stage can handle goes to a dead-letter topic and stays 7 days (dead-letter topics). An app pod waits for dfe-engine's /readyz before it starts, so nothing writes to a table that isn't there yet.

Operations. What runs is what's in git. A change made live outside it is reverted by the next sync. Every component sends its logs and metrics over OpenTelemetry into ClickHouse, so the console shows the stack's health before your first event lands (observability).

Performance. The receiver, fetcher and loader handle nearly every event, so they're purpose-built Rust with profile-guided builds. A general transform engine runs where a source needs one, and nowhere else (design principles). KEDA scales each app on its pressure signal (autoscaling).

Why it's built this way​

dfe-infra deploys, dfe-engine configures. The engine never installs a backing service or writes an Argo Application, and dfe-infra never reads or writes engine config. Each concern has one writer, so a deploy and a config change can't fight over the same object.

dfe-engine alone owns the schema and topics. dfe-schemas declares every ClickHouse object and Kafka topic, and the engine applies them at startup on every tier and broker. An app can then wait on one readiness check instead of racing a migration job. scripts/tests/test_engine_only_schema_control.py fails the build if DDL or a topic-creation step turns up anywhere in this repo.

Config lives in git, not a database. A system definition gets review, rollback and an audit trail for free. Per-user state, such as saved searches, is the one thing kept in a database.

Kafka between stages, except on slim. A broker lets each stage fail, restart or scale alone, and gives the archiver a separate read of every topic. slim drops it to fit the core path on a small footprint.

No MongoDB. Its SSPL licence rules it out of the product, test scaffolds included. The console's search metadata lives in DocumentDB, which speaks the same protocol.

Diagram map​

What's next​