dialogue
dialogue copied to clipboard
Feature Request: First class way to open connects to specific hosts of a service
Dialogue has some cool utilities and abstractions that make it easy to create and reuse clients per-service, but nothing to help with creating clients if you need to create connections to specific nodes/hosts of a service.
This is a use case that we regularly run into with Cassandra and any services that interact with it at a management level.
@leonz I actually recently added a PerHostClientFactory
so you can turn a list of uris into a list of channels: https://github.com/palantir/dialogue/blob/46dc7d9ce42c8d941a5d1466b2071806f6211589/dialogue-clients/src/main/java/com/palantir/dialogue/clients/DialogueClients.java#L80-L86.
Do you think this could work for your use-case?
Hi Dan,
Thanks for that! Is there a reason that the interface returns a list of channels rather than a map of hosts to channel?