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

Single producer thread event formation #285

Conversation

Modularius
Copy link
Contributor

Summary of changes

The current event-formation component creates a new thread to produce each outgoing message resulting in the overhead associated with thread for each message. In this PR, the component creates a single persistent thread for producing messages to Kafka, and transfers processed traces from the main thread to this thread via a channel.

Instruction for review/testing

Commentary on the new architecture is welcome. Is this a good change?

General code review.

Has been tested on simulated and Kafka data.

@Modularius Modularius requested a review from DanNixon December 5, 2024 14:31
trace-to-events/src/main.rs Outdated Show resolved Hide resolved
trace-to-events/src/main.rs Outdated Show resolved Hide resolved
@Modularius Modularius requested a review from DanNixon December 9, 2024 15:15
@DanNixon DanNixon merged commit 0f6fd91 into STFC-ICD-Research-and-Design:main Dec 9, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants