Skip to content

Latest commit

 

History

History
84 lines (66 loc) · 4.4 KB

README.md

File metadata and controls

84 lines (66 loc) · 4.4 KB

NATS

Nats .NET Client Samples

This folder contains a number of samples:

Core Nats

  1. Publish - A sample publisher.
  2. QueueGroup - An example queue group subscriber.
  3. Requestor - A requestor sample.
  4. Replier - A sample replier for the Requestor application.
  5. RxSample - Rx integration / functionality
  6. Subscribe - A sample subscriber.
  7. WinFormsSample
  8. TlsVariationsExample
  9. JetStreamStarter - A starter app for JetStream projects.

Simplification

Examples show the simplification JetStream stream and consume api.

  1. SimplificationContext - Examples on how to get simplification stream and consumer contexts.
  2. SimplificationFetchBytes - How to fetch with byte limits.
  3. SimplificationFetchMessages - How to fetch with message limits.
  4. SimplificationIterableConsumer - How to endlessly consume with an iteration pattern.
  5. SimplificationMessageConsumer - How to endless consume with an Event Handler
  6. SimplificationNext - How to consume one message at a time.

JetStream

  1. JetStreamPublish - publish JetStream messages
  2. JetStreamPublishAsync - publish JetStream messages asynchronously
  3. JetStreamPublishVsCorePublish - publish JetStream messages versus core publish to the same stream.
  4. JetStreamPublishWithOptionsUseCases - publish JetStream with examples on using publish options
  5. JetStreamPullSubBatchSize - pull subscription example specifying batch size and manual handling
  6. JetStreamPullSubBatchSizeUseCases - pull subscription example specifying batch size with examples of manual handling various cases of available messages
  7. JetStreamPullSubExpiresIn - pull subscription example specifying expiration and manual handling
  8. JetStreamPullSubExpiresInUseCases - pull subscription example specifying expiration with examples of manual handling various cases of available messages
  9. JetStreamPullSubFetch - pull subscription example using fetch list macro function
  10. JetStreamPullSubFetchUseCases - pull subscription example using fetch list macro function with examples of various cases of available messages
  11. JetStreamPullSubIterate - pull subscription example using iterate macro function
  12. JetStreamPullSubIterateUseCases - pull subscription example using iterate macro function with examples of various cases of available messages
  13. JetStreamPullSubNoWaitUseCases - pull subscription example specifying no wait with examples of manual handling various cases of available messages
  14. JetStreamPushSubscribeBasicAsync - push subscribing to read messages asynchronously and manually acknowledge messages.
  15. JetStreamPushSubscribeBasicSync - push subscribing to read messages synchronously and manually acknowledges messages.
  16. JetStreamPushSubscribeBindDurable - push subscribing with the bind options
  17. JetStreamPushSubscribeDeliverSubject - push subscribing with a deliver subject and how the subject can be read as a regular Nats Message
  18. JetStreamPushSubscribeFilterSubject - push subscribing with a filter on the subjects.
  19. JetStreamPushSubscribeQueueDurable - push subscribing to read messages in a load balance queue using a durable consumer.

JetStream Management / Admin

  1. JetStreamManageConsumers - demonstrate the management of consumers
  2. JetStreamManageStreams - demonstrate the management of streams

Key Value

  1. KeyValueFull - complete example showing aspects of KV operation

Service Framework

  1. ServiceExample - complete example showing service running and discovery

Miscellany

The miscellany is just a general purpose project with other examples

  1. NatsByExample - copies of projects put into the NatsByExample website
    • KvIntro - introduction to Key Value
    • PubSub - basic publish subscribe
    • RequestReply - basic request reply
  2. ScatterGather - one publish many replies.
  3. ServiceCrossClientValidator - a testing program to validate the service api

Sample Support

  1. ExampleArgs - Helper to manage command line arguments.
  2. ExampleAuthHandler - Example of an auth handler.
  3. ExampleUtils - Miscellaneous utils used to start or in running examples.
  4. JetStreamExampleUtils - Miscellaneous utils specific to JetStream examples.

Example Ideas

  1. JetStreamPushSubscribeFlowControl
  2. JetStreamPushSubscribeHeartbeat
  3. JetStreamMirrorSubUseCases
  4. JetStreamPrefix