Service discovery
Last updated
Service discovery is the process by which devices on a network find out what services are available and how to reach them, without being told in advance. Instead of hardcoding addresses, a device advertises the capabilities it offers and queries for the capabilities it needs. In an offline mesh, service discovery works with no central registry, so devices can find and invoke each other’s services with no server in the loop.
How it works
On the internet, service discovery usually means asking a central directory: DNS, a service registry, or an API gateway that knows where everything lives. That directory is a dependency, and when it is unreachable, discovery stops.
Serverless, offline service discovery removes the directory. Each device announces the services it provides directly to its neighbors, and those announcements propagate across the mesh. A device that needs a capability queries the mesh, learns which peers offer it, and invokes the one it chooses. Because the mesh relays announcements and requests, a service can be discovered and called even several hops away.
The result is a network of capabilities rather than a flat set of connections: devices expose functions, and other devices call them, all without prearranged addresses.
Why it matters
Service discovery turns a mesh from a message pipe into an invocable platform. Applications can locate the nearest device that can perform a task, such as a device with a sensor, a printer, a relay to the internet, or a payment capability, and use it dynamically as devices come and go.
Doing this offline matters because it keeps coordination working when infrastructure is down. Devices still find and use each other’s services in a blackout, underground, or a saturated venue.
How it relates to Offline Protocol
Offline Protocol provides serverless Service Discovery over its mesh. Devices advertise capabilities and discover and invoke peers’ services with no central registry, so an app can find the right device across the mesh and call it directly. Discovery and invocation ride the same encrypted, multi-hop transport as messages.
See Service Discovery for the capability model in depth, and peer-to-peer mesh networking for the transport it runs on.
Frequently asked questions
What is service discovery in networking?
It is how devices learn what services exist on a network and how to reach them without hardcoded addresses. Devices advertise the capabilities they offer and query for the ones they need.
How does service discovery work without a server?
Each device advertises its services directly to neighbors, announcements propagate across the mesh, and a device queries the mesh to find and invoke a capability. There is no central registry, so it works fully offline.
What can you do with offline service discovery?
Applications can locate and invoke the nearest device that offers a needed capability, such as a sensor, a relay to the internet, or another service, and adapt as devices join and leave, all without connectivity.

