How does Xano scale to meet demand?
Once you’re on the Scale Plan, you’re on an instance that has dedicated resources, can handle multiple concurrent operations, and has the ability to scale to millions of users. There are a lot of nuances around scaling your instance to meet high traffic demands, however, there are two basic infrastructure components that can be scaled up: API Nodes Xano leverages API nodes to handle the business logic demands of your application. You might have thousands of users on your app just browsing which doesn’t require much, but when they all start hitting the API or complex endpoints that you might have created, you’ll need more API nodes to distribute the load and keep things running smoothly. Database Nodes Similar to how the API nodes work, a Database node powers how many users can request information from your database at the same time. The more users you have accessing the Database at the same time, the more power you’ll need to service their requests. **Database Horizontal Scaling **(Enterprise Plans Only) Vertical scaling or “Scaling up” usually involves adding more power (e.g. CPU or RAM) to meet the demands of your users. This tends to work just fine as long as it is possible to keep increasing resources, but eventually, you hit a limit with today’s technology and have to rely on scaling horizontally to keep up with usage requirements. Horizontal scaling or “Scaling out” usually means scaling by adding more nodes to your pool of resources. There are different methods of horizontal scaling: database replicas and data sharding. Both options are possible with Xano due to the PostgreSQL database engine. Why Scale a Database horizontally? Imagine that you have a sheet of paper that users can request copies of. Each time a user makes a request, you have to hit the button on the copier and wait for the copy to print before giving it to them. Now imagine 100,000,000 users asking for a copy at the same time. Single node Databases simply aren’t built to handle this many requests no matter how powerful it is, so you’ll need to leverage read replicas and region-specific delivery to ensure things are as real-time as possible.Upgrading your Scale plan
We can add more power to your existing scale plan by adding more capacity through node quantity or vCPUs.Scale Plan | API Nodes | Database Nodes | Cost |
---|---|---|---|
Scale 1x | 2 x (1x vCPU) | 1 x (2x vCPU) | $225/mo |
Scale 2x | 4 x (1x vCPU) | 1 x (4x vCPU) | $405/mo (10% off) |
Scale 4x | 8 x (1x vCPU) | 1 x (8x vCPU) | $765/mo (15% off) |
Scale 8x | 16 x (1x vCPU) | 1 x (16x vCPU) | $1,440/mo (20% off) |
Scale ++ | custom | custom | custom |