Skip to content

Instantly share code, notes, and snippets.

@ripienaar
Last active March 23, 2020 13:09
Show Gist options
  • Save ripienaar/d70030c9bca82b1e4f64e5f99e69f303 to your computer and use it in GitHub Desktop.
Save ripienaar/d70030c9bca82b1e4f64e5f99e69f303 to your computer and use it in GitHub Desktop.
Ampere binaries @ https://send.firefox.com/download/727c5c76e6b13ea4/#LxRAEKz_UBMQsJ1biy08fw
nats-server -js
nats str add ORDERS --config ORDERS.json
nats bench --msgs 1000000 --size 2000 --pub 10 ORDERS.bench # try various sizes from 128 upward
{
"name": "ORDERS",
"subjects": [
"ORDERS.*"
],
"retention": "limits",
"max_consumers": -1,
"max_msgs": -1,
"max_bytes": -1,
"max_age": 31536000000000000,
"max_msg_size": -1,
"storage": "file",
"num_replicas": 1
}
@derekcollison
Copy link

Right now you will probably get best performance with pubs of 1 or 2, that is the contention issue I was mentioning that I will go back and address soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment