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

fix(recording-ingester): handle concurrency, retries + incomplete events in the ingester #11022

Merged
merged 1 commit into from
Jul 28, 2022

Conversation

rcmarron
Copy link
Contributor

Problem

Add support for handling:

  • Concurrency
  • Receiving incomplete event batches
  • Retries
  • DLQ
  • And more!

👉 Stay up-to-date with PostHog coding conventions for a smoother review.

How did you test this code?

@rcmarron rcmarron requested a review from hazzadous July 28, 2022 01:34
Copy link
Contributor

@hazzadous hazzadous left a comment

Choose a reason for hiding this comment

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

Lovely, I can't believe you managed to add all that

@rcmarron rcmarron merged commit ca4d80c into session-recordings-ingester Jul 28, 2022
@rcmarron rcmarron deleted the concurrency branch July 28, 2022 16:29
const timeout_ms =
RECORDING_EVENTS_TOPICS_CONFIGS[topic as keyof typeof RECORDING_EVENTS_TOPICS_CONFIGS].timeout
if (timeout_ms !== 0) {
setTimeout(() => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Rather than using setTimeout like this, can we instead pause the specific topic,partition pair as. This means we can still ensure that we process these retries in order.

Something along the lines of https://kafka.js.org/docs/consuming#a-name-pause-resume-a-pause-resume

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