The current implementation of ReadTopic and WriteTopic uses Consumer::from_hosts and Producer::from_hosts. These creates individual Clients for each one of them, which ends up duplicating resources and making schema registration more challenging, since a client is required (see #39). This issue is to refactor the code to use from_client instead. The new method should probably receive a client, which can be shared.
I think the client should probably be part of the Domain, which is supposes to host shareable resources.
The current implementation of
ReadTopicandWriteTopicusesConsumer::from_hostsandProducer::from_hosts. These creates individualClientsfor each one of them, which ends up duplicating resources and making schema registration more challenging, since a client is required (see #39). This issue is to refactor the code to usefrom_clientinstead. Thenewmethod should probably receive aclient, which can be shared.I think the client should probably be part of the
Domain, which is supposes to host shareable resources.