Skip to content

functions: single event handlers are no longer necessary when batching #1734

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

Merged
merged 1 commit into from
Jul 14, 2021

Conversation

chriso
Copy link
Contributor

@chriso chriso commented Jul 14, 2021

Proposed changes

I removed a section from the functions doc that's no longer applicable. Previously we would require that customers write both a batch handler and single event handlers when batching, in case our system wasn't able to form a batch with more than one event.

This is no longer necessary. When batching, centrifuge will invoke the batch handler even if there's only one event in the batch (https://github.com/segmentio/centrifuge/pull/1803).

Merge timing

ASAP once approved.

@netlify
Copy link

netlify bot commented Jul 14, 2021

✔️ Deploy Preview for segment-docs ready!

🔨 Explore the source changes: 8221917

🔍 Inspect the deploy log: https://app.netlify.com/sites/segment-docs/deploys/60ee3d80690826000776710b

😎 Browse the preview: https://deploy-preview-1734--segment-docs.netlify.app

@chriso chriso marked this pull request as ready for review July 14, 2021 02:30
Copy link

@achille-roussel achille-roussel left a comment

Choose a reason for hiding this comment

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

🙌

@markzegarelli markzegarelli merged commit 41c0bc1 into master Jul 14, 2021
@markzegarelli markzegarelli deleted the functions-single-event-handlers branch July 14, 2021 16:11
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