npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@nanobpm/nano-ide-example-throughput-jvm

v1.0.0

Published

Switchable Java throughput demo for the Nano RAD IDE: same Java source runs against Camunda 8 or Nano — env vars (CAMUNDA_REST_ADDRESS / CAMUNDA_GRPC_ADDRESS / CAMUNDA_PREFER_REST_OVER_GRPC) pick server + REST-vs-gRPC; the -Pfalcon Maven profile swaps the

Readme

Throughput demo — same code, four transports

One Java file, one BPMN, one Maven project. Two knobs:

  • Server switch — set CAMUNDA_REST_ADDRESS / CAMUNDA_GRPC_ADDRESS. No source change, no dependency change. Same jar runs against Camunda 8 or Nano.
  • Transport switch — activate the -Pfalcon Maven profile. Same source, different jar on the classpath. The Falcon fork adds Nano Falcon protocol via auto-detection; against Camunda 8 it behaves identically to the upstream jar.

ThroughputDemo.java uses only io.camunda.client.*. It prints the resolved jar in the report banner, so results are self-documenting.

The four permutations

| Server | SDK jar (Maven profile) | Transport used | |--------|--------------------------------------------------------------|--------------------------------------| | C8 | default (io.camunda:camunda-client-java) | REST or gRPC (CAMUNDA_PREFER_REST_OVER_GRPC) | | Nano | default (io.camunda:camunda-client-java) | REST (no Falcon) | | Nano | -Pfalcon (io.github.jwulf:camunda-client-java-falcon) | Falcon (WebSocket, auto-detected) | | Nano | -Pfalcon + CAMUNDA_FORCE_REST=1 | REST |

Running

Prerequisites: Java 21+, Maven 3.9+, a running Camunda 8 or Nano cluster reachable at the address you configure.

# --- 1. Same jar, change server (no code change) ---

# Against Camunda 8, REST:
CAMUNDA_REST_ADDRESS=http://localhost:8080 \
CAMUNDA_PREFER_REST_OVER_GRPC=true \
  mvn -q -f app/pom.xml exec:java

# Against Camunda 8, gRPC:
CAMUNDA_GRPC_ADDRESS=http://localhost:26500 \
CAMUNDA_PREFER_REST_OVER_GRPC=false \
  mvn -q -f app/pom.xml exec:java

# Against Nano, REST (same jar, just different address):
CAMUNDA_REST_ADDRESS=http://localhost:8080 \
CAMUNDA_PREFER_REST_OVER_GRPC=true \
  mvn -q -f app/pom.xml exec:java

# --- 2. Same code, change transport (dependency change only) ---

# Against Nano, Falcon (drop-in fork of the upstream jar):
CAMUNDA_REST_ADDRESS=http://localhost:8080 \
  mvn -q -Pfalcon -f app/pom.xml exec:java

The banner printed at start shows exactly which jar loaded and which env vars are in effect.

Tuning

| Env var | Default | Meaning | |------------------------|---------|------------------------------------------------------------| | WORKLOAD_DURATION_S | 30 | Length of the measured window. | | WARMUP_S | 5 | Warm-up before measurement (JIT, engine caches). | | WORKLOAD_CONCURRENCY | 32 | Parallel producer threads (each issues create-with-result).| | WORKER_CONCURRENCY | 8 | Job worker threads / max jobs active tuning. |

Anything else the C8 SDK reads (auth, TLS, tenant, keep-alive, timeouts, etc.) works too — the client is built with applyEnvironmentVariableOverrides(true).

What it measures

Each producer thread runs createProcessInstance(...).withResult() in a tight loop for the measured window. The withResult() future completes when the process instance ends, so the recorded latency is the full client → gateway → engine → worker → engine → client round trip. The worker is a no-op (immediate complete) so throughput reflects the transport + engine, not user code.

The report prints:

  • PIs/s — completed instances divided by wall-clock window.
  • p50 / p95 / p99 / p99.9 / max completion latency in ms, via HdrHistogram (fixed memory, no reservoir bias).
  • The client artifact actually loaded, so results are attributable.

What it does NOT do

  • No K8s manifests or GH Actions harness — this is a mvn exec:java demo.
  • No auth wiring beyond what the env vars provide. Use standard C8 env vars for tokens.
  • No historical result storage. Print the console, paste the numbers wherever you want.
  • No JMH; we deliberately drive a real client for a real end-to-end round-trip, not a micro-benchmark.