|
| 1 | +--- |
| 2 | +title: Scaling your application |
| 3 | +description: This page provides guidelines, tips, and best practices to deploy and scale your application using Scaleway products |
| 4 | +tags: deploy create scale scaling application app webapp autoscaling kubernetes instances serverless |
| 5 | +dates: |
| 6 | + validation: 2025-11-18 |
| 7 | + posted: 2025-11-18 |
| 8 | +--- |
| 9 | + |
| 10 | +Scaleway offers scalable and secure hosting solutions to support your app development and deployment. Whether you're building a small prototype or a full-scale enterprise application, we have the resources you need. |
| 11 | + |
| 12 | +Choosing the right hosting strategy is key to ensuring performance, scalability, and maintainability. Below are best practices and guidelines to help you scale your application effectively using Scaleway products. |
| 13 | + |
| 14 | +## Choose the Right Hosting Model for Your Use Case |
| 15 | + |
| 16 | +Different applications have different requirements in terms of scalability, control, and operational complexity. Consider the following deployment options based on your application’s needs: |
| 17 | + |
| 18 | +| Deployment Method | Best For | Scalability | Management Overhead | |
| 19 | +|----------------------------------|------------------------------------------------------------|-------------|---------------------| |
| 20 | +| **Serverless Containers** | Dynamic web apps, APIs, microservices | High | Low | |
| 21 | +| **Instances (Virtual Machines)** | Full control, long-running workloads, custom configurations | Medium | High | |
| 22 | +| **Elastic Metal (Aluminium)** | High-performance, predictable workloads, low-latency apps | High | High | |
| 23 | +| **Object Storage + Edge** | Static websites, frontend assets, serverless front-ends | High | Very Low | |
| 24 | + |
| 25 | +<Message type="tip"> |
| 26 | +For most modern web applications, we recommend starting with **Serverless Containers** or **Instances** depending on whether you prefer abstraction over infrastructure or full control. |
| 27 | +</Message> |
| 28 | + |
| 29 | +## Best Practices for Scaling Applications |
| 30 | + |
| 31 | +### Use Auto-Scaling Where Possible |
| 32 | +When deploying with **Serverless Containers**, your application automatically scales to zero when idle and scales out under load, optimizing cost and performance. This is ideal for variable or unpredictable traffic. |
| 33 | + |
| 34 | +<Message type="tip"> |
| 35 | +Structure your app to be stateless and rely on external services (like Managed Databases for PostgreSQL and MySQL or Object Storage) for persistence to make scaling seamless. |
| 36 | +</Message> |
| 37 | + |
| 38 | +### Leverage Edge Services for Global Performance |
| 39 | +Pair your application with **Scaleway Edge Services** to cache responses at the edge, reducing latency and backend load. This is especially effective for content-heavy or globally accessed applications. |
| 40 | + |
| 41 | +<Message type="tip"> |
| 42 | +Use Edge TLS pipelines to secure and accelerate traffic to your app or static assets. |
| 43 | +</Message> |
| 44 | + |
| 45 | +### Separate Concerns: Frontend and Backend |
| 46 | +Deploy frontend and backend components independently: |
| 47 | +- Host static frontends (React, Vue, etc.) on **Object Storage** with **Edge** for fast global delivery. |
| 48 | +- Run backend APIs in **Serverless Containers** or **Instances** for dynamic processing. |
| 49 | + |
| 50 | +<Message type="tip"> |
| 51 | +Independent scaling, faster iteration, and improved security. |
| 52 | +</Message> |
| 53 | + |
| 54 | +### Automate Deployment and CI/CD |
| 55 | +Use Scaleway Container Registry and integrate with your CI/CD pipeline to automate image building and deployment. This ensures consistent, repeatable deployments. |
| 56 | + |
| 57 | +<Message type="tip"> |
| 58 | +Tag your container images semantically and use deployment hooks to minimize downtime. |
| 59 | +</Message> |
| 60 | + |
| 61 | +### Monitor and Optimize |
| 62 | +Use monitoring tools to track CPU, memory, and request metrics. Scaleway provides integration points for observability solutions. |
| 63 | + |
| 64 | +<Message type="tip"> |
| 65 | +Set up alerts for high load or error rates to proactively manage performance. |
| 66 | +</Message> |
| 67 | + |
| 68 | +### Secure Your Application |
| 69 | +- Always enable HTTPS using **Edge Services** or load balancers. |
| 70 | +- Use private networks and security groups to restrict access to backends and databases. |
| 71 | +- Regularly update and patch your environments, especially on **Instances** and **Elastic Metal**. |
0 commit comments