Cloudflare Enablement
Queues
Edit this page on GitHub
Set theme to dark (⇧+D)

Use Queues to store data in R2

Example of how to use Queues to batch data and store it in an R2 bucket.

The following Worker will catch JavaScript errors and send them to a queue. The same Worker will receive those errors in batches and store them to a log file in an R2 bucket.