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

node-support: event-export-sidecar: create event export sidecar #858

Merged
merged 2 commits into from
Dec 12, 2024

Conversation

akirillo
Copy link
Contributor

@akirillo akirillo commented Dec 12, 2024

This PR adds a new node-support daemon responsible for re-exporting events from the relayer to the historical state engine. It establishes the Unix socket the relayer exports events to, listens for events on this socket, and submits them to the HSE.

As a part of these changes, I swapped the Multiaddr event_export_addr config option for a Url-based one. This was due to parsing issues with Unix multiaddrs - it interprets / as a protocol delimiter so only sibling paths could be used for a socket. URLs capture the same flexibility that we need between HTTP and Unix addresses with better parsing.

Testing:
I tested this with a local relayer / sidecar / HSE / DB with the following flow: create wallet, deposit, place order, match, withdraw (and on one of the wallets, cancel order).

@akirillo akirillo force-pushed the andrew/event-export branch from b6c181c to 9cdcc7f Compare December 12, 2024 18:20
Base automatically changed from andrew/event-export to andrew/event-ingestion December 12, 2024 18:20
@akirillo akirillo force-pushed the andrew/event-ingestion branch from 7fea938 to a7249d0 Compare December 12, 2024 18:41
Base automatically changed from andrew/event-ingestion to andrew/event-manager-phase-1 December 12, 2024 18:42
@akirillo akirillo force-pushed the andrew/event-export-sidecar branch from df29dba to c61118c Compare December 12, 2024 18:43
@akirillo akirillo requested a review from joeykraut December 12, 2024 18:58
@akirillo akirillo self-assigned this Dec 12, 2024
@akirillo akirillo added the enhancement New feature or request label Dec 12, 2024
@akirillo akirillo marked this pull request as ready for review December 12, 2024 18:58
@akirillo akirillo force-pushed the andrew/event-export-sidecar branch 2 times, most recently from 6df9c78 to ea0ae46 Compare December 12, 2024 22:28
node-support/bootloader/src/main.rs Outdated Show resolved Hide resolved
node-support/event-export-sidecar/src/hse_client.rs Outdated Show resolved Hide resolved
@akirillo akirillo force-pushed the andrew/event-export-sidecar branch from ea0ae46 to a510475 Compare December 12, 2024 23:40
@akirillo akirillo merged commit 4bff185 into andrew/event-manager-phase-1 Dec 12, 2024
3 of 4 checks passed
@akirillo akirillo deleted the andrew/event-export-sidecar branch December 12, 2024 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants