This project is not covered by Drupal’s security advisory policy.
The Event Dispatcher provides all Drupal dispatch events, This module also allows to publish Topic and Drupal events(Like kernel, entity insert etc) as a message on
Kafka About Kafka . In short this module allow to publish possible events on kaka.
Apache Kafka is an open-source stream-processing software platform which is used to handle the real-time data storage. It works as a broker between two parties, i.e., a sender and a receiver. It can handle about trillions of data events in a day.
On any action(page load, entity insert) on Drupal site, different events are dispatch, this events are publish on Kafka.
To configure Event Dispatcher Kafka Go to => Admin Panel => Configuration => System and click on "Event dispatcher Kafka Configuration" Menu link and fill and enter the configuration form.
Module support/Requirement:
PHP 5.6 and above, libkafka v0.11.0, php extension rdkafka-3.0.3
If there are some other requirements of events, In that case use the following code after enabling event dispatcher module and achieve the requirement as per need.
class ModuleNameServiceProvider extends ServiceProviderBase {
public function alter(ContainerBuilder $container) {
$container = $container->getDefinition('service_name');
$container->setClass("Path of class");
}
}
Also add this method in a that overwritten class
public function send($event_name, $event) {}
Installation:
By composer
composer require 'drupal/event_dispatchers:1.0.x-dev'
drush en event_dispatcher && drush en event_dispatcher_kafka
| Attachment | Size |
|---|---|
| event_dispatcher_kafka.png | 441.13 KB |
Project information
- Project categories: Site structure
- Created by chandravilas on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.



