> For the complete documentation index, see [llms.txt](https://pox-chain.gitbook.io/doc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pox-chain.gitbook.io/doc/build-node/event-subscription/event-plugin-deployment-kafka.md).

# Event Plugin Deployment (Kafka)

This page gives the instructions for deploying the Kafka Event Subscription plugin. Content contains: plugin compilation, Kafka deployment and event subscription examples.

## Recommended Configuration

* CPU/ RAM: 16Core / 32G
* DISK: 500G+
* System: Ubuntu / CentOS 64

\
1\. Compile Kafka event plugin
------------------------------

```java
git clone https://github.com/polluxprotocol/event-plugin.git
cd event-plugin
./gradlew build
```

You can find plugin-kafka-1.0.0.zip in the event-plugin/build/plugins/ directory after compilation

## 2. Deploy Kafka

### &#x20;Install Kafka

*Linux:*

```
cd /usr/local
wget https://downloads.apache.org/kafka/2.8.0/kafka_2.13-2.8.0.tgz
$ tar -xzf kafka_2.13-2.8.0.tgz
```

### Start Kafka

*Linux:*

```
cd /usr/local/kafka_2.13-2.8.0
// start the ZooKeeper service
$ bin/zookeeper-server-start.sh config/zookeeper.properties &
// start the Kafka broker service
$ bin/kafka-server-start.sh config/server.properties &
```

## 3. Event Subscription
