wlgq2 / uvnsq Goto Github PK
View Code? Open in Web Editor NEWAsync C++ client library for NSQ
License: Mozilla Public License 2.0
Async C++ client library for NSQ
License: Mozilla Public License 2.0
First of all many thanks for you work!
I've been trying to hack around uvnsq
and would like to share some feedback.
First of all NsqConsumer
API might need some restructuring as according to nsq docs:
A consumer subscribes to a topic on a channel over a TCP connection to nsqd instance(s). You can only subscribe to one topic per connection so multiple topic consumption needs to be structured accordingly.
Real life usage is similar - one NSQ topic, but many nsqd connections. So I'm wondering if appendSub
method can add new nsqd connection rather than topic ?
When playing locally and subscribing to nsqd running on localhost, the name localhost
resolves successfully and consumer can connect. However when I've tested with docker-compose names of the services are not resolved (however connecting using IP works).
I there a way uvnsq can work with hostnames? or only IPs are supported?
Trying to compile latest version.
I'm getting:
uvnsq/NsqLookupd.cpp:64:21: error: non-const lvalue reference to type 'uv::SocketAddr' cannot bind to a temporary of type 'uv::SocketAddr'
client->Req((uv::SocketAddr)addr, req);
Seems related to HttpClient.cpp#L41.
Changing signature to Req(uv::SocketAddr addr, Request& req)
solves the problem.
Would be nice to add to the README.md a version number of uv-cpp which works with uvnsq.
It seems there is some bug when decoding timestamps. I'm getting nanoseconds close to 2**64( I've just added message.Timestamp()
print to the example):
18446744073709534504
18446744073126297668
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.