Cloudflare Zaraz
Loads third-party tags and analytics tools on Cloudflare's edge instead of in the browser.
- Provider
- cloudflare
- Kind
- Worker
- Category
- Compute
| property | type | values | required | kind default | this component |
|---|---|---|---|---|---|
| accelerator | enum | none | gpu | asic | no | none | inherited |
| autoInjectScript | boolean | — | no | true | inherited |
| automaticPageviewTracking | boolean | — | no | true | inherited |
| concurrency | integer | — | no | — | inherited |
| consentRequired | boolean | — | no | false | inherited |
| fanoutStrategy | enum | none | push | pull | hybrid | no | none | inherited |
| fanoutThreshold | integer | — | no | — | inherited |
| idempotent | boolean | — | no | false | inherited |
| instances | integer | — | no | — | inherited |
| managed | boolean | — | no | false | ▸ true |
| rateControl | enum | none | fixed | aimd | no | none | inherited |
| schedule | string | — | no | — | inherited |
| singlePageApplicationSupport | boolean | — | no | true | inherited |
| trigger | enum | queue | stream | schedule | batch | manual | yes | — | ▸ manual |
Every rule whose selector covers this component's kind or its category. Whether a rule fires depends on the design: its properties, its edges and its groups.
Pure push fan-out over a social graph is brutal at the tail: one post from an account with millions of followers becomes millions of cache writes. A follower threshold above which readers merge at read time bounds that write amplification.
- — all of these hold:
- — the node's `fanoutStrategy` is "push"
- — the node's `fanoutThreshold` has no value
- — the design contains a node of kind graph-database
One worker pool consuming several queues lets a slow or poisoned queue starve the others. That is precisely what the design's per-queue isolation requirement forbids.
- — all of these hold:
- — the node has more than 1 incoming edge from a queue
- — the design requirement `isolation.perQueue` is true
A stateful compute node pinned to exactly one availability zone disappears with that zone, and its state goes with it. Nodes inside a cell are exempt, because there the cell is deliberately single-zone and redundancy comes from the other cells.
- — all of these hold:
- — the node's `stateless` is false
- — the node sits inside exactly 1 availability-zone group
- — this does not hold:
- — the node sits inside at least one cell group
nodes:
- { id: "zaraz", component: "cloudflare-zaraz" }# yaml-language-server: $schema=../../schema/component.schema.json # Cloudflare Zaraz: loads third-party tags on Cloudflare's edge instead of the browser. # "Zaraz settings": the script is auto-injected, SPA support and automatic pageview tracking are on; # a newly added tool is assigned no consent purpose and so skips consent by default. schemaVersion: "1" type: "component" id: "cloudflare-zaraz" kind: "worker" provider: "cloudflare" docs: "https://developers.cloudflare.com/zaraz/reference/settings/" defaults: managed: true trigger: "manual" properties: autoInjectScript: type: "boolean" default: true singlePageApplicationSupport: type: "boolean" default: true automaticPageviewTracking: type: "boolean" default: true consentRequired: type: "boolean" default: false