Many users may find that NocoBase runs slower than expected after deployment. This is often due to network environment, server configurations, or deployment architecture. Before diving into optimization techniques, let's first look at reference values for normal NocoBase loading speeds to avoid unnecessary concerns.
The following are loading speeds tested in the NocoBase demo environment:
Next, I'll share a series of simple yet effective deployment optimization techniques that can significantly improve access speed by adjusting deployment settings, without needing to modify any code:
【Prerequisites】
【Tips】
Traditional HTTP/1.1 protocol has limitations when handling multiple requests—typically only 6-8 connections simultaneously, which is like waiting in line to buy tickets, easily causing delays.

HTTP/2 uses "multiplexing" technology to handle multiple requests simultaneously, greatly accelerating resource loading; while the latest HTTP/3 performs even better in unstable networks, with excellent results.

【Optimization Suggestions】
http2 parameter after the listen directive:【Verification】
In your browser's developer panel, open the "Network" option, right-click and check "Protocol" to see the current connection protocol version:

Based on our tests, overall speed improves by about 10%, with more significant performance improvements when the system has many blocks and resources.
【Tips】
Just like highways are smoother than local roads, bandwidth determines data transmission efficiency. When NocoBase loads for the first time, it needs to download many frontend resources, and insufficient bandwidth can easily become a bottleneck.
【Optimization Suggestions】
【Tips】
Latency is the waiting time for data transmission. Even with sufficient bandwidth, if the server is too far from users (e.g., users in China but server in the US), each request response may be slowed down due to the long distance.
【Optimization Suggestions】
【Verification】
Use the ping command to test latency from different regions.
This approach shows the most obvious improvement, with access speed increasing 1-3 times or more depending on the region.
Across 12 time zones, 13 seconds:

Across 2 time zones, 8 seconds:

Current region, about 3 seconds:

【Prerequisites】
【Tips】
When users access NocoBase, requests go directly to your server. An appropriate deployment method allows your server to handle requests more efficiently, providing faster responses.
【Different Solutions and Recommendations】
Starting NocoBase without using a reverse proxy for static resources (not recommended):
Reference "Installation Documentation"
Without a reverse proxy, homepage loading takes about 6.1 seconds

Using Nginx / Caddy as reverse proxy (strongly recommended):
Reference "Deployment Documentation"
With Nginx proxy, homepage loading takes about 3-4 seconds


Using cluster deployment with load balancing (suitable for high concurrency and high availability scenarios):
【Prerequisites】
【Tips】 CDN (Content Delivery Network) caches your static resources at nodes around the world, allowing users to get resources from the nearest node, like getting water from a nearby source, greatly reducing loading delays.
Additionally, the greatest advantage of CDNs is their ability to significantly reduce the load and bandwidth pressure on your application server. When many users access NocoBase simultaneously without a CDN, all static resource requests (JavaScript, CSS, images, etc.) hit your server directly, potentially causing bandwidth saturation, performance degradation, or even server crashes. By offloading these requests to a CDN, your server can focus on processing core business logic, providing users with a more stable experience.

【Optimization Suggestions】• Configure your server to distribute static resource requests through CDN.• Choose suitable CDN providers based on user location:
Special Note: Even if all your users are in the same region, it's still strongly recommended to use a CDN as it effectively reduces server burden, improves overall system stability, especially during high traffic periods.
【Prerequisites】
【Tips】
By enabling compression and implementing reasonable cache strategies, you can significantly reduce data transfer volume and repeated requests, essentially "slimming down" your resources to make loading speeds take off.

【Optimization Suggestions】
【Prerequisites】
【Tips】
Security always comes first, but improper HTTPS configuration can add some delay. Here are some optimization tricks to help you maintain high performance while ensuring security.
【Optimization Suggestions】
【Cross-Region Optimization Effect】 Special Note: The following shows optimization effects in a cross-region/cross-12-timezone scenario, which is fundamentally different from the local access scenario (about 3 seconds) mentioned earlier. Network latency caused by geographical distance is unavoidable, but optimization can still significantly improve speed:
With Http2 + CDN caching + Gzip compression + Brotli compression combined:
Before optimization (cross-region access), 13 seconds:
After optimization (cross-region access), 8 seconds:

This example shows that even when geographical locations are far apart, appropriate optimization measures can still reduce loading time by about 40%, greatly improving user experience.
【Prerequisites】
【Tips】
It's difficult to optimize precisely without knowing where the bottlenecks are. We recommend using some free tools to monitor website performance to help identify problems.
【Optimization Suggestions】
Use the following free tools to check website performance:
Focus on these key metrics:
Common problem solutions:
The following checklist can help you quickly check and optimize your NocoBase deployment:
HTTP Version Check
Bandwidth Assessment
Server Location Selection
Deployment Architecture
CDN Implementation
Compression and Caching
SSL/TLS Optimization
Performance Monitoring
【Q】My server is deployed in a different region than my users, causing slow access. What should I do?
【A】The best solution is to choose a cloud server in the same region as your primary users. If that's not possible, you can also:
【Q】Why is my NocoBase slow on first load but fast afterward?
【A】Slow first load is normal because it needs to download many resources initially.
Using our official Demo as an example, the first load typically takes about 3 seconds. Subsequent daily access when entering the URL takes about 1-2 seconds, while navigating between pages within the application is very fast at approximately 50-300 milliseconds, with very low latency.

For excessively long loading times, there's still room for optimization:
【Q】I'm currently using shared hosting and cannot modify Nginx configuration. What should I do?
【A】In this case, although optimization options are fewer, we still recommend:
Through these simple yet practical deployment optimization strategies, you can significantly improve NocoBase access speed and provide users with a smoother experience. Many optimization measures can be completed within a few hours, require no code changes, and easily show results.
Daily operations:
