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

Drop KPL / Sink a chunk rather than individual event #630

Merged
merged 3 commits into from
Jun 27, 2022

Conversation

benjben
Copy link
Contributor

@benjben benjben commented Jun 17, 2022

Context

enrich-kinesis is the replacement for stream-enrich-kinesis.

common-fs2 (also used by enrich-pubsub) contains all the logic, apart from the sourcing and sinking.

Changes

This PR aims at changing the way we send records to Kinesis (more details on #633), to use the same mechanism as stream-enrich and manually build PutRecords requests instead of having KPL doing it for us.

The main consequence is that now the sinking functions (contained in the Environment) are defined for a chunk whereas before it was defined for individual records.

What's important to have in mind is that a PutRecords request can be successful but contain failures that need to be retried.

So there are 2 types of retries:

@benjben benjben marked this pull request as draft June 17, 2022 10:16
Copy link
Contributor

@istreeter istreeter left a comment

Choose a reason for hiding this comment

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

I only reviewed common fs2, like you said. Looking good though!

@benjben benjben force-pushed the fix/kinesis_throughput branch from ea75276 to 572adf1 Compare June 22, 2022 12:50
@benjben benjben marked this pull request as ready for review June 23, 2022 08:05
@benjben benjben force-pushed the fix/kinesis_throughput branch from 5a64e5e to 3bd4de8 Compare June 23, 2022 08:06
@benjben benjben changed the title [WIP] Drop KPL / Sink a chunk rather than individual event Drop KPL / Sink a chunk rather than individual event Jun 23, 2022
@istreeter istreeter self-requested a review June 24, 2022 09:49
@benjben benjben force-pushed the fix/kinesis_throughput branch from bc60ca4 to 36ef929 Compare June 24, 2022 14:24
@benjben benjben force-pushed the fix/kinesis_throughput branch from 36ef929 to aa0d741 Compare June 27, 2022 14:59
@benjben benjben merged commit 2b43431 into develop Jun 27, 2022
@benjben benjben deleted the fix/kinesis_throughput branch June 27, 2022 14:59
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