Skip to content
This repository was archived by the owner on Nov 24, 2020. It is now read-only.

Latest commit

 

History

History
16 lines (14 loc) · 794 Bytes

MIGRATION.md

File metadata and controls

16 lines (14 loc) · 794 Bytes

Migration from messaging-lib to php-kafka-lib

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:

  1. composer remove jobcloud/messaging-lib
  2. composer require jobcloud/php-kafka-lib ~0.1
  3. Replace namespace Jobcloud\Messaging\Kafka with Jobcloud\Kafka
  4. Replace the following:
  • ConsumerException with KafkaConsumerConsumeException
  • MessageInterface with KafkaMessageInterface or depending on your use case with KafkaConsumerMessageInterface and KafkaProducerMessageInterface
  • ProducerInterface with KafkaProducerInterface
  • ConsumerInterface with KafkaConsumerInterface
  • ProducerPool is not supported anymore