Event streaming

Event streaming refers to sending event details to a streaming platform when:

  • A new block is added to the blockchain.
  • Logs are included in new blocks.
  • A transaction event occurs. For example pending or dropped transactions.
  • Synchronization is in progress.

The Hyperledger Besu documentation describes the event subscriptions available with the eth_subscribe API.

PegaSys Plus provides a plugin to stream events to Apache Kafka.

To configure event streams enable the plugin and set the required options from the command line. Events are streamed from the plugin to the configured message broker in serialized JSON format.