Skip to content

claudiunicolaa/natsdedup-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Example project for natsdedup Go package

Resources

License

Stars

Watchers

Forks

Languages