natsdedup-example

command module
v0.0.0-...-95f5069 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2024 License: MIT Imports: 6 Imported by: 0

README

natsdedup example project

This project is an example application that uses the natsdedup Go package from claudiunicolaa.

This example Go app demonstrates NATS server usage with deduplication. It connects to a NATS server, initializes a deduplicator for message processing, and creates a list of data items. It then publishes these items to a NATS subject, while a separate goroutine subscribes to another subject to receive and store these items. In the end, ensures items are not duplicated during transmission, checking that all sent items are correctly received without loss or duplication.

How to run

Prerequisites:

  • docker
  • docker-compose
  • go

Start a nats server

docker-compose up -d

Start example app

go run main.go

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL