10

I am currently looking into a variety of service discovery protocols available to Java and have come up with a small list:

There's probably more options, if so, I invite you to add tham to the mix.

I would love to get some objective listings of each protocol's pros and cons from people who have used one or many of these. How does implementation of publishing and discovering a service look like, what is the "chattiness" of the protocol, how reliable is it (both - the protocol and the implementations), does it require centralized service directory or is it p2p/decentralized etc.

Which one would you choose to provide seamless automatic discovery of multiple devices/services on the LAN?

Community
  • 1
  • 1
Roland Tepp
  • 8,301
  • 11
  • 55
  • 73

3 Answers3

3

jmdns - the underlying algorithms are much simpler than uPnP. Simplicity counts here.

Thorbjørn Ravn Andersen
  • 73,784
  • 33
  • 194
  • 347
2

Although this is old, I will dovetail into the answer that suggested using ZooKeeper.

Netflix released Curator, a framework and client wrapper around ZooKeeper, which includes (among other recipies) a Service Discovery extension.

GalacticJello
  • 11,235
  • 2
  • 25
  • 35
1

Apache ZooKeeper can be used for service discovery as well

Leen Toelen
  • 389
  • 6
  • 12