You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/use-cases/application-hosting/scaling-your-application.mdx
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,20 +30,23 @@ For most modern web applications, we recommend starting with **Serverless Contai
30
30
## Best Practices for Scaling Applications
31
31
32
32
### Use Auto-Scaling Where Possible
33
+
33
34
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.
34
35
35
36
<Messagetype="tip">
36
37
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.
37
38
</Message>
38
39
39
40
### Leverage Edge Services for Global Performance
41
+
40
42
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.
41
43
42
44
<Messagetype="tip">
43
45
Use Edge TLS pipelines to secure and accelerate traffic to your app or static assets.
44
46
</Message>
45
47
46
48
### Separate Concerns: Frontend and Backend
49
+
47
50
Deploy frontend and backend components independently:
48
51
- Host static frontends (React, Vue, etc.) on **Object Storage** with **Edge** for fast global delivery.
49
52
- Run backend APIs in **Serverless Containers** or **Instances** for dynamic processing.
Use Scaleway Container Registry and integrate with your CI/CD pipeline to automate image building and deployment. This ensures consistent, repeatable deployments.
57
61
58
62
<Messagetype="tip">
59
63
Tag your container images semantically and use deployment hooks to minimize downtime.
60
64
</Message>
61
65
62
66
### Monitor and Optimize
67
+
63
68
Use monitoring tools to track CPU, memory, and request metrics. Scaleway provides integration points for observability solutions.
64
69
65
70
<Messagetype="tip">
66
71
Set up alerts for high load or error rates to proactively manage performance.
67
72
</Message>
68
73
69
74
### Secure Your Application
75
+
70
76
- Always enable HTTPS using **Edge Services** or load balancers.
71
77
- Use private networks and security groups to restrict access to backends and databases.
72
78
- Regularly update and patch your environments, especially on **Instances** and **Elastic Metal**.
0 commit comments