提供用于构建 NSQ 客户端、服务器和中间件的工具包。
Go package providing tools for building NSQ clients, servers and middleware.
We ran into production issues with the standard nsq-go package where our workers would enter deadlock situations where they would stop consuming messages and just hang in endless termination loops. After digging through the code and trying to figure out how to address the problem it became clear that a rewrite was going to be faster than dealing with the amount of state synchronization that was done in nsq-go (multiple mutexes, channels and atomic variables involved).
This package is designed to offer less features than the standard nsq-go package and instead focus on simplicity and ease of maintenance and integration.
……Unit tests expect Consul and a set of NSQ daemons to be running. Start them using Docker Compose, and then run unit tests.
docker compose up -d
go test -v -race ./...
docker compose down暂无开放 Issues,或尚未同步最近议题。