# Producer

- Async producer.
- Explicit partition or automatic partition selection.
- Keyed records.
- Headers.
- Tombstones.
- Explicit timestamps.
- Compression.
- Flush.
- Shutdown.
- Transactions.
- `send_offsets_to_transaction`.

```rust
use kafkit_client::{KafkaProducer, ProduceRecord, ProducerConfig};

# async fn example() -> kafkit_client::Result<()> {
let producer = KafkaProducer::connect(ProducerConfig::new("localhost:9092")).await?;
producer.send(ProduceRecord::new("orders", 0, "created")).await?;
producer.flush().await?;
producer.shutdown().await?;
# Ok(())
# }
```

