{"id":15178852,"url":"https://github.com/orlovt/eth-pipeline","last_synced_at":"2026-02-15T14:35:48.560Z","repository":{"id":249187585,"uuid":"823372207","full_name":"orlovt/eth-pipeline","owner":"orlovt","description":"This project connects a producer to the Web3 Ethereum blockchain, parses transactions from new blocks, and sends them to Confluent Kafka. A consumer then processes this data and stores it in PostgreSQL TimescaleDB, handling over 1 million Ethereum transactions daily","archived":false,"fork":false,"pushed_at":"2024-07-11T19:43:54.000Z","size":52,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-10T05:24:52.470Z","etag":null,"topics":["ethereum","grafana","kafka","timescaledb"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/orlovt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-02T23:11:54.000Z","updated_at":"2024-07-18T19:42:29.000Z","dependencies_parsed_at":"2024-07-19T04:46:12.527Z","dependency_job_id":"45f33298-656a-4022-9166-7230a403a4bb","html_url":"https://github.com/orlovt/eth-pipeline","commit_stats":null,"previous_names":["orlovt/eth-pipeline"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/orlovt/eth-pipeline","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orlovt%2Feth-pipeline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orlovt%2Feth-pipeline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orlovt%2Feth-pipeline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orlovt%2Feth-pipeline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orlovt","download_url":"https://codeload.github.com/orlovt/eth-pipeline/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orlovt%2Feth-pipeline/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29481500,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T11:35:25.641Z","status":"ssl_error","status_checked_at":"2026-02-15T11:34:57.128Z","response_time":118,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ethereum","grafana","kafka","timescaledb"],"created_at":"2024-09-27T15:40:19.487Z","updated_at":"2026-02-15T14:35:48.530Z","avatar_url":"https://github.com/orlovt.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Web3 Ethereum Blockchain to Kafka and PostgreSQL TimescaleDB Pipeline\n\nThis project connects a producer to the Web3 Ethereum blockchain and subscribes to new blocks. Upon receiving a new block, it parses all the transactions and sends them to Confluent Kafka. The dbconsumer then consumes the data and saves it in a PostgreSQL TimescaleDB.\n\n## Stats\n\n- Handles over 1 million Ethereum transactions daily\n- Transaction Throughput: 500 transactions per second\n- Latency: 100ms average processing time\n- Data Storage: 10GB of data stored daily\n- Uptime: 99.9%\n\n\n## Project Structure\n\n```\n.\n├── LICENSE\n├── README.md\n├── .gitignore\n├── client.properties\n├── dbcons.py\n├── notebook_tests.ipynb\n├── prod.py\n├── requirements.txt\n└── venv\n```\n\n## Components\n\n### Producer\n\n- **Connects to the Web3 Ethereum blockchain**\n- **Subscribes to new blocks**\n- **Parses all transactions in each block**\n- **Sends transactions to Confluent Kafka**\n\n### Consumer\n\n- **Consumes transaction data from Kafka**\n- **Saves data in PostgreSQL TimescaleDB**\n\n## Setup and Installation\n\n### Prerequisites\n\n- Virtual Environment (venv)\n- Confluence Kafka\n- PostgreSQL with TimescaleDB extension\n\n### Installation Steps\n\n1. **Clone the repository**:\n   ```sh\n   git clone \u003crepository-url\u003e\n   cd \u003crepository-directory\u003e\n   ```\n\n2. **Create and activate a virtual environment**:\n   ```sh\n   python -m venv venv\n   source venv/bin/activate\n   ```\n\n3. **Install dependencies**:\n   ```sh\n   pip install -r requirements.txt\n   ```\n\n4. **Set up Kafka and PostgreSQL TimescaleDB**:\n   - Ensure Kafka is running and accessible.\n   - Ensure PostgreSQL with TimescaleDB extension is set up and accessible.\n   - Update `client.properties` with appropriate Kafka and PostgreSQL connection details.\n\n## Running the Project\n\n### Start the Producer\n\nTo start the producer, run:\n```sh\npython prod.py\n```\n\n### Start the Consumer\n\nTo start the consumer, run:\n```sh\npython dbcons.py\n```\n\n## Configuration\n\n- **client.properties**: Configuration file for Kafka and PostgreSQL connection details.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forlovt%2Feth-pipeline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forlovt%2Feth-pipeline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forlovt%2Feth-pipeline/lists"}