dialogue icon indicating copy to clipboard operation
dialogue copied to clipboard

Feature Request: First class way to open connects to specific hosts of a service

Open leonz opened this issue 4 years ago • 2 comments

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 avatar Jun 30 '20 02:06 leonz

@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?

iamdanfox avatar Jun 30 '20 12:06 iamdanfox

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?

leonz avatar Jul 07 '20 17:07 leonz