Load Balancing & Scaling

Load balancers, several app servers and read replicas so your Laravel or Node.js app survives traffic peaks and deploys without a single point of failure.

Get a Quote for This Service

When does one server stop being enough?

A single server is fine until a campaign, a seasonal peak or a hardware fault proves otherwise. Load balancing spreads requests across two or more application servers, removes unhealthy ones automatically and lets you deploy to one server while the other keeps serving. SoftBuildLab designs these setups on Hetzner Cloud using the Hetzner Load Balancer or HAProxy, with Cloudflare in front, and on AWS when a client is there already.

The service is for e-commerce sites with Black Friday peaks, booking and ticketing systems with scheduled rushes, SaaS products with availability commitments and any application where a reboot currently means downtime.

What we deliver

  • Architecture for two or more stateless app servers behind a load balancer with health checks and TLS termination
  • Shared session and cache layer in Redis, shared file storage in object storage, so any server can answer any request
  • PostgreSQL or MySQL read replicas with the application routing reads and writes correctly
  • Rolling deployments through your CI pipeline, draining one server at a time
  • Scaling runbook or Terraform-driven autoscaling for predictable peaks
  • Load test with k6 against staging to confirm the target traffic level before go-live
  • Dashboards for request rate, latency per server and error rate

How we work

We measure current traffic and bottlenecks, agree target capacity and send a free technical proposal within 3 to 5 business days. The second server and load balancer are built with Terraform and Ansible, the application is adjusted for shared state, and the load test is run before traffic moves. Switch-over happens behind Cloudflare with a rollback path.

When it makes sense

Scale out when peaks already cause errors or slow checkouts, when maintenance windows are no longer acceptable to customers, or when a single server failure would stop revenue. Often the database is the real limit, which is where managed databases and replicas come in; for container workloads see Docker and Kubernetes. Request a quote and we will begin with a capacity review.

Key Benefits

  • Two or more app servers behind a load balancer, unhealthy nodes removed automatically
  • Deploy and reboot one server at a time with no customer-visible downtime
  • Read replicas take reporting and catalogue queries off the primary database
  • Load tested with k6 before launch, so capacity is measured rather than guessed
  • Built on Hetzner Load Balancer or HAProxy with Cloudflare in front

Technologies Used

HetznerCloudflareRedisPostgreSQLTerraformLaravelNode.js

Interested in this service?

Get a free technical proposal tailored to your project.

Get a Free Quote

Frequently asked questions

Does our application need changes to run on several servers?

Usually a few. Sessions and cache must move to Redis, uploaded files to shared object storage, and scheduled jobs must run on one node only. Laravel and most Node.js frameworks support this through configuration. We review the code for local-disk assumptions and fix them as part of the project, testing on staging before any traffic is split.

How long does a load balancing setup take and how is it priced?

A two-server setup with a load balancer, shared Redis and a load test usually takes two to three weeks including application adjustments. Autoscaling and database replicas add time depending on scope. Every project is quoted individually, with no fixed price list, and the free technical proposal arrives within 3 to 5 business days.

Is autoscaling worth it on Hetzner?

For predictable peaks a scheduled scale-out through Terraform is simpler and cheaper than reactive autoscaling, and Hetzner servers provision in well under a minute. For unpredictable spikes we can add servers automatically based on metrics. We recommend the simplest approach that meets your traffic pattern and explain the trade-offs in the proposal.

Last updated: 2026-11-09