3 ms·
We've actually implemented automatic DNS search withing 0MQ itself. You can then use it like this: zmq_connect (s, "dns://myservice.example.org"); If people a
by rumcajz 15y ago
We've actually implemented automatic DNS search withing 0MQ itself. You can then use it like this:
zmq_connect (s, "dns://myservice.example.org");
If people are interested in that, we can upload it to github.
- rumcajz 15y agoIt seems to be available already. Check it out here: https://github.com/mato/libzmq/tree/dns https://github.com/mato/libzmq/tree/dns Thanks to VMware for sponsoring the feature!
- Loic 15y agoVery nice, it is by the way using a TXT record to store the information. As pointed out before, an SRV record could be better (but only for udp/tcp for the transport mechanism). https://github.com/mato/libzmq/commit/d2782c7b1c401037718eaf5589ceb9548a82a2bc#L7R315 https://github.com/mato/libzmq/commit/d2782c7b1c401037718eaf...
- mato 15y agoYes, it's using a TXT record precisely so that we can store any endpoint URL. An alternative using SRV records could of course be easily implemented. The implementation is very much a 1st cut at the moment (no real error handling, no load balancing of multiple records, and the integration of dns.c needs work) and has not been officially announced, will do so on the zeromq-dev list shortly.