Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,113 of 9,113 pages
About the help in other languages
All help pages

App backend reliability

How a business keeps the Exponential installation behind its app, portal or partner integration available - what can make the API unavailable, health checks, maintenance windows that answer 503, rate limits, caching…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/businesses/mobile-and-headless/app-backend-reliability.md

On this page

App backend reliability

This page is for owners and product managers whose app, customer portal or partner integration depends on an Exponential installation, and for the administrators who keep it running. When the website is slow, visitors notice; when the API behind an app fails, the app looks broken in every customer's pocket. This page lists what can make the back end unavailable, what Exponential provides against each risk, and what the app itself must do.

Contents

  1. What can make the API unavailable
  2. Watching it: health checks
  3. Planned work: maintenance windows
  4. Load: caching, limits and scaling
  5. Credentials that stop working
  6. What the app must do
  7. Reliability checklist for an app back end

What can make the API unavailable

CauseWhat helpsRead
The server process stoppedVelocity's watchdog restarts the engine; monitoring alertsHealth checks and uptime
Planned maintenanceMaintenance mode answers 503 with Retry-Afterbelow
Too many requestsCaching, rate limits per key, more capacitybelow
An expired or revoked credentialKey lifetimes and the API keys overviewbelow
A changed server configurationThe Authorization header must still reach PHPREST API v1 and v2 for applications
An upgrade that changed answersRelease notes; for the REST API in 6.0.15 the answers stayed "byte for byte the same"REST API v1 and v2 for businesses

The reliability section covers the platform as a whole (Reliability); this page adds what is specific to apps.

Watching it: health checks

From Health checks and uptime:

  • Check from outside: the public site, and the administration login page, because the front page "is often served from a cache ... so it can answer while the database is down". A page whose content you can check is stronger than a status code.
  • On the server: ./console exp:systeminfo --json exits 1 when a health check fails; status commands with exit codes suit automated checks.
  • Under Velocity: the endpoint /Q/health answers {"status":"ok"} when the server process answers; "it does not render a page of the site, so keep the external page checks as well". The watchdog starts the engine again after a crash and backs off after three failed starts in a row.

For an app, add one more check: an authenticated API request with a monitoring key that may only read one small public item, for example GET /api/ezp/v1/content/node/<id>. It proves the REST routes, authentication and the database together.

Planned work: maintenance windows

While maintenance mode is on, the REST API (index_rest.php) answers with the maintenance page and status 503, like the site (Maintenance mode guide). The responses carry Retry-After with the seconds until the expected end (Planned maintenance is not an outage).

For an app that means: treat a 503 with Retry-After as "come back later", show a friendly message, and retry after the given time. Announce windows to partners who integrate with you.

Note

"Maintenance never ends by itself when the expected time passes." Alert when a window lasts longer than announced.

Load: caching, limits and scaling

LeverEffectSource
The REST answer cacheRepeated reads answered from cache; cleared with the content tagHeadless Exponential
Caching in the app or a CDN, purged on publishFewer requests reach the serversame
Paged lists with limitsNo request fetches everythingsame; expservices pages at most 200 items
Rate limit per API key120 requests per key and minute by default, counted in APCu; not enforced without APCuPersonal API keys
Velocity and its persistent workersThe application stays warm between requestsScaling applications
Several web serversHorizontal capacity, with shared storage and one databaseScaling applications

Ask your developers to measure before scaling: the app creators' guide starts with "Measure first".

Credentials that stop working

Personal API keys expire (365 days at most by default) and end when their owner is disabled; OAuth tokens expire after their lifetime (one hour by default) and are renewed with a refresh token (Apps and API keys). A forgotten expiry date is a self-inflicted outage:

  • put every key's end date in the operations calendar;
  • check Setup > oAuth admin > API keys for keys "expiring within seven days";
  • never let an integration run under a person's account that may be disabled when they leave.

What the app must do

Write these into the app's requirements:

  • To do: Show cached content when the API does not answer, with a note that it may be out of date.
  • To do: Treat 503 with Retry-After as a planned pause; retry with growing intervals, not in a tight loop.
  • To do: Treat 401 as "credential expired or revoked": refresh the token, or ask the user to sign in again.
  • To do: Treat 403 as "not allowed", not as an error to retry.
  • To do: Respect rate limits; batch and page requests.
  • To do: Send every request over HTTPS.
  • To do: Log failures with time and status so support can match them with the server's logs (Finding an error by its reference).

Reliability checklist for an app back end

  • To do: External monitoring of the site, the administration login and one authenticated API read.
  • To do: Velocity's watchdog installed, if Velocity serves the site.
  • To do: Maintenance windows announced to app users and partners; the app handles 503.
  • To do: Rate limits configured, and APCu available where they must be enforced.
  • To do: Key and token expiry dates in the calendar; one credential per app and partner.
  • To do: Backups restored in a drill, so a restore of the back end is a known procedure (Restore drills).
  • To do: An incident contact for the app team and for the server team (Incident response for small teams).

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x