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
{{ message }}
Repository navigation
Rust vs. Java for the EDC components: what it would save, measured
#1059
Question: would writing the EDC components in Rust instead of Java save enough compute to be worth it? On this hub, measured: no. Right-sizing the Java apps gets about 80% of the saving without a line of code. Other deployments may see it differently, and that is what this thread is for.
What runs here
The hub runs on Azure Container Apps, office hours only (about 280 hours a month). After the EDC 0.18 data planes left, three EDC apps run on a JVM. The data plane is Rust already: siglet, built on the Data Plane SDK for Rust.
Measured
Azure Monitor, seven days to 2026-11-11, 70 running hours, hourly averages. Light demo traffic, not a load test.
app
language
given
memory, median / max
CPU, p95 / max hour
control plane
Java
1 vCPU, 2 GiB
305 / 379 MiB
0.015 / 0.50 vCPU
IdentityHub
Java
0.5 vCPU, 1 GiB
168 / 196 MiB
0.005 / 0.12 vCPU
IssuerService
Java
0.5 vCPU, 1 GiB
159 / 178 MiB
0.005 / 0.09 vCPU
siglet (data plane signaling)
Rust
0.25 vCPU, 0.5 GiB
81 / 115 MiB
0.001 / 0.016 vCPU
The Rust app holds about half the memory of the smaller Java apps and a fraction of the CPU. But siglet does less work than a control plane, so this is not a like-for-like benchmark.
Why the language does not reach the bill
Container Apps bills what an app is given, not what it uses, and the smallest size on sale is 0.25 vCPU and 0.5 GiB. Every app above already sits below that floor.
option
EDC allocation
saved per month, office hours / always on
today
2 vCPU, 4 GiB
none
the Java apps at what they use
1 vCPU, 2 GiB
about $30 / $79
all three rewritten in Rust
0.75 vCPU, 1.5 GiB
about $38 / $99
List prices, an order of magnitude, not an invoice. A rewrite adds $8 to $20 a month over right-sizing.
What a rewrite would cost
eclipse-edc has no Rust repository. Rust lives only in eclipse-dataplane-core: the data plane SDK, dsdk-facet-rs and siglet.
A Rust control plane, IdentityHub and IssuerService would mean reimplementing DSP, DCP, the policy engine and the credential flows, and keeping them conformant alone.
What we do instead
ADR-089 (proposed, merged with #1058): no rewrite; the three Java apps shrink to 1 vCPU and 2 GiB between them, with -XX:MaxRAMPercentage=50 so the heap ceiling stays. Where upstream ships a Rust component, we take it.
Where Rust could still win
Many connectors per host: at hundreds of participants, 80 MiB against 170 to 300 MiB per process adds up, and so does start time.
Scale to zero: a Rust binary starts in well under a second; a JVM does not, which matters when an app wakes on the first request.
Platforms that bill usage, or dense Kubernetes nodes: the floor above is a Container Apps property.
The data plane under real transfer load: not measured here.
Open questions
Has anyone measured the EDC control plane under negotiation load at 0.5 vCPU?
Is a Rust or Go control plane planned upstream, next to the data plane SDKs?
Does anyone run GraalVM native images of the EDC runtimes?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Question: would writing the EDC components in Rust instead of Java save enough compute to be worth it? On this hub, measured: no. Right-sizing the Java apps gets about 80% of the saving without a line of code. Other deployments may see it differently, and that is what this thread is for.
What runs here
The hub runs on Azure Container Apps, office hours only (about 280 hours a month). After the EDC 0.18 data planes left, three EDC apps run on a JVM. The data plane is Rust already: siglet, built on the Data Plane SDK for Rust.
Measured
Azure Monitor, seven days to 2026-11-11, 70 running hours, hourly averages. Light demo traffic, not a load test.
The Rust app holds about half the memory of the smaller Java apps and a fraction of the CPU. But siglet does less work than a control plane, so this is not a like-for-like benchmark.
Why the language does not reach the bill
Container Apps bills what an app is given, not what it uses, and the smallest size on sale is 0.25 vCPU and 0.5 GiB. Every app above already sits below that floor.
List prices, an order of magnitude, not an invoice. A rewrite adds $8 to $20 a month over right-sizing.
What a rewrite would cost
eclipse-edchas no Rust repository. Rust lives only in eclipse-dataplane-core: the data plane SDK,dsdk-facet-rsand siglet.What we do instead
ADR-089 (proposed, merged with #1058): no rewrite; the three Java apps shrink to 1 vCPU and 2 GiB between them, with
-XX:MaxRAMPercentage=50so the heap ceiling stays. Where upstream ships a Rust component, we take it.Where Rust could still win
Open questions
All reactions