Skip to content

Custom Batcher - more complicated batching #5497

Closed Answered by dyastremsky
MichalPitr asked this question in Q&A
Discussion options

You must be logged in to vote

You can set a batch delay for batching. That will wait to send a batch until a preferred or max batch size is achieved. If none is achieved by the delay, it will send the current batch.

That should take care of your timeout request. Since the custom batcher works on top of the dynamic batcher, that will take care of that behavior. If you want to add behavior on top to send if a minimum batch size has been received, you can do that via the custom batcher API as you mentioned.

However, I don't fully understand how the request routing for your backend works. It sounds like it's complicated and happens outside the dynamic batcher? That may be the only wrinkle. If you're scheduling these reque…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MichalPitr
Comment options

Answer selected by MichalPitr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants