ExMCP.ServiceRegistry.Horde (ex_mcp v0.9.0)

View Source

Distributed service registry adapter using Horde.

Enables service discovery across multiple BEAM nodes via Horde's CRDT-based gossip protocol.

Setup

Add Horde to your dependencies:

# mix.exs
defp deps do
  [
    {:horde, "~> 0.9"}
  ]
end

Then configure ExMCP to use this adapter:

# config/config.exs
config :ex_mcp, :service_registry, ExMCP.ServiceRegistry.Horde

Summary

Functions

Looks up a service and verifies it is running on the specified node.

Functions

lookup_on_node(name, target_node)

@spec lookup_on_node(atom(), node()) :: {:ok, pid()} | {:error, :not_found}

Looks up a service and verifies it is running on the specified node.

This is useful for cross-node service calls where you need to ensure the service is on a specific node in the cluster.