When splitting Langfuse web into ingestion and UI deployments makes sense
The split makes sense when heavy SDK ingestion slows the Langfuse user interface, and the team has evidence that the two traffic types compete for the same web container. In a self-hosted Langfuse, the Langfuse Web container serves both the UI and the APIs that SDKs call to send traces. When a busy pipeline pushes many requests into those APIs, page loads and queries from people on the team can queue behind them. The Langfuse scaling guide recommends splitting langfuse-web into separate ingestion and user interface deployments under heavy ingestion. Before changing anything, confirm the cause: compare request latency and response codes for ingestion routes and UI routes during a busy period, and check whether the worker queue is the real bottleneck instead. Scaling workers on CPU load is a separate lever and may fix the problem without any routing change.
The split is a routing and sizing change, not a new product. You run the same Langfuse Web image as two deployments with different resource settings, then route SDK and OTLP traffic (the /api/public/ingestion and /api/public/otel paths) to the ingestion deployment and everything else to the UI deployment. The application code, database schema and Langfuse Worker stay the same. Plan the routing at your load balancer or ingress, because that is where the two paths are separated, and confirm the exact path list against the version you run before you write rules. Ingestion usually needs more replicas and CPU, while the UI needs enough capacity for interactive use. Those sizes should come from your own measurements, not from a generic number.
The split only matters for production-grade setups. Langfuse documents Docker Compose on a single VM as a testing option without high availability, so one VM cannot give you two independently scaled web tiers in any meaningful way. If your deployment is a single VM, fix the sizing and the worker tier first, and plan the split as part of a move to Kubernetes or another orchestrated environment. Also confirm that your Langfuse version supports this topology in your upgrade plan, since a split adds a second deployment to every future upgrade.
How ingestion and UI traffic flow through split web deployments
The diagram starts at the load balancer or ingress, which routes SDK and OTLP ingestion calls to an ingestion web deployment and browser and UI API calls to a UI web deployment. Both web deployments read and write the same PostgreSQL, ClickHouse, Redis or Valkey and S3-compatible blob storage, and hand queued events to the Langfuse Worker. Check that both deployments point at identical data store settings, and that the worker, not the web pods, does the asynchronous processing.
Ingestion and UI paths through separate web deployments, with the worker consuming queued events.
Configuration choices for each deployment
The ingestion deployment receives the write-heavy traffic, meaning trace and observation submissions from SDKs and OpenTelemetry exporters. It absorbs bursts from production applications, so its capacity follows the volume of traces your applications send, not the number of people opening the UI. The scaling guide is the place to confirm the current minimum resources before you size it.
- Request paths: Trace submissions from SDKs and the OTLP endpoint at
/api/public/otel, plus any other public ingestion API your applications call. Confirm the full path list for your version before writing routing rules. - Replica count: Start with the number of replicas your measured ingestion rate supports, and add replicas as volume grows. Review peak batch periods, not averages.
- CPU and memory: Base requests and limits on observed usage under your real batch sizes and concurrency. Treat the minimum of 2 CPU and 4 GiB for web as a floor, not a target.
- Scaling signal: Scale on request load or CPU, and watch 5xx rates and latency during spikes so that you can see when capacity runs short.
Confirm that ingestion latency stays steady while the UI is under load, and that SDK retry counts do not climb during peak periods.
The UI deployment serves the browser interface and the read-side API calls behind trace views, dashboards, scores and prompt management. Its load depends on how many people are signed in and how heavy their queries are, so its cost sits in filtered trace searches and large dashboard requests rather than in raw ingestion. Because both deployments run the same codebase, the difference between them comes from routing and sizing decisions you make.
- Request paths: Browser traffic to the web application and the API routes that read traces, scores and prompts for the interface. Confirm which routes are read-only in your version before assigning them.
- Replica count: Size replicas to concurrent users and dashboard query load. Consider more than one replica so that a rolling update does not take the UI offline, and confirm that design with your load balancer setup.
- CPU and memory: Size from observed load, measured after heavy trace filters and large dashboard queries have run, since these produce the peaks that matter for the UI.
- Scaling signal: Scale on request latency and the number of concurrent sessions, which ingestion volume does not drive.
Confirm that page load times hold while a bulk SDK load is running against the ingestion deployment.
The routing layer sits in front of both deployments and decides which requests reach which service. It is the only component that separates the two roles at the network level, so its rules must match the request paths each deployment is meant to handle. A mistake here sends ingestion to the UI pool or the reverse, and the symptoms can look like general slowness.
- Path-based rules: Send ingestion API paths to the ingestion service and all other paths to the UI service. Derive the rules from the route list for your version, and test each one.
- Shared hostname: Keep one public hostname so that sign-in callbacks and session cookies behave the same whichever deployment answers. Confirm this with your identity setup before going live.
- Timeouts and keep-alive: Align load balancer idle timeouts with the web process settings on both pools. A mismatch produces gateway errors that appear to come from either deployment.
- Health checks: Probe each deployment separately so that an unhealthy ingestion pool does not hide the health of the UI pool, or the other way around.
- Version consistency: Both deployments must run the same Langfuse version and read the same PostgreSQL, ClickHouse and blob storage settings.
Test each rule with requests that should reach the other deployment, and confirm that they land on the service you intended.
The split changes only the web containers. The worker, PostgreSQL, ClickHouse and the Redis or Valkey service keep their roles, and any of them can become the bottleneck once web is separated. The scaling guide recommends scaling worker containers on CPU load, and that guidance applies alongside the web split rather than being replaced by it.
- Worker replicas: Add workers when CPU load rises during ingestion bursts. Worker scaling is independent of web scaling, so you can change one without changing the other.
- Minimum sizes: The scaling guide lists minimum resources of 2 CPU and 4 GiB for web, worker and PostgreSQL, 1 CPU and 1.5 GiB for Redis or Valkey, and 2 CPU and 8 GiB for ClickHouse, with at least 16 GiB of ClickHouse memory for larger deployments.
- ClickHouse headroom: Splitting web does not reduce query load on ClickHouse. Ingestion writes and heavy UI queries share it, so size it for both at once.
- Queue backlog: Watch Redis or Valkey memory and the processing backlog during ingestion peaks. A backlog appears as delayed traces, not as web errors, so it is easy to miss.
Compare worker CPU, ClickHouse memory and queue backlog during a peak load test before and after the split.
Options for routing, scaling and resources per deployment
This table compares a single web deployment with two split deployments, one routed by path and one routed by header or host. Read each row as a decision question, and use the load balancer and operations columns to judge the extra work each option adds before you choose.
| Option | When it fits | What it changes for the load balancer | What it adds to operations |
|---|---|---|---|
| Single langfuse-web deployment | Moderate trace volume where UI and SDK ingestion share capacity without visible UI slowdowns, and a small team that wants one set of settings | Nothing new. All UI, API and ingestion traffic goes to one target group or service | Lowest effort. Scaling web scales ingestion and UI together, so heavy ingestion can slow the UI |
| Split deployments with path-based routing | Ingestion traffic follows a predictable URL prefix that SDKs and OTLP exporters call, and you want UI requests isolated from it | Adds a path rule that sends ingestion endpoints to the ingestion target and everything else to the UI target. Confirm the exact paths against the current scaling guide for your version | Two deployments with separate resource requests, replica counts and probes. Routing rules must be kept in step with each Langfuse upgrade |
| Split deployments with header or host-based routing | Ingestion uses a dedicated hostname or a client-set header, for example when ingestion traffic enters through a separate internal endpoint | Adds host or header rules at the load balancer or ingress. Clients must send the correct host or header, which changes SDK and collector configuration | Same two-deployment work as path routing, plus DNS or certificate changes for the extra hostname and more places where a misrouted request can fail silently |
| Replica and CPU scaling | Ingestion load grows faster than UI load, or the reverse | No change to the rule itself. Each target can have its own health check and timeouts | Autoscaling and resource limits are set per deployment, so you tune and monitor two sets of numbers |
| Keep-alive and idle timeout alignment | Any split, since each target has its own connection behavior | Load balancer idle timeout must stay consistent with what each Langfuse web deployment expects | Timeout mismatches show up as intermittent 502 or 504 errors, which are harder to trace when two deployments serve traffic |
| Memory limits per deployment | Ingestion and UI pods have different memory profiles under load | None directly | Node.js heap settings should be matched to each deployment's container memory limit separately |
| Rollback and upgrade testing | Teams that already run staged upgrades for Langfuse | Routing config must be included in each rollout and rollback plan | Both deployments must run the same Langfuse version, so upgrades touch two workloads at once |
How to set up the split step by step
This sequence moves a single langfuse-web deployment into two web deployments, one for trace ingestion and one for the user interface, with routing, resources and checks confirmed at each stage. The result is an ingestion path that can grow without slowing the UI for people reviewing traces.
Confirm version and shared data store capacity
Before changing anything, confirm the Langfuse version you run and that it supports the split you plan to make. Check the current version against the releases page, then review the scaling guide's minimums for web, worker, PostgreSQL, Redis or Valkey and ClickHouse. Confirm that ClickHouse, PostgreSQL and Redis or Valkey have headroom for the extra connections and load that a second web deployment adds. The step is done when you have a written record of the version, the minimums you checked and the current resource use of each data store.
Deploy two web deployments from one image
Create two web deployments that use the same container image and the same environment configuration, so both serve identical application code and connect to the same PostgreSQL, ClickHouse, Redis or Valkey and blob storage. Give each deployment its own name, such as one for ingestion and one for the UI, and differ only in the settings that govern their role. Confirm that the image tag matches on both deployments and that the environment variables are identical apart from role-specific values. The step is done when both deployments start and report ready on their health endpoints.
Define routing for ingestion and UI paths
Configure your ingress or load balancer so that SDK and OpenTelemetry trace requests, including those sent to the /api/public/otel endpoint, go to the ingestion deployment, and browser traffic for the UI and its APIs goes to the UI deployment. Write the path rules down, because a missed path can send ingestion to the UI pool and undo the separation. Check your timeout and keep-alive settings on both routes, since a mismatch there can cause gateway errors under load. The step is done when a request to each path reaches the intended deployment in your access logs.
Set resource limits and replica counts
Set CPU and memory requests and limits separately for each deployment, starting from the minimums in the scaling guide and sizing the ingestion deployment for the volume of traces you expect. Set replica counts so that ingestion has enough capacity for peak sending and the UI keeps a small, steady pool. Align the Node.js memory settings with the container memory limit so the orchestrator handles pressure predictably. The step is done when both deployments run within their limits under a short load test and no pod restarts with out-of-memory errors appear.
Confirm worker scaling still follows the workload
Splitting web does not replace the worker, so review how the worker deployment is scaled. The scaling guide recommends scaling worker containers on CPU load, and the worker must keep pace with what ingestion accepts. Confirm that the worker's resources and replica count still meet the minimums and that the worker connects to the same data stores as both web deployments. The step is done when a sustained test ingestion produces processed events in the UI without a growing backlog.
Verify health checks on both deployments
Point readiness and liveness probes, and any load balancer health checks, at the health endpoints of each deployment, and make sure a failing check on one deployment does not remove the other from service. Test the behavior by stopping one ingestion pod and confirming that traffic continues on the remaining pods. Review how your probes handle short database outages so that brief interruptions do not trigger restarts. The step is done when a deliberate pod stop shows the expected failover and the probes report the correct state.
Send a test trace and confirm it reaches the UI
Send a test trace through an SDK or an OpenTelemetry exporter using the public ingestion endpoint, then confirm in the logs that it reached the ingestion deployment. Open the trace in the UI and check that it appears, that its timestamp and content are correct and that the UI responds normally while ingestion is running. If the trace does not appear, check the worker and blob storage before changing routing. The step is done when one test trace is visible in the UI and the access logs show the correct deployment for each path.
Security and operational considerations for split web deployments
Splitting langfuse-web into two deployments adds a second entry point, a second set of resources and a second place where logs and metrics originate. The cards below cover what must stay identical across both deployments, where exposure and access controls differ, and how to keep operations attributable to the right deployment.
Share secrets and encryption keys
Both the ingestion and UI deployments must read the same application secrets and encryption key configuration, including the salt and key values that protect stored data and sessions. If the two deployments drift apart, a user signed in through one route may be rejected by the other, and data written by one may not decrypt on the other. Check that both deployments source these values from the same secret store entries, and confirm that rotation procedures update both at the same change window. Keep the worker on the same values as well.
Langfuse scaling guideTreat the ingestion path as public
SDKs and OpenTelemetry exporters send traces to the API routes on the ingestion deployment, often from application servers, CI jobs and other networks outside your office perimeter. That path needs rate limits, request size limits, TLS termination and monitoring for abusive traffic. The UI path serves human users and typically sits behind SSO and tighter access rules. Decide which hostnames and paths each deployment answers, and avoid exposing administrative API routes on the ingestion host.
Review access controls per route
Apply access rules to each route rather than assuming one policy covers both deployments. For the UI host, confirm SSO enforcement, the sign-in settings your organization has chosen and any network restriction you require for internal users. For the ingestion host, confirm which network sources can send traces and whether API keys are the only check. Document the allowed origins, source networks and owners for each route, and repeat the review after each change to ingress or load balancer rules.
Attribute logs and metrics to each deployment
Once traffic is split, an error or latency spike must be traceable to the deployment that produced it. Label container logs, metrics and traces with a deployment or role name for ingestion, UI and worker, so that a 5xx on the UI can be separated from a backlog in ingestion. Without this, dashboards show one blended web service and alerts fire without pointing to the right owner. Set alert thresholds per deployment and review them during the first weeks after the split.
Keep ingress and timeout settings aligned
The ingestion and UI routes often sit behind different load balancer rules, timeouts and body size limits. Mismatched keep-alive or idle timeout values can cause intermittent gateway errors on one route only, which is hard to diagnose when both share a name. Record the settings for each route in version control, and test a change on one route before applying the same pattern to the other.
Keeping split deployments in step during Langfuse upgrades
Both the ingestion deployment and the UI deployment must run the same Langfuse version at all times, and you should upgrade them in one planned change. Langfuse applies database migrations automatically at startup for updates within a major version, so whichever langfuse-web pod starts first can change the schema that the other deployment is still reading. A split that runs two different versions can therefore fail in ways that look like ingestion or UI bugs. Treat the two deployments as one release with two Deployment objects, and make the image tag a single value that your deployment tooling sets for both at the same time.
Major upgrades (v1 to v2, v2 to v3, v3 to v4) change infrastructure and data models, so each one follows its own guide in the Langfuse upgrade guide. Before you start a major upgrade, confirm the prerequisites for your target version, including the ClickHouse, PostgreSQL and Redis or Valkey minimums in the v4 guide, and confirm the ClickHouse disk headroom the guide advises for backfilling historic data. The migration window is also the moment to check that both deployments, the worker, and any health probes point at the same endpoints after the change. Plan a rollback path for the database as well as the containers, because startup migrations are not reversed by redeploying an older image.
If you deploy with the Helm chart and use bundled data stores, the v4 path has an extra step: upgrade the chart from v1 to v2 before you upgrade Langfuse to v4. Make that chart upgrade part of the same change window, not a separate task, and confirm in a test environment that the split values files render correctly for both ingestion and UI releases after the chart change. Also check the Python SDK v5 and JS/TS SDK v6 requirement of Langfuse v4.59.0 or later, because SDK clients on older releases can fail after the server moves. Keep a dated record of the versions each deployment ran during the window, so that any later fault can be traced to a mismatch.
Limits to confirm in your environment before splitting
Splitting langfuse-web only helps if the surrounding path and the data stores can carry the change. The cards below cover the items Langfuse does not put a number on, so each one is a check to run in your own environment before you change routing or scale either deployment.
Load balancer and ingress routing
The split depends on sending ingestion API paths and UI paths to different backends, which needs path or header based routing at your load balancer or ingress. Confirm that your current controller can match the paths Langfuse uses for ingestion and the UI, and that it can apply the same keep-alive and idle timeout settings to both backends. A mismatch between the proxy and Langfuse web is a common cause of intermittent 502 and 504 errors, so test under load before the split goes live.
Langfuse scaling guideClickHouse headroom for added load
Splitting web does not reduce the work ClickHouse does for ingestion, and a UI deployment that is no longer throttled by ingestion may issue more queries. Ask whether your ClickHouse nodes have spare CPU, memory and disk I/O at your peak ingestion and dashboard hours. Measure query latency before and after the split, because a faster UI can shift the bottleneck to the database.
- ClickHouse memory for larger deployments
- 16 GiB
PostgreSQL connection capacity
Each web deployment opens its own database connections, so two deployments draw on the same PostgreSQL connection limit. Confirm that PostgreSQL's maximum connections and any pooler in front of it cover both deployments plus the worker at peak. Check the resource floor for PostgreSQL as well, since the split doubles the number of processes that talk to it.
- PostgreSQL minimum resources
- 2 CPU, 4 GiB
Official minimum resource figures
Langfuse publishes minimum resources for web, worker, PostgreSQL, Redis or Valkey and ClickHouse, but these are floors for running the platform, not sizing for a split. Use them as the lower bound for each new deployment's requests and limits, then size the ingestion and UI replicas from your own traffic and tests. Ask your team to record the figures they actually adopted, so the next upgrade review has a baseline.
- Web minimum resources
- 2 CPU, 4 GiB
No published split threshold
Langfuse recommends splitting web under heavy ingestion, but the scaling guide does not publish a throughput figure at which a split becomes necessary. Decide the trigger with your own data, such as sustained web CPU saturation, rising UI latency during ingestion bursts or 5xx rates on either path. Write the threshold down and review it after each Langfuse upgrade, since the data model and load profile can change between versions.
Questions teams ask before splitting Langfuse web
What makes the cost of splitting Langfuse web go up or down?
The split itself is a configuration change on top of your existing deployment, so the cost is driven by how much of the surrounding setup has to change. The main drivers are the number of environments you run (production, staging, and any air-gapped copy), how your load balancer or ingress routes traffic, how much load testing you need to prove the UI stays responsive, and whether your team already runs Kubernetes or Helm. You pay for planning, configuration, testing and handover. Ask any partner for a quote that lists each environment and each routing change separately, and state which parts are one-time work and which parts you will maintain yourself afterward.
How long does a split of Langfuse web usually take?
The duration depends on the size of your deployment, how many environments need the change, and how quickly your team can run load tests and approve routing changes. Langfuse's scaling guide describes the split as a recommended step under heavy ingestion, but it does not publish a duration, so DeployOpen does not state one here. Ask for a timeline in the written scope, and check whether it includes a staging rehearsal and a rollback plan before the production cutover.
What does our team need to provide for the split?
You need access to the cluster or Compose host that runs Langfuse, the current Helm values or manifests, and the ingress or load balancer configuration that routes traffic to langfuse-web. You also need someone who can approve changes to production routing and who knows your ingestion volume and the paths your SDKs and OpenTelemetry collectors use. Realistic load patterns are essential for the test plan, so share recent traffic metrics if you have them. Confirm access windows and change control requirements before the work starts.
Can our own platform team split Langfuse web without a partner?
Yes, if your team already operates Kubernetes or Docker Compose, maintains ingress or load balancer rules, and can run load tests against a staging copy. The change touches routing, two separate web deployments and their resource settings, so mistakes show up as failed UI requests or dropped ingestion. A partner adds value when your team lacks capacity or wants the change reviewed against a written plan. Decide which party owns the routing rules and the monitoring afterward before you start.
How does the web split relate to worker scaling and health checks?
The split and worker scaling solve different problems. Langfuse's scaling guide recommends scaling worker containers on CPU load and splitting langfuse-web under heavy ingestion, so you may need both. Health check endpoints should be defined separately for the ingestion and UI deployments so that Kubernetes probes or load balancer checks restart only the deployment that is actually unhealthy. Review probe settings and worker autoscaling together so that a busy ingestion deployment does not starve the UI or trigger restarts during short database pauses.
What changes for users and operators after the split?
Users of the UI should see the same features, but they reach a different hostname or path, so bookmarks, SSO callback URLs and any proxies must match the routing you choose. Operators gain separate dashboards, scaling rules and resource limits for ingestion and UI, which means more objects to monitor and upgrade. Each upgrade must roll out both deployments with the same Langfuse version. Document which deployment serves which path, and retest SSO sign-in after the change.
Does splitting Langfuse web affect licensing or support terms?
The split uses the same open source codebase, and Langfuse states that core features and APIs are available in the MIT-licensed open source version without limits. Enterprise features such as audit logs and SCIM provisioning need an Enterprise license key whether or not you split the deployment. Langfuse's self-hosted pricing page describes a custom-priced Self-Hosted Enterprise plan with a support SLA, which may matter if you want vendor help during incidents. Confirm your plan and support entitlements before the change, because they are separate from any implementation work.
How DeployOpen scopes and delivers the ingestion and UI split
DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside your own infrastructure, so the ingestion and UI split runs in your cloud account, data center or air-gapped network. Engagements are fixed-scope, with the deployment layout, routing, resource settings and tests agreed in writing before work starts.
How we scope
- We map your current langfuse-web load, ingestion volume and the UI paths your users depend on before choosing a split.
- The written scope names the ingestion and UI deployments, their ingress routes, replica ranges and resource settings for your environment.
- We confirm with you which upstream load balancer, Kubernetes or VM setup and blob storage the split must fit into.
How we build
- We create two web deployments from the same Langfuse version, with the same database, ClickHouse, Redis or Valkey and blob storage settings.
- We configure routing so SDK ingestion traffic and browser UI traffic reach the correct deployment, and we test each path separately.
- We set CPU and memory requests and limits per deployment and check the Node.js memory settings against container limits.
How we hand over
- You receive the manifests or configuration, a routing diagram, the scaling settings and a record of each test result.
- The runbook covers how to change replica counts, roll out a new Langfuse version to both deployments and roll back safely.
- We walk your platform and operations engineers through the monitoring signals to watch for each deployment after go-live.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer, which covers changes to the split as trace volume grows.
- When you move to a new major Langfuse version, we review whether both deployments and their routing still match the upgrade guide requirements.
- Retesting after changes to ingress, load balancers or Langfuse versions is included in the written scope where you choose it.

