You signed in with another tab or window. Reload to refr
8000
esh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Currently, webhook source ingest data per row. We have a use case where we generate events on client side, queue it in memory, and after certain thresholds, flush it downstream in a single batched http call. We do this to minimize roundtrip, as each flush can contain up to hundreds of small events.
Describe the solution you'd like
The easiest way I can think of to support this is by using JSONL, where each row is separated by a newline. One way I can think of is to introduce is as a separate connector called webhook_batched:
CREATETABLEwbhtable (
data JSONB
) WITH (
connector ='webhook_batched'
) VALIDATE SECRET test_secret AS secure_compare(
headers->>'x-signature',
encode(hmac(test_secret, data, 'sha1'), 'hex')
);
Describe alternatives you've considered
The alternative is to modify webhook to support multiple rows. But using JSONL will break backwards compatibility, as it's natural for webhook JSON payload to contain newline.
Additional context
If this idea makes sense, I am willing to contribute.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Is your feature request related to a problem? Please describe.
Currently,
webhook
source ingest data per row. We have a use case where we generate events on client side, queue it in memory, and after certain thresholds, flush it downstream in a single batched http call. We do this to minimize roundtrip, as each flush can contain up to hundreds of small events.Describe the solution you'd like
The easiest way I can think of to support this is by using JSONL, where each row is separated by a newline. One way I can think of is to introduce is as a separate connector called
webhook_batched
:Describe alternatives you've considered
The alternative is to modify
webhook
to support multiple rows. But using JSONL will break backwards compatibility, as it's natural for webhook JSON payload to contain newline.Additional context
If this idea makes sense, I am willing to contribute.
The text was updated successfully, but these errors were encountered: