https://github.com/k-tomaszewski/discovery
WIP: Simple service discovery solution based on IP multicast.
https://github.com/k-tomaszewski/discovery
java java-11 multicast service-discovery udp udp-client udp-server
Last synced: about 1 month ago
JSON representation
WIP: Simple service discovery solution based on IP multicast.
- Host: GitHub
- URL: https://github.com/k-tomaszewski/discovery
- Owner: k-tomaszewski
- License: gpl-3.0
- Created: 2023-04-11T15:11:59.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-22T20:57:29.000Z (almost 2 years ago)
- Last Synced: 2025-01-30T12:14:23.494Z (3 months ago)
- Topics: java, java-11, multicast, service-discovery, udp, udp-client, udp-server
- Language: Java
- Homepage:
- Size: 47.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# The "discovery" project
A simple service discovery solution based on IP multicast with a focus on a local network, IPv6
and cooperation with the Spring Framework.Current status: work in progress.
## Motives
I wanted a simple solution for service discovery in a local network that would work in a spirit
of zero-configuration, without a dedicated server. IP multicast was a natural choice for a communication
channel. Moreover, I wanted to explore the domain of implementing IPv6 multicast in Java 11+,
especially using NIO.## Alternatives
### mdnsjava
https://posicks.github.io/mdnsjava/Described as multicast DNS (mDNS) [RFC 6762] & DNS-Based Service Discovery (DNS-SD) [RFC 6763] in Java.
I've started reading about this solution before inventing my own. However, I found it:
- complicated and hard to integrate on a service side;
- having bugs, including IPv6 support;
- dead, as the last commit was made 6 years ago (it's 2023 now). See: https://github.com/posicks/mdnsjava### Hola
https://github.com/fflewddur/holaDescribed as a minimalist Java implementation of Multicast DNS Service Discovery (mDNS-SD).
The purpose of Hola is to give Java developers a dead-simple API for finding Zeroconf-enabled
services on a local network. It follows RFCs 6762 and 6763 and is compatible with Apple's Bonjour
mDNS-SD implementation.All this sounds promising, but Hola is a work-in-progress and the last commit was 5 years ago (in 2023).
### CU-Zeroconf
https://github.com/faceless2/cu-zeroconfLooks like a response to some problems of mdnsjava. On the other hand the author claims his implementation
is not correct as well and the last commit was 6 years ago (as of 2023).