Book a free call

Server-Driven UI for Mobile Apps: How It Works and When to Use It

Server-driven UI lets a server send the screen layout to the app, so screens change without an app-store release. Learn how it works, its benefits, and its limits.

Hertiv engineering teamReviewed by a senior engineer
8 min read
Server-Driven UI for Mobile Apps: How It Works and When to Use It
On this page

Short answer

Server-driven UI is an approach where the server sends a description of each screen, such as which components to show and in what order, and the mobile app renders it with native components. Screens can change without an app-store release, which suits content that changes often. It adds server complexity and needs a strong component library to work well.

What is server-driven UI?

Server-driven UI, often shortened to SDUI, is an approach where the server decides what a screen looks like and sends that description to the mobile app, which renders it with native components. Instead of hard-coding each screen in the app, the app knows how to draw a set of components, and the server tells it which components to show, in what order, and with what content.

The description is usually a structured payload, such as JSON, that names components and their properties: a banner with an image and a button, a list of three cards, a form with two fields. The app reads the payload, looks up each component in its library, and builds the screen. The server controls the layout; the app controls how each component looks and behaves.

Approach Who decides the layout Change without release
Server-driven UI Server, per request Yes, for layout and content
Native screens App code, fixed at build No, needs a new release
Web view Server, as a web page Yes, but not native

SDUI sits between native screens and web views. Native screens are fast and feel right, but every change needs a release and a review. Web views change instantly, but they feel like a web page inside an app. SDUI aims for the middle: native components, server-controlled layout, and changes that go live when the server says so.

How does server-driven UI work?

Server-driven UI works through a contract between the server and the app: the server sends a tree of named components, and the app renders that tree. The contract is the real product, and keeping it stable matters more than any single screen.

  1. The server builds a screen description. For a request, it picks components, fills them with content, and sends the tree as JSON.
  2. The app parses the payload. It walks the tree and matches each node to a component in its library.
  3. Components render natively. Each component is a real native view, so scrolling, tapping and animation behave like the rest of the app.
  4. Actions return to the server or to local logic. A tap can call an API, open another server-driven screen, or trigger a native flow such as checkout.
  5. Unknown components fall back gracefully. If the app does not know a component, it skips it or shows a placeholder instead of crashing.

The fallback rule is what keeps SDUI safe in production. The server will always move faster than the app, so new components will reach old app versions. A version field in the payload lets the app ignore what it cannot draw, and the server can send a simpler layout to older versions. For teams weighing this against fully native screens, native versus cross-platform covers the trade-offs in the wider choice.

What are the benefits of server-driven UI?

The main benefit of server-driven UI is speed of change. A promotion, a new onboarding step or a reordered home screen can go live in minutes, without waiting for an app-store review. For teams that change content daily, that alone justifies the work.

It also makes experiments cheaper. The server can send one layout to half the users and another to the rest, then compare the results, all without shipping two app versions. Product teams can test ideas in days instead of release cycles, and the data comes back from the same screens real users already see.

  • Faster releases for content and layout. Changes ship when the server deploys, not when the store approves.
  • One layout logic for iOS and Android. The server sends the same tree to both apps, so the screens stay in step.
  • Personalisation without app logic. The server can tailor the screen to the user, the region or the account type.
  • Safer rollouts. A bad layout can be reverted on the server in minutes, while a bad app release takes days to replace.

There is a quieter benefit too: the screen logic moves into one place. Instead of the same layout rules living in two apps, they live on the server, where they can be reviewed, tested and changed by one team. That only holds if the server code stays tidy, which is a discipline the team has to protect.

What are the limits and risks?

Server-driven UI has real limits, and teams that ignore them end up with a slower app that is harder to debug. The first limit is that SDUI is only as good as its component library. If the app only knows ten components, every screen looks like a combination of those ten, and designers will ask for an eleventh, then a twelfth, until the library is as large as the screens it was meant to replace.

The second limit is debugging. When a screen looks wrong, the cause can be in the server payload, the app's rendering, or the contract between them, and the fault can differ between app versions. Logs must show the payload that produced the screen, or the team will guess.

Offline behaviour is the third limit. A server-driven screen needs the server to arrive, so the app must handle a slow or absent network. A cached layout, a skeleton screen or a clear error state is needed for every screen, not just the home page. Apps that depend on a server for every pixel feel broken on a train or in a lift.

Finally, SDUI does not suit every screen. Complex interactions such as maps, media editors and games are better built natively, where the app can control every frame. Use SDUI where the layout changes often and the interaction is simple; build the rest natively. A mobile app development plan should name which screens are server-driven and which are not, before the first component is built.

How to build server-driven UI

Building server-driven UI is mostly about the contract and the component library, not about any one screen. Get those two right and the screens follow; get them wrong and every screen is a special case.

  1. Start with the component library. Build the ten or so components that cover most screens, and make each one handle its own states: loading, empty, error and long text.
  2. Write the contract down. Define the payload format, the component names, the required fields and the version field, and keep it in a document the server and app teams both own.
  3. Version the payload. Every payload carries a version, and the app ignores components it does not know, so old apps keep working when the server moves ahead.
  4. Build a preview tool. Let designers and product managers see a payload rendered before it goes live, or every change will need an engineer to check it.
  5. Log the payload with the screen. When a user reports a broken screen, the log should show the exact payload that produced it.
  6. Move one screen first. Pick a screen that changes often, such as the home page, and leave the rest native until the pattern proves itself.

Resist the temptation to make every screen server-driven at once. The pattern pays off on screens that change often and have simple interactions. A team that converts the whole app in one go usually discovers that the component library is not ready, and the screens that suffer are the ones users touch most.

Example: a food-delivery app changes its home screen

Example (hypothetical): a food-delivery app with 40,000 users wants to change its home screen every week for promotions, but app-store review takes 2 days and only 60% of users update within a week. With native screens, a promotion that starts on Monday reaches only the 24,000 users who have updated by then, and the other 16,000 see the old screen.

The team moves the home screen to server-driven UI. The server sends a layout with a banner, three restaurant cards and a list of offers. Changing the promotion means changing the payload, which takes 10 minutes and reaches all 40,000 users at once. Over a month with 4 promotions, the team saves 8 days of review waiting and 4 release cycles, and every user sees the current offer.

The trade-off is real: the team spends 3 weeks building the component library and the preview tool before the first server-driven screen ships. The payback comes in the second month, when a promotion needs a same-day change and the team ships it in 10 minutes instead of waiting for a release. That is the calculation to make before starting: the upfront cost is fixed, and the saving grows with every change.

What are the common mistakes?

The most common server-driven UI mistakes are treating the payload as free-form, letting the component library grow without control, and forgetting offline users. Each one turns a fast system into a fragile one.

  • No contract, no versioning. The server sends whatever it likes, old apps break, and nobody can say which version produced a broken screen.
  • A component for every screen. The library grows until it is as large as the screens it replaced, and nothing is reused.
  • No fallback for unknown components. A new component crashes old app versions instead of being skipped.
  • No offline state. Every screen depends on the server, so the app is blank whenever the network drops.
  • Server-driven everything. Complex screens such as maps and editors are forced into the pattern and end up slower than a native build.

Keep the boundary clear: SDUI is for screens whose layout changes often and whose interaction is simple. Everything else stays native. A web app development comparison is useful here, since web views solve the same change-speed problem with a different set of trade-offs.

Key takeaways

  • Server-driven UI sends screen layouts from the server, so screens change without a release
  • The contract and the component library matter more than any single screen
  • Version the payload and make unknown components fall back, never crash
  • SDUI suits screens that change often with simple interactions, not complex ones
  • Every server-driven screen needs an offline or error state

Frequently asked questions

Is server-driven UI the same as a web view?

No. A web view renders a web page inside the app, while server-driven UI renders native components from a server-sent layout. SDUI feels native because the components are native; only the choice and order of components comes from the server.

Does server-driven UI work offline?

Only if the app caches layouts or ships a fallback. A server-driven screen needs the server to arrive, so each screen needs a cached layout, a skeleton or a clear error state for when the network is slow or absent.

How many components should the library have?

Start with about ten that cover most screens, such as banners, cards, lists, forms and buttons. Add new ones only when three screens need the same thing, or the library grows until nothing is reused.

Can server-driven UI replace native development?

No. It suits screens with simple interactions that change often, such as home pages and promotions. Complex screens like maps, media editors and games are better built natively, where the app controls every frame.

What happens when the server sends a component the app does not know?

The app should skip it or show a placeholder, never crash. A version field in the payload lets the app ignore new components, and the server can send a simpler layout to older app versions.

Is server-driven UI slower than native screens?

It can be, because the app waits for the payload before drawing. Caching the last layout, sending small payloads and drawing a skeleton screen first keep it fast enough that most users will not notice the difference.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: software products in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Planning a mobile app that needs to change fast? Talk to Hertiv.

A senior engineer replies within one business day. Or see our Mobile App Development service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to contact@hertiv.com.

Prefer email? Write to contact@hertiv.com
Estimate costBook a call