Repository navigation
Add KafkaDriver for Apache Kafka through ext-rdkafka - #155
Merged
Merged
Conversation
This was referenced Oct 22, 2026
tomaj
force-pushed
the
feat/kafka-driver
branch
2 times, most recently
from
October 23, 2026 11:27
2d4a201 to
f04443c
Compare
send() produces to one topic keyed by the message id and waits for the confirmation; wait() consumes in a consumer group and commits the offset after the handler, so delivery is at least once. A message that cannot be unserialized is committed and reported so it cannot block its partition. No priorities and no delay, like RabbitMQ and SQS. ext-rdkafka is a suggest. Integration tests run against Kafka 4.3.1 (compose.yaml, HERMES_TEST_KAFKA). Docs page with diagrams and FAQ, examples/kafka with an e2e check. Closes #14
Coverage Report for CI Build 39961269442Coverage increased (+0.08%) to 98.78%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
tomaj
force-pushed
the
feat/kafka-driver
branch
from
October 23, 2026 13:19
e5ce45f to
f90b28b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #14
Summary
Adds
KafkaDriverfor Apache Kafka throughext-rdkafka6 (Composersuggest).send()produces to one topic keyed by the message id and waits for confirmation;wait()consumes in a consumer group and commits the offset only after the handler, so delivery is at least once. A payload that cannot be unserialized is committed and reported so it cannot block a partition. No priorities and no delay (same shape as RabbitMQ and SQS).Review (merge-ready)
setupPriorityQueue()→NotSupportedException(message aligned with SQS/Rabbit… now);send()/wait()ignore priority args (documented in Limits).KafkaDriver.php+KafkaDriverException.php: 51/51 killed, Covered MSI 100%.examples/kafka1:1 includingbin/shutdown.php+ SharedFileShutdown.<tomasmajer@gmail.com>.CI workflows — paste again (required)
The bot cannot push
.github/workflows/*(GitHub OAuth lacksworkflowscope). You already pasted them once (e5ce45f); a later force-push of the review fixes dropped that commit. Please paste the two files below again (same content as before)..github/workflows/ci.ymlkafkaservice,rdkafka,HERMES_TEST_KAFKA, Require ext-rdkafka.github/workflows/examples.ymlfilesystemin matrix + dedicatedkafkajobUntil then PHP 8.4 coverage stays red (~Kafka unit tests skip without rdkafka).
1. Replace
.github/workflows/ci.ymlentirely2. Replace
.github/workflows/examples.ymlentirelyAdds
filesystemto the recipes matrix and a dedicatedkafkajob (ext-rdkafka+ Kafka 4.3.1 service,KAFKA_BROKERS).After paste