Skip to content

Extract DataStreamSpec and move configs to separate structs#12

Draft
realglebivanov wants to merge 5 commits intoecomtech-oss:mainfrom
realglebivanov:scoped_config
Draft

Extract DataStreamSpec and move configs to separate structs#12
realglebivanov wants to merge 5 commits intoecomtech-oss:mainfrom
realglebivanov:scoped_config

Conversation

@realglebivanov
Copy link

No description provided.

@realglebivanov realglebivanov marked this pull request as draft December 24, 2025 14:20
@realglebivanov realglebivanov force-pushed the scoped_config branch 3 times, most recently from 9aa3db7 to 95df513 Compare December 25, 2025 18:46
Accumulator,
Accumulator.State,
MessageObject,
PipelineUnit,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is it called PipelineUnit?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I named it PipelineUnit because this struct represents the unit of work that drives a single batching pipeline - it bundles together all of the configs relevant for one topic/partition pipeline (collector, accumulator config, producer config, etc.).
It’s meant to be the single coherent entity that the supervisor and worker processes use to start and configure all the pieces involved in a pipeline.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest calling the ConfigEntity or maybe ConfigUnit, if the entity is intended for config storage

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found options like DataFlowSpec, StreamConfig, DataStreamSpec
What's your opinion?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think, DataStreamSpec is sound more relevant for this entity.

@realglebivanov realglebivanov changed the title Extract PipelineUnit and move configs to separated structs Extract PipelineUnit and move configs to separate structs Dec 26, 2025
@realglebivanov realglebivanov changed the title Extract PipelineUnit and move configs to separate structs Extract DataStreamSpec and move configs to separate structs Dec 30, 2025
@realglebivanov
Copy link
Author

@romul Please, have a look at this draft

max_batch_bytesize: config.max_batch_bytesize,
max_accumulator_restarts: config.max_accumulator_restarts,
accumulator_mod: config.accumulator_mod
]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could be just config |> Enum.into([])

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.

3 participants