# NATS ## Neural Autonomic Transport System <div style="position: relative; padding-bottom: 56.25%; height: 0;"><iframe src="https://www.loom.com/embed/dc2b938b0a504bd7945e8928ee4485c1?sid=0608d27c-1fe1-41d5-9cb4-cd619a0f7dc6" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;"></iframe></div> ### Docs https://docs.nats.io/ # Install Server mac: $ brew install nats-server windows: $ choco install nats-server linux $ curl -L https://github.com/nats-io/nats-server/releases/download/v2.10.12/nats-server-v2.10.12-linux-amd64.zip -o nats-server.zip proceed here: https://docs.nats.io/nats-concepts/what-is-nats/walkthrough_setup#downloading-a-release-build # Install Client mac: $ brew tap nats-io/nats-tools $ brew install nats-io/nats-tools/nats linux: $ curl -sf https://binaries.nats.dev/nats-io/natscli/nats@latest | sh $ sudo cp nats /usr/bin Windows: $ go install github.com/nats-io/natscli/nats@latest or download at https://github.com/nats-io/natscli/releases # Start Server $ nats-server -V ## with [Jetstream](https://docs.nats.io/nats-concepts/jetstream/js_walkthrough) (and logging) $ nats-server -js -V -l logfile.log # Subscribe $ nats subscribe ">" -s nats://0.0.0.0:4222 # Publish $ nats pub intros "hey its working" -s nats://0.0.0.0:4222 ## Server Config File ``` listen: 0.0.0.0:4222 jetstream { store_dir: "./nats" max_memory_store: 1073741824 max_file_store: 10737418240 } ``` $ nats-server -c server.conf To reload: $ nats-server --signal reload # Python with NATS [Basic Chat](https://gist.github.com/lizTheDeveloper/f24f5145418c36501de331e08b5529d7) [Client with Message Replay](https://gist.github.com/lizTheDeveloper/5c4530df84edeb6c9adc8bbeb9e62401) [Paper Downloader](https://gist.github.com/lizTheDeveloper/d4959844ca032ab7a4f808aa86392eea)
×
Sign in
Email
Password
Forgot password
or
Sign in via Google
Sign in via Facebook
Sign in via X(Twitter)
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
Continue with a different method
New to HackMD?
Sign up
By signing in, you agree to our
terms of service
.