Skip to content
Back to services

Performance

Serve many more users with the same server

When a shop or an API gets many visits at once, the server is not always short on power: often it falls short because of how it handles each connection.

Swipe the diagram to see all of it

Classic Apacheprefork + mod_phpnginx + Node.jsevent-drivenrequestsqueuedApachePHPPHPPHPPHPPHPPHPPHPPHPPHPPHPPHPPHPone process per connectionthousands of connections⇄nginxreverse proxyNode.jsevent loopno waiting queue
  • Connections handled without waiting
  • Busy processes and queued requests
  • nginx hands off to the app

On the left, Apache’s classic setup: each connection takes a whole process with PHP inside. When processes run out, other requests wait in a queue. On the right, nginx handles thousands of connections with very little memory and passes them to Node.js, which works with events without blocking.

Processes versus events

One process per connection uses memory even while the connection is just waiting. nginx handles thousands of open connections with few processes, leaving memory free for your app and database.

Everything in its place

nginx serves images, styles and static files directly, handles HTTPS and passes the rest to your apps (Node.js, AdonisJS) or to PHP-FPM. Each part does what it does best.

Migration without fear

SERVILINUX analyzes your Apache sites, moves them to nginx, checks that every domain responds as before and, if something does not match, goes back to Apache on its own.

Measured, not assumed

With Sentinel you see memory and load before and after the change, and decide with data whether you need a bigger server or just a better setup.

The diagram compares Apache’s classic setup (prefork with mod_php), still very common. Apache with the event MPM and PHP-FPM performs much better; even so, nginx as a reverse proxy usually uses less memory with many open connections.

In SERVILINUX

How it is done

  1. 1
    Analyze your server

    SERVILINUX reviews the Apache sites and what each domain returned.

  2. 2
    Migrate to nginx

    With one click from the server page; your certificates are kept.

  3. 3
    Automatic check

    Each domain is compared with before; if it fails, it goes back to Apache on its own.

  4. 4
    Your sites, in Projects

    Migrated sites are managed as projects, with HTTPS and logs.