Traffic
Published
Updated
🚦
Bytes to and from visitors.
Traffic is the data a fortrabbit environment transfers to and from visitors over HTTP in a month. Every environment has it, in plans by monthly volume, with optional autoscaling. Most websites stay on the smallest plan.
Booking
Traffic is part of every environment. It counts up over the month and starts at zero on the first. The total of the month sets the billed plan. Most websites have steady traffic and the same bill each month.
What counts as traffic
Traffic is measured at the load balancer in front of the environment. It counts every HTTP request in both directions:
| Direction | Contains | Share |
|---|---|---|
| Out | Responses | Most of it |
| In | Requests, uploads | Usually small |
Responses carry the HTML, images, scripts, styles, and downloads, so they make up most of the traffic of a website. Incoming data only adds up for sites that receive a lot: file uploads, large API payloads, or bots posting forms.
Not counted: SSH and SFTP, deployments, MySQL connections, and requests the app makes to other services, such as APIs or e-mail.
The traffic metric graphs the same number per hour or day and lists the URLs that transfer the most.
Scaling
With autoscaling, the plan follows the monthly total. Without it, traffic is capped at the plan: once reached, the environment goes offline until the next month or until the plan is scaled.
Why traffic grows
More visitors mean more traffic, and often more load on PHP too, see performance. Large new uploads, downloads and crawler bots also add to it.
Avoid website obesity
High traffic comes more often from heavy pages than from many visitors. A lighter website serves more visitors on the same plan and loads faster for each of them.
Find the heavy assets and cut them down: see reduce page weight.