2 hours ago · Tech · 0 comments

I have been writing more and more Hare over the past year and finding places where the ecosystem still has gaps worth filling. One of those gaps is messaging. NATS is my go-to for lightweight pub/sub and I have used it in production across a handful of projects, so building a native Hare client felt like a natural next step. hare-nats is the result of that effort. It implements the core NATS client protocol with support for publishing, subscribing, and multiple authentication methods. It is built on top of hare-ev for async I/O and hare-json for encoding and decoding the INFO and CONNECT protocol messages. Features The client supports the basics you need to start working with NATS: Publish and Subscribe with wildcard subject matching Token authentication Username/password authentication NKey authentication with Ed25519 signing using the stdlib's crypto::ed25519 Proper error classification of server errors (fatal vs non-fatal) Async I/O via hare-ev with prioritized write queues…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.