Does a worker has access to bulk KV writes?

I want to create a worker that serves as a proxy to KV, specifically for the bulk writes. Can I use the bulk operations within the KV bindings?
8 Replies
Hello, I’m Allie!
Bulk operations are only supported via the HTTP API at the moment, unfortunately. You are able to run KV ops via the Bindings in parallel, but not quite at the same scale. You could also use a Worker to proxy requests to the HTTP API, depending on your needs
DangerZone
DangerZoneOP3mo ago
Will the worker be able to handle 100mb of bulk writes request? I thought the worker has a limit of 10mb
Hello, I’m Allie!
Where is the data coming from? Is it being passed in via an HTTP request?
DangerZone
DangerZoneOP3mo ago
We are passing it via http
Hello, I’m Allie!
Then the limit you need to worry about is the Zone Upload Size Limit, not the Worker Size Limit
DangerZone
DangerZoneOP3mo ago
Why is that?
Hello, I’m Allie!
The Worker Size Limit is just the size of the code used to run your Worker. It has no effect on the size of uploads that can be run through the Worker
DangerZone
DangerZoneOP3mo ago
oh in that case its under the 10mb limit
Want results from more Discord servers?
Add your server