Step by step NATS implementation in golang
This repository contains golang source code for all the samples for nats implementation as presented on Go Israel Meetup at JFrog TLV
-
samples folder (follow the presentation for instructions how to run each step) :
- pub-sub - Step by step implemntatiom for NATS (https://nats.io/) pub/sub using golang
- chat - Mini console based chat using NATS pub/sub
- req-resp - Step by step implemntatiom for NATS requset/reply in go
- smesh - Implementation of a mini service mesh NATS requset/reply pattern.
-
raffle - A small raffle console tool that was used in the meetup
-
benchmark-grpc-protobuf-vs-http-json - Benchmark comparison tool between
- http/grpc (https://github.com/plutov/benchmark-grpc-protobuf-vs-http-json clone tweaked to allow concurrent http/grpc clients) and a request-reply pattern as coded in req-resp
Presntation link:
Go NATS - The presentation also includes much of code built step by step, and instructions how to run each step(s).
Requirements
Go 1.14 or later version
NATS server running on your local machine, easiest way to run it:
$ docker pull nats
$ docker run --name nats --network nats --rm -p 4222:4222 -p 8222:8222 nats --http_port 8222