Skip to content

opening Publishers via lookupd? #4

@silmeth

Description

@silmeth

Is there any plan to implement features similar to those of Subscriber for a publishing client, ie. make something Publisher-like that would be able to connect via lookup, allow automatic reconnects, etc.?

As I understand the documentation, at the moment if I want to have a program both publishing on some topics and listening on others, then on one hand I need to create a Subscriber which will manage connections to nsqd instances automatically via provided lookup addresses (via a list of NsqLookupDHTTPClient instances), but on the other hand I need to open my own separate list of lookup clients to discover instances for publishing and manage those connections myself?

That sounds like a lot of unnecessary code duplication to manage the lookup logic, is there a deeper reason for not factoring the lookup logic out of Subscriber and sharing it between subscriptions and publishers? Or perhaps just making Subscriber able to spawn both Subscriptions and Publishers?

I’m not that well familiar with NSQ so I hope what I wrote above makes sense.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions