Giter Site home page Giter Site logo

uvnsq's People

Contributors

wlgq2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

uvnsq's Issues

uvnsq API

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 ?

hostname resolution

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?

Error when compiling with uv-cpp 1.4.5

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.

Timestamp decoding

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.