Skip to content

Latest commit

 

History

History
16 lines (14 loc) · 861 Bytes

MIGRATION.md

File metadata and controls

16 lines (14 loc) · 861 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 (after migration, consider switching to the most current release)
  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