Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

publishing blockchain data #176

Open
wants to merge 1 commit into
base: 03-13-return_block_data_when_deleting_it
Choose a base branch
from

Conversation

iuwqyir
Copy link
Collaborator

@iuwqyir iuwqyir commented Mar 13, 2025

TL;DR

Added Kafka publisher functionality to stream blockchain data to external systems.

What changed?

  • Added a new Publisher module that can stream blocks, transactions, traces, and events to Kafka topics
  • Implemented configuration options for the publisher in the root command flags
  • Added serialization methods for blockchain data models
  • Integrated the publisher with the Committer and ReorgHandler to publish data during normal processing and reorgs
  • Added filtering capabilities for transactions and events based on addresses and topics

How to test?

  1. Enable the publisher with the --publisher-enabled flag
  2. Configure Kafka broker(s) with --publisher-brokers
  3. Enable specific data types with their respective flags:
    • --publisher-blocks-enabled
    • --publisher-transactions-enabled
    • --publisher-traces-enabled
    • --publisher-events-enabled
  4. Set topic names and filters as needed
  5. Verify data is being published to the configured Kafka topics

Why make this change?

This change enables real-time streaming of blockchain data to external systems via Kafka, allowing for more flexible data processing pipelines and integration with other applications. The publisher can be used to build real-time analytics, monitoring systems, or to feed data into other databases or processing frameworks.

Copy link
Collaborator Author

iuwqyir commented Mar 13, 2025

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@iuwqyir iuwqyir marked this pull request as ready for review March 13, 2025 23:17
@iuwqyir iuwqyir force-pushed the 03-14-publishing_blockchain_data branch 2 times, most recently from a27e343 to 887e568 Compare March 17, 2025 12:16
@iuwqyir iuwqyir force-pushed the 03-13-return_block_data_when_deleting_it branch from 1f71d1d to 0072cf9 Compare March 17, 2025 12:16
@iuwqyir iuwqyir force-pushed the 03-14-publishing_blockchain_data branch from 887e568 to ecc19c6 Compare March 17, 2025 12:21
@iuwqyir iuwqyir force-pushed the 03-13-return_block_data_when_deleting_it branch from 0072cf9 to edaf37c Compare March 18, 2025 10:15
@iuwqyir iuwqyir force-pushed the 03-14-publishing_blockchain_data branch 3 times, most recently from 8c4c75b to 010ac72 Compare March 18, 2025 12:50
@iuwqyir iuwqyir force-pushed the 03-14-publishing_blockchain_data branch from 010ac72 to 5cb5e17 Compare March 18, 2025 13:07
@iuwqyir iuwqyir force-pushed the 03-14-publishing_blockchain_data branch from 5cb5e17 to dbacf04 Compare March 18, 2025 13:17
@iuwqyir iuwqyir force-pushed the 03-14-publishing_blockchain_data branch from dbacf04 to ceba902 Compare March 18, 2025 13:30
@iuwqyir iuwqyir force-pushed the 03-14-publishing_blockchain_data branch 5 times, most recently from 0175811 to bea3a93 Compare March 18, 2025 22:49
@iuwqyir iuwqyir force-pushed the 03-13-return_block_data_when_deleting_it branch from edaf37c to 5504a56 Compare March 18, 2025 22:49
@iuwqyir iuwqyir force-pushed the 03-14-publishing_blockchain_data branch from bea3a93 to c00c7e7 Compare March 18, 2025 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants