Why r-nacos Beats Java Nacos: Faster Startup, Lower Resource Use
r-nacos is a Rust‑based Nacos server that offers the same client‑SDK compatibility as the official Java version while delivering dramatically faster startup, minimal memory footprint, higher performance, and stable operation, making it ideal for development, testing, and lightweight production environments.
r-nacos Introduction
r-nacos is a Nacos server implemented in Rust . Compared with the Java Nacos, r-nacos provides the same functionality but starts faster, consumes far less system resources, delivers higher performance, and runs more stably.
r-nacos is fully compatible with the latest Nacos client SDK protocols (including the 1.x HTTP OpenAPI and the 2.x gRPC protocol), allowing applications using Nacos to migrate to r-nacos seamlessly.
Memory Usage Comparison
In the same environment, memory usage of rnacos and java‑nacos was measured for identical business requirements.
<code># rust nacos implementation
ps aux | grep rnacos | awk '{print $6/1024 "M"}'
1.34375M
</code> <code># official java Nacos version
ps aux | grep Nacos | awk '{print $6/1024 "M"}'
368.215M
</code>Quick Start
Download the appropriate package from the GitHub release page, unzip it, and run without any Java dependency.
<code># Linux or macOS unzip
tar -xvf rnacos-x86_64-apple-darwin.tar.gz
# Run
./rnacos
</code>On Windows, unzip and run
rnacos.exedirectly.
Open a browser and visit http://localhost:10848 to access the console.
Configuration Management Usage
Service Discovery Usage
Service discovery list
Service instance control
Applicable Scenarios
Replace Nacos in development and testing environments with r-nacos for near‑instant startup.
For personal cloud service deployments, r-nacos offers a tiny installation package (~10 MB), no JDK dependency, CPU usage below 0.5 % and memory usage under 5 MB at runtime.
Users of non‑customized Nacos seeking improved performance and stability can consider migrating to r-nacos.
Detailed performance specifications are available in the referenced documentation.
References
[1] r-nacos download:
https://github.com/r-nacos/r-nacos/releases
[2] Detailed performance description:
https://r-nacos.github.io/r-nacos/performance.html
Java Architecture Diary
Committed to sharing original, high‑quality technical articles; no fluff or promotional content.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.