Client Setup
Before an application creates a producer/consumer, the client library needs to initiate a setup phase including two steps:
- The client attempts to determine the owner of the topic by sending a Lookup request to Broker.
- Once the client library has the broker address, it creates a RPC connection (or reuses an existing connection from the pool) and (in later stage authenticates it ).
- Within this connection, the clients (producer, consumer) and brokers exchange RPC commands. At this point, the client sends a command to create producer/consumer to the broker, which will comply after doing some validation checks.
Refer to the Documentation
For more details on how to use the library, including available methods and configuration options, refer to the docs.rs documentation.