Move the Work to the Server: One Dropdown, Three Choices, Full Control.

Run At Server is the Studio setting that decides where a program executes: in the browser, on the Xuda application server, or inherited from the parent datasource. Exposed as a single Run At dropdown on the programs where it matters (data reads, data writes, workflow loops, and components), it gives developers a clean, per-program choice of execution location, with authenticated context forwarded automatically so server execution has everything it needs.

One Property, Three Choices

Run At is a single dropdown with three clear options: Inherit (pick up the parent's choice), Client (runs in the browser), and Server (runs on the Xuda application server). The built-in tooltip spells out the model so the setting is self-documenting.

Inherit, Client, Server

One dropdown, three options, no jargon.

Scoped To the Right Types

Run At appears on data reads, data writes, batches, and components. Other program types use their own appropriate settings instead.

Self-Describing Tooltip

The setting explains itself in the UI, so the choice is never guesswork.

Deterministic Dispatch

The runtime picks a lane with no guesswork. Worker context, explicit Client setting, or the local driver keep a program in the browser. Otherwise the runtime dispatches it to the server and awaits the result over a persistent connection.

Clean Handoff

Server-side dispatch hands the program, its parameters, and the active session id to the server engine in one step.

Persistent Channel

A single persistent connection carries requests and responses, so there are no per-call handshakes slowing things down.

Transparent Results

The response flows back into the program's normal data state, so downstream logic uses the result exactly like a locally computed one.

Inheritance By Default

Most projects do not want to annotate every program one by one. When Run At is left as Inherit, a child program picks up its parent's value, so setting Server once on a parent datasource cascades down to every read, write, and batch under it.

Parent Cascade

If Run At is Inherit and a parent datasource exists, the runtime picks up the parent's choice automatically.

Per-Program Override

Any program can override the inherited value by picking Client or Server explicitly, so exceptions stay local.

Consistent Execution

Inheritance keeps related programs on the same side of the wire, so data and workflows do not flip back and forth unexpectedly.

Safe by Default

Two guard rails keep Run At Server predictable even when the setting is ambiguous. When the session runs in a single-process mode, execution is forced to Client, and global programs are always Client. On top of that, server-side programs run with the authenticated session forwarded, so they act under the same identity as the caller.

Single-Process Safety

Sessions in single-process mode always execute locally, regardless of Run At, for deterministic behavior.

Globals Stay Local

Global programs are always Client, so shared state never round-trips through the server.

Session Context Forwarded

The active session, app, and user are forwarded on every server dispatch, so server-side programs act under the same authenticated identity.

Why It Matters

Sensitive Work On the Server

Push secrets, privileged queries, and cross-tenant logic away from the browser by flipping a single dropdown, without rewriting the program.

Faster and Leaner

Heavy reads, batch work, and multi-step writes complete on the server, so the browser stays snappy and round-trips shrink.

Same Program, Either Side

The same program behaves consistently whether Run At points it at the client or the server.

Progressive Hardening

Start everything on the client for simplicity, then move individual programs to Server as security or performance needs evolve.

Run At Server turns a per-program choice of execution location into a first-class setting. It shows up as a simple Run At dropdown in the program's properties, with three options: Inherit, which picks up the parent datasource's choice if one is set and is the safe default; Client, which keeps the program in the browser runtime; and Server, which dispatches the work to the Xuda application server. The setting is available where offloading actually makes sense: on data reads, data writes, multi-step batch programs, and components that own their data. Other program types use their own appropriate configuration so there is no clutter. At runtime, the decision is explicit. If the program is set to Client, is using the local data driver, or touches system client variables, it stays on the client. Otherwise the runtime dispatches it to the server and awaits the result over a persistent connection, then drops the response back into the same data flow the program uses everywhere else, so downstream logic never has to care which side of the wire produced it. Two guard rails keep things predictable: when the session is in a mode that requires single-process behavior, execution is forced to Client, and shared global programs are always Client, so behavior never drifts into surprise. Inheritance keeps the model simple too: setting Server once on a parent datasource cascades down to every read, write, and batch under it. Session context (the active session, app, and user) is forwarded on every server dispatch, so server-side programs run under the same authenticated identity as the client and can safely reach resources the browser should not.

Available in plans

  • pro
  • team
  • agency

Frequently asked questions

Share Creation - Preview Options
Debug Watchers

Develop.Deploy.Stay Productive.

Build apps, sites and AI agents on one platform, and deploy them on managed infrastructure.