We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 993e9b9 commit 38abb60Copy full SHA for 38abb60
1 file changed
README.md
@@ -52,6 +52,9 @@ $message = KafkaProducerMessage::create('test-topic', 0)
52
->withHeaders([ 'key' => 'value' ]);
53
54
$producer->produce($message);
55
+
56
+// Shutdown producer, flush messages that are in queue. Give up after 20s
57
+$result = $producer->flush(20000);
58
```
59
##### Avro Producer
60
To create an avro prodcuer add the avro encoder.
@@ -111,6 +114,9 @@ $message = KafkaProducerMessage::create('test-topic', 0)
111
114
112
115
113
116
117
118
119
120
121
122
**NOTE:** To improve producer latency you can install the `pcntl` extension.
0 commit comments