API Maker

The framework for AI era

Deployment architectures

From one VPS to a global fleet

13 ways to run API Maker, from the simplest to the most dynamic. Each one uses only API Maker, your databases, MongoDB and Redis, on plain VPS from any provider or on your own servers. No managed cloud services, no lock-in.

  • 1 to 25+ servers
  • Any VPS provider
  • 8 database types
  • A live diagram for each
  1. Level 1Start
  2. Level 2Grow
  3. Level 3Scale
  4. Level 4Resilient
  5. Level 5Global

Compare them side by side

What each architecture gives you. They combine too: a multi-tenant platform can also be highly available and global.

ArchitectureServersDatabases on their own serversAdd servers for more capacitySurvives the loss of a serverSeveral clouds or data centersServes users from near themA database per customer or projectCapacity
01 All-in-one server 1 VPSNoNoNoNoNoNo~2,759 req/s on 4 cores
02 Separate database server 2+ VPSYesNoNoNoNoNo~2,759 req/s on 4 cores
03 Dedicated data tier 4 VPSYesNoNoNoNoNo~2,759 req/s on 4 cores
04 Environments with Git 4+ environmentsYesYesNoNoNoNo~5,518 req/s on PROD, 2 × 4 cores
05 Load-balanced API servers 7+ VPSYesYesNoNoNoNo~13,587 req/s on 3 × 8 cores
06 Real-time events across servers 5+ VPSYesYesNoNoNoNo~8,277 req/s on 3 × 4 cores
07 Many projects, one platform 5+ VPSYesYesNoNoNoYes~7,288 req/s on 2 × 6 cores, shared
08 Multi-tenant: a database per customer 5+ VPSYesYesNoNoNoYes~5,518 req/s on 2 × 4 cores, shared
09 Clustered Redis and databases 13+ VPSYesYesNoNoNoNo~8,277 req/s on 3 × 4 cores
10 High availability 10+ VPSYesYesYesNoNoNo~8,277 req/s on 3 × 4 cores
11 Multi-cloud 12+ VPSYesYesYesYesNoNo~11,036 req/s on 4 × 4 cores
12 Geo-routing: the nearest region 10+ VPSYesYesYesYesYesNo~8,277 req/s on 3 regions × 4 cores
13 Global enterprise platform 25+ VPSYesYesYesYesYesYes~16,554 req/s on 6 × 4 cores

Capacity is estimated from our benchmark on Linode shared VPS (MongoDB 6, 10 rows of 10 columns): 788 req/s on 1 core and 4,529 req/s on 8 cores. Your numbers depend on your APIs, your data and your databases.

What every architecture has in common

Moving from one to the next is a matter of servers and connection strings, never of rewriting APIs.

One install script

Every server of every architecture is installed the same way, on a plain Ubuntu VPS.

The same APIs everywhere

APIs, schemas and settings live in API Maker's MongoDB, so every server serves all of them.

Redis ties the servers together

Cache, WebSocket subscriptions, events between servers and locks of the schedulers go through Redis.

Git pull is deployment

Pull on one server and every server of the environment serves the new version, in about 15 seconds.

Shared secrets

passJWT, passDBEncryptDecrypt and passCommunication are the same on every server of a project.

One dashboard for the fleet

Traffic, latency, logs and Docker of every server in one place, with remote restarts.

Not sure which one fits?

Tell us about your traffic, your users and your data. We will help you pick and size your architecture.