-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
materialize-webhook: chunk transactions and refactor to use
io.Pipe
The connector now chunks transactions, breaking them into separate ~100 MiB or smaller requests. The connector has also been refactored to leverage `io.Pipe` and stream documents directly into the webhook body. Webhooks are processed in series in the order dictated by the `StoreIterator`. The rety mechanism has been removed in favor of letting the connector fail & retry the webhook when it is automatically restarted. The 100 MiB webhook size cutoff was arbitrarily set and can easily be changed later as needed.
- Loading branch information
Showing
1 changed file
with
99 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters