Migration from messaging-lib to php-kafka-lib
April 16, 2020 ยท View on GitHub
Internally not much has changed, we have mostly gotten rid of,
the general interfaces, since we won't implement support for other
messaging systems than Kafka.
In most cases you can just:
composer remove jobcloud/messaging-libcomposer require jobcloud/php-kafka-lib ~0.1- Replace namespace
Jobcloud\Messaging\KafkawithJobcloud\Kafka - Replace the following:
ConsumerExceptionwithKafkaConsumerConsumeExceptionMessageInterfacewithKafkaMessageInterfaceor depending on your use case withKafkaConsumerMessageInterfaceandKafkaProducerMessageInterfaceProducerInterfacewithKafkaProducerInterfaceConsumerInterfacewithKafkaConsumerInterfaceProducerPoolis not supported anymore