NATS is a simple, secure and performant communications system for digital systems, services and devices. NATS is part of the Cloud Native Computing Foundation (CNCF). NATS has over 40 client language implementations, and its server can run on-premise, in the cloud, at the edge, and even on a Raspberry Pi. NATS can secure and simplify design and operation of modern distributed systems.
Rust may be one the most interesting new languages. More and more backend service builded with Rust. on the other hand, the Nats discovery feature is not released now, so I develop the discovery service based on Nats for Rust developer.
Rust: 1.6.0 Nats: 0.20.0
We can launch a Nats server with docker comand, We can follow the Link to config and launch a simple sever.
cargo run
We can mock a registry node with rust test, so just run the command as follow:
cargo test
and then, we can see the node registry log in discovery service output.