The
Java JNats Client repo is a great place to start. At the top of the page are several links to examples:
NATS by Example is a great place to start, it has many basic examples in multiple languages and provides a great way to jump in and learn fundamental NATS usage, like publishing and subscribing.
The examples directory in the JNats GitHub repo has many examples and covers more than just basic use of the client, including many examples where a stream is created and several varieties of publishing and subscribing.
The Java Nats Examples GitHub repo has a collection of more in depth use case examples.
Also check out the
latest Java API docs.
Another resource is of course the
official NATS documentation
And last but not least, please join our public
Slack