How Turbo pipelines guarantee at-least-once delivery, why exactly-once requires idempotent sinks, how chain reorgs propagate, and when duplicates can occur
Summary
Turbo pipelines provide at-least-once delivery. Every record produced by a source is guaranteed to be written to every downstream sink at least once. Records may be written more than once in specific, well-defined failure scenarios described below.Turbo does not provide exactly-once delivery. If exactly-once processing matters for your use case, make your sink idempotent (see Designing idempotent sinks). An idempotent destination plus at-least-once delivery gives you effectively-exactly-once results.
Why duplicates can occur
Turbo’s at-least-once guarantee follows directly from the order in which it commits work:
A sink writes records to its destination first.
Only after every sink in the pipeline confirms its write does the source commit its read position (for example, the Kafka consumer offset).
If the pipeline crashes between those two steps (after a sink has written but before the source has committed), the source will replay the same records from its last committed position when the pipeline restarts. The sink will then write those records again.This is intentional. The alternative (committing the source offset before sinks have flushed) would risk losing data on a crash, which is almost always worse than writing a record twice.
The checkpointing protocol
Turbo coordinates this guarantee using a checkpoint coordinator that periodically emits checkpoint markers through the pipeline. Each marker carries a monotonically increasing integer called an epoch.Every checkpoint runs in two phases:
Phase 1: Marker phase
The coordinator broadcasts a marker for epoch N to every source.
Each source records its current read position (for example, Kafka topic/partition offsets) in memory. It does not commit the position yet.
The source emits the marker downstream, after the last record it read before receiving the marker.
Transforms forward the marker to their downstream operators.
Each sink, upon receiving the marker, flushes and commits every record that arrived before the marker. Once the destination acknowledges the write, the sink sends an ACK for epoch N back to the coordinator.
The coordinator waits until it has received an ACK from every sink. Once it has, it finalizes epoch N.
Phase 2: Finalizer phase
The coordinator broadcasts a finalizer message for epoch N to every source.
Each source commits the read position it recorded in step 2 (for example, by committing the Kafka consumer offset).
The source emits the finalizer downstream. Transforms forward it; sinks ignore it.
The coordinator then immediately starts the next checkpoint with epoch N+1.
What this guarantees
No data loss: A source never commits its read position until every sink has durably written the records that came before that checkpoint marker.
At-least-once: If the pipeline crashes after step 5 (sink has flushed) but before step 8 (source has committed), the source replays from its previous committed position on restart, and the sink writes the same records a second time.
Where duplicates can occur
Duplicates are confined to the records that fell between the last committed source position and the point of failure. Concretely:
A crash during or just after a sink flush can cause records inside the in-flight epoch to be re-emitted on restart.
A network blip that causes the sink to retry an already-written batch can also produce duplicates inside a single epoch.
Duplicates never span an arbitrary amount of history: only the records in the current uncommitted epoch.
Designing idempotent sinks
Because duplicates are possible, design your destination to tolerate them. Turbo’s built-in sinks already do this where they can:
Postgres sink: Set primary_key on the sink. Writes become INSERT ... ON CONFLICT (<pk>) DO UPDATE, so re-writing the same row replaces it instead of inserting a duplicate. See the Postgres sink for details.
ClickHouse sink: Use a ReplacingMergeTree table engine keyed on the same primary_key you set on the sink, so duplicate rows collapse on merge. See the ClickHouse sink.
Postgres aggregation sink: The landing table uses a composite primary key (primary_key + _gs_op), so re-delivered records within the same checkpoint epoch are deduplicated via upsert. Records re-delivered across epoch boundaries are not deduplicated. See Postgres aggregation sink.
Kafka sink: Kafka has no native upsert. Treat the downstream consumer as the place to deduplicate (for example, by keying messages on a stable primary key and using a compacted topic, or by deduplicating on consumption).
Webhook / HTTP handler / SQS / Pub/Sub / S3 sinks: These have no built-in deduplication. Your endpoint or downstream consumer must be idempotent. Common patterns: deduplicate by a primary key inside the message body, or reject events with an already-seen idempotency key.
If you write a custom HTTP endpoint or webhook receiver, assume Turbo will deliver the same payload to it more than once. Either deduplicate on a stable key (typically id from the upstream record), or make the side effect itself idempotent (for example, UPSERT instead of INSERT, or PUT to a deterministic path instead of POST).
Reorgs and rollbacks
Turbo pipelines are reorg-aware end to end. When Goldsky first ingests a block it verifies a continuous block-hash chain; if the parent hash doesn’t match the preceding block already ingested, the platform walks backwards issuing deletes and updates into the dataset until the chain is consistent again.Those deletes and updates flow through your pipeline like any other record: if a chain your pipeline streams goes through a reorg or rollback, the corrections propagate automatically to your database, warehouse, or queue. Sinks with a primary_key (Postgres, ClickHouse, MySQL) apply them as upserts and deletes, so the destination converges to the canonical chain without manual intervention. For append-only destinations (Kafka, S3, webhooks), your consumer sees the correction records and must apply them itself.See data quality for how chain continuity is verified at ingestion time.
Checkpoint cadence
Checkpoints fire on a fixed interval managed by the engine. You cannot configure the interval per-pipeline. A faster interval reduces the window in which duplicates can occur on a crash but adds coordination overhead; a slower interval is more efficient but widens the duplicate window. The default cadence is tuned to keep that window in the low-seconds range under normal load.
What checkpointing does not do
It does not snapshot intermediate transform state. Turbo’s checkpoints coordinate source offset commits and sink flushes; they don’t persist in-memory operator state to disk. The engine does not need to: the source replay on restart re-derives that state by re-running the transforms.
It does not guarantee ordering across a restart. After a crash, the source replays from its last committed offset. Records that had already been written by the sink before the crash will appear again, interleaved with new records.
It does not make non-idempotent sinks safe. If your destination cannot tolerate seeing the same row twice, no setting on the Turbo side will change that; fix it at the destination.
Quick checklist for engineers
Pick a stable primary_key for every record and propagate it through every transform.
Set primary_key on every sink that supports it (Postgres, ClickHouse, MySQL, Postgres aggregation).
For destinations Turbo cannot deduplicate against (webhooks, Kafka, SQS, Pub/Sub, S3), confirm the consumer or endpoint deduplicates on that same key.
Do not use sink writes to trigger non-idempotent side effects (sending an email, charging a card, posting to a chat) unless you guard the side effect with your own idempotency key.
Was this page helpful?
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Goldsky","colors":{"primary":"#F24B13","light":"#FE6C3C","dark":"#F24B13"},"logo":{"light":"https://mintcdn.com/goldsky-38/ji0yCkCfylVYRAVB/images/logo/light.svg?fit=max\u0026auto=format\u0026n=ji0yCkCfylVYRAVB\u0026q=85\u0026s=a5f82383787205b368a99af88dc7536e","dark":"https://mintcdn.com/goldsky-38/ji0yCkCfylVYRAVB/images/logo/dark.svg?fit=max\u0026auto=format\u0026n=ji0yCkCfylVYRAVB\u0026q=85\u0026s=d0291d9445301cfe0e12d6bccebd76c0","href":"/introduction"},"favicon":"https://mintcdn.com/goldsky-38/ji0yCkCfylVYRAVB/images/favicon.svg?fit=max\u0026auto=format\u0026n=ji0yCkCfylVYRAVB\u0026q=85\u0026s=b1885abf9abeb800a2df8eeba09cf484","api":{"playground":{}},"appearance":{"default":"dark","strict":false},"background":{"color":{"light":"#FFFFFF","dark":"#090B0C"}},"navbar":{"primary":{"type":"button","label":"Open app","href":"https://app.goldsky.com/"}},"footer":{"socials":{"twitter":"https://twitter.com/goldskyio","linkedin":"https://www.linkedin.com/company/76612907","github":"https://github.com/goldsky-io/documentation-examples"}},"seo":{"metatags":{"og:site_name":"Goldsky Documentation","twitter:card":"summary_large_image","twitter:site":"@goldskyio","twitter:creator":"@goldskyio","msvalidate.01":"ACCFDAF535E366D076B974FC456A5E23"},"indexing":"navigable"},"fonts":{"body":{"family":"Inter"}},"icons":{"library":"lucide"},"styling":{"eyebrows":"breadcrumbs","codeblocks":"dark","latex":false},"integrations":{"ga4":{"measurementId":"G-EWJVB03QZV"},"posthog":{"apiKey":"phc_xnF1pd8YYevvkU72QMBo7tj0L8HZ85GPqUxfH3LjkvY","apiHost":"https://us.i.posthog.com"}},"contextual":{"options":["copy","view","assistant","download-spec"],"display":"header"},"thumbnails":{"appearance":"light","background":"https://mintcdn.com/goldsky-38/btZ7fHJ4AzpW9VsW/images/og/waves-1.png?fit=max\u0026auto=format\u0026n=btZ7fHJ4AzpW9VsW\u0026q=85\u0026s=f1549f9490ef128fa88580ce21b46212"},"navigation":{"global":{"anchors":[{"anchor":"Pricing","icon":"tag","href":"https://goldsky.com/pricing"},{"anchor":"Products","icon":"layers","href":"https://goldsky.com/products/turbo-pipelines"},{"anchor":"Solutions","icon":"compass","href":"https://goldsky.com/solutions/reconciliation"},{"anchor":"Comparisons","icon":"scale","href":"https://goldsky.com/compare/the-graph"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"goldsky-38","hasAudioNarration":false,"actualSubdomain":"goldsky-38","customDomains":["docs.goldsky.com"],"gitSource":{"type":"github","owner":"goldsky-io","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":"","_id":"6b10a1939ffae5051c3f8809"},"feedback":{"thumbs":true,"edits":false,"issues":false,"contextualFeedback":{"allowEmail":true},"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b1333525a8d9cc1aa774901","clientVersion":"0.0.4458","searchFilterCounts":[{"language":"default","tag":"Chains","count":161},{"language":"default","tag":"Overview","count":125},{"language":"default","tag":"Turbo","count":116},{"language":"default","tag":"Other networks","count":109},{"language":"default","tag":"API reference","count":96},{"language":"default","tag":"Reference","count":80},{"language":"default","tag":"Edge RPC","count":69},{"language":"default","tag":"Compose","count":61},{"language":"default","tag":"Methods","count":55},{"language":"default","tag":"Partners","count":42}]},"assistantConfig":{"deflection":{"enabled":true,"email":"support@goldsky.com"}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"::selection{background:rgba(255, 173, 51, 0.28)}a.card,a[class*=\"card\"]{transition:border-color 0.15s ease}a.card:hover,a[class*=\"card\"]:hover{border-color:rgba(255, 173, 51, 0.45)}.card:hover,a[class*=\"card\"]:hover{transform:none;box-shadow:none}#content-area table th,#content-area table td{padding-top:0.45rem;padding-bottom:0.45rem}*{scrollbar-width:thin;scrollbar-color:rgba(161, 161, 170, 0.35) transparent}*::-webkit-scrollbar{width:8px;height:8px}*::-webkit-scrollbar-thumb{background:rgba(161, 161, 170, 0.35);border-radius:999px}*::-webkit-scrollbar-thumb:hover{background:rgba(255, 173, 51, 0.55)}*::-webkit-scrollbar-track{background:transparent}:root{--gsk-ink: #111827;--gsk-body: #4b5563;--gsk-sub: #6b7280;--gsk-card: #ffffff;--gsk-panel: #fcfcfb;--gsk-code: #f6f6f5;--gsk-hair: rgba(17, 24, 39, 0.12);--gsk-edge: rgba(17, 24, 39, 0.2);--gsk-wire: #94a3b8;--gsk-on-accent: #ffffff;--gsk-gold: #d97706;--gsk-green: #059669;--gsk-cyan: #0e7490;--gsk-blue: #2563eb;--gsk-purple: #7c3aed;--gsk-red: #dc2626;--gsk-gray: #6b7280}:root.dark{--gsk-ink: #f4f4f5;--gsk-body: #d4d4d8;--gsk-sub: #a1a1aa;--gsk-card: rgba(255, 255, 255, 0.03);--gsk-panel: rgba(255, 255, 255, 0.03);--gsk-code: rgba(255, 255, 255, 0.06);--gsk-hair: rgba(255, 255, 255, 0.1);--gsk-edge: rgba(255, 255, 255, 0.18);--gsk-wire: #52525b;--gsk-on-accent: #1c1033;--gsk-gold: #ffad33;--gsk-green: #34d399;--gsk-cyan: #22d3ee;--gsk-blue: #60a5fa;--gsk-purple: #a78bfa;--gsk-red: #f87171;--gsk-gray: #a1a1aa}img[src*=\"/product-icons/\"]{object-position:-999px 0;background-color:currentColor!important;-webkit-mask:var(--icon) center / contain no-repeat;mask:var(--icon) center / contain no-repeat}img[src$=\"/product-icons/pipelines.svg\"]{--icon: url(\"/images/product-icons/pipelines.svg\")}img[src$=\"/product-icons/edge.svg\"]{--icon: url(\"/images/product-icons/edge.svg\")}img[src$=\"/product-icons/boost.svg\"]{--icon: url(\"/images/product-icons/boost.svg\")}img[src$=\"/product-icons/feeds.svg\"]{--icon: url(\"/images/product-icons/feeds.svg\")}img[src$=\"/product-icons/compose.svg\"]{--icon: url(\"/images/product-icons/compose.svg\")}img[src$=\"/product-icons/subgraphs.svg\"]{--icon: url(\"/images/product-icons/subgraphs.svg\")}@media (min-width: 1024px){#navbar.is-not-custom>.max-w-8xl,#navbar.is-not-custom~#body-content{max-width:none;padding-left:24px;padding-right:24px}}@media (min-width: 1280px){#navbar.is-not-custom.is-not-wide~#body-content #content-container{max-width:none;padding-right:0}#navbar.is-not-custom.is-not-wide~#body-content #content-area{max-width:672px;margin-left:auto;margin-right:auto}}#navbar .topbar-right-container #theme-preference-menu-trigger{order:-1}#theme-preference-menu-trigger{background-color:transparent}#topbar-cta-button svg{display:none}#topbar-cta-button a{padding-left:12px;padding-right:10px}#topbar-cta-button a>div::after{content:\"\";width:1rem;height:1rem;background-color:rgb(255 255 255 / 0.9);-webkit-mask:var(--arrow-up-right) center / contain no-repeat;mask:var(--arrow-up-right) center / contain no-repeat;--arrow-up-right: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M18 15V6M18 6H9M18 6L6.25 17.75' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\")}#sidebar-content .sidebar-group-header,#navbar .nav-tabs-item{gap:6px}[role=\"menu\"]{box-shadow:0 12px 32px -4px rgb(0 0 0 / 0.12),\n 0 4px 8px -2px rgb(0 0 0 / 0.06)!important}:root.dark [role=\"menu\"]{box-shadow:0 12px 32px -4px rgb(0 0 0 / 0.6),\n 0 4px 8px -2px rgb(0 0 0 / 0.4)!important}@media (min-width: 1024px){#navbar div:has(>#search-bar-entry){justify-content:center}#navbar #search-bar-entry{flex:none;width:208px}}"}]}
{"page":{"pagePath":"turbo-pipelines/delivery-guarantees","slug":"/turbo-pipelines/delivery-guarantees","pageMetadata":{"title":"Delivery guarantees","sidebarTitle":"Delivery guarantees","og:title":"Turbo Pipelines delivery guarantees and checkpointing - Goldsky Docs","description":"How Turbo pipelines guarantee at-least-once delivery, why exactly-once requires idempotent sinks, how chain reorgs propagate, and when duplicates can occur","href":"/turbo-pipelines/delivery-guarantees"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"How Turbo pipelines guarantee at-least-once delivery, why exactly-once requires idempotent sinks, how chain reorgs propagate, and when duplicates can occur\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,input:`input`,li:`li`,ol:`ol`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Warning}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`summary`,children:`Summary`}),`\n`,_jsxs(_components.p,{children:[`Turbo pipelines provide `,_jsx(_components.strong,{children:`at-least-once delivery`}),`. Every record produced by a source is guaranteed to be written to every downstream sink at least once. Records may be written `,_jsx(_components.strong,{children:`more than once`}),` in specific, well-defined failure scenarios described below.`]}),`\n`,_jsxs(_components.p,{children:[`Turbo does `,_jsx(_components.strong,{children:`not`}),` provide exactly-once delivery. If exactly-once processing matters for your use case, make your sink idempotent (see `,_jsx(_components.a,{href:`#designing-idempotent-sinks`,children:`Designing idempotent sinks`}),`). An idempotent destination plus at-least-once delivery gives you effectively-exactly-once results.`]}),`\n`,_jsx(Heading,{level:`2`,id:`why-duplicates-can-occur`,children:`Why duplicates can occur`}),`\n`,_jsx(_components.p,{children:`Turbo’s at-least-once guarantee follows directly from the order in which it commits work:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`A sink writes records to its destination first.`}),`\n`,_jsx(_components.li,{children:`Only after every sink in the pipeline confirms its write does the source commit its read position (for example, the Kafka consumer offset).`}),`\n`]}),`\n`,_jsx(_components.p,{children:`If the pipeline crashes between those two steps (after a sink has written but before the source has committed), the source will replay the same records from its last committed position when the pipeline restarts. The sink will then write those records again.`}),`\n`,_jsxs(_components.p,{children:[`This is intentional. The alternative (committing the source offset before sinks have flushed) would risk `,_jsx(_components.strong,{children:`losing`}),` data on a crash, which is almost always worse than writing a record twice.`]}),`\n`,_jsx(Heading,{level:`2`,id:`the-checkpointing-protocol`,children:`The checkpointing protocol`}),`\n`,_jsxs(_components.p,{children:[`Turbo coordinates this guarantee using a `,_jsx(_components.strong,{children:`checkpoint coordinator`}),` that periodically emits `,_jsx(_components.em,{children:`checkpoint markers`}),` through the pipeline. Each marker carries a monotonically increasing integer called an `,_jsx(_components.strong,{children:`epoch`}),`.`]}),`\n`,_jsx(_components.p,{children:`Every checkpoint runs in two phases:`}),`\n`,_jsx(Heading,{level:`3`,id:`phase-1-marker-phase`,children:`Phase 1: Marker phase`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`The coordinator broadcasts a marker for epoch `,_jsx(_components.code,{children:`N`}),` to every source.`]}),`\n`,_jsxs(_components.li,{children:[`Each source records its current read position (for example, Kafka topic/partition offsets) in memory. `,_jsx(_components.strong,{children:`It does not commit the position yet.`})]}),`\n`,_jsx(_components.li,{children:`The source emits the marker downstream, after the last record it read before receiving the marker.`}),`\n`,_jsx(_components.li,{children:`Transforms forward the marker to their downstream operators.`}),`\n`,_jsxs(_components.li,{children:[`Each sink, upon receiving the marker, `,_jsx(_components.strong,{children:`flushes and commits`}),` every record that arrived before the marker. Once the destination acknowledges the write, the sink sends an `,_jsx(_components.strong,{children:`ACK`}),` for epoch `,_jsx(_components.code,{children:`N`}),` back to the coordinator.`]}),`\n`,_jsxs(_components.li,{children:[`The coordinator waits until it has received an ACK from every sink. Once it has, it finalizes epoch `,_jsx(_components.code,{children:`N`}),`.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`phase-2-finalizer-phase`,children:`Phase 2: Finalizer phase`}),`\n`,_jsxs(_components.ol,{start:`7`,children:[`\n`,_jsxs(_components.li,{children:[`The coordinator broadcasts a `,_jsx(_components.em,{children:`finalizer`}),` message for epoch `,_jsx(_components.code,{children:`N`}),` to every source.`]}),`\n`,_jsxs(_components.li,{children:[`Each source `,_jsx(_components.strong,{children:`commits`}),` the read position it recorded in step 2 (for example, by committing the Kafka consumer offset).`]}),`\n`,_jsx(_components.li,{children:`The source emits the finalizer downstream. Transforms forward it; sinks ignore it.`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`The coordinator then immediately starts the next checkpoint with epoch `,_jsx(_components.code,{children:`N+1`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`what-this-guarantees`,children:`What this guarantees`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`No data loss`}),`: A source never commits its read position until every sink has durably written the records that came before that checkpoint marker.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`At-least-once`}),`: If the pipeline crashes after step 5 (sink has flushed) but before step 8 (source has committed), the source replays from its previous committed position on restart, and the sink writes the same records a second time.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`where-duplicates-can-occur`,children:`Where duplicates can occur`}),`\n`,_jsxs(_components.p,{children:[`Duplicates are confined to the records that fell between the `,_jsx(_components.strong,{children:`last committed source position`}),` and the `,_jsx(_components.strong,{children:`point of failure`}),`. Concretely:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`A crash during or just after a sink flush can cause records inside the in-flight epoch to be re-emitted on restart.`}),`\n`,_jsx(_components.li,{children:`A network blip that causes the sink to retry an already-written batch can also produce duplicates inside a single epoch.`}),`\n`]}),`\n`,_jsx(_components.p,{children:`Duplicates never span an arbitrary amount of history: only the records in the current uncommitted epoch.`}),`\n`,_jsx(Heading,{level:`2`,id:`designing-idempotent-sinks`,children:`Designing idempotent sinks`}),`\n`,_jsx(_components.p,{children:`Because duplicates are possible, design your destination to tolerate them. Turbo’s built-in sinks already do this where they can:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Postgres sink`}),`: Set `,_jsx(_components.code,{children:`primary_key`}),` on the sink. Writes become `,_jsx(_components.code,{children:`INSERT ... ON CONFLICT (\u003cpk>) DO UPDATE`}),`, so re-writing the same row replaces it instead of inserting a duplicate. See the `,_jsx(_components.a,{href:`/turbo-pipelines/sinks/postgres`,children:`Postgres sink`}),` for details.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`ClickHouse sink`}),`: Use a `,_jsx(_components.code,{children:`ReplacingMergeTree`}),` table engine keyed on the same `,_jsx(_components.code,{children:`primary_key`}),` you set on the sink, so duplicate rows collapse on merge. See the `,_jsx(_components.a,{href:`/turbo-pipelines/sinks/clickhouse`,children:`ClickHouse sink`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Postgres aggregation sink`}),`: The landing table uses a composite primary key (`,_jsx(_components.code,{children:`primary_key`}),` + `,_jsx(_components.code,{children:`_gs_op`}),`), so re-delivered records within the same checkpoint epoch are deduplicated via upsert. Records re-delivered across epoch boundaries are `,_jsx(_components.strong,{children:`not`}),` deduplicated. See `,_jsx(_components.a,{href:`/turbo-pipelines/sinks/postgres-aggregate`,children:`Postgres aggregation sink`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Kafka sink`}),`: Kafka has no native upsert. Treat the downstream consumer as the place to deduplicate (for example, by keying messages on a stable primary key and using a compacted topic, or by deduplicating on consumption).`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Webhook / HTTP handler / SQS / Pub/Sub / S3 sinks`}),`: These have no built-in deduplication. Your endpoint or downstream consumer `,_jsx(_components.strong,{children:`must`}),` be idempotent. Common patterns: deduplicate by a primary key inside the message body, or reject events with an already-seen idempotency key.`]}),`\n`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`If you write a custom HTTP endpoint or webhook receiver, assume Turbo will deliver the same payload to it more than once. Either deduplicate on a stable key (typically `,_jsx(_components.code,{children:`id`}),` from the upstream record), or make the side effect itself idempotent (for example, `,_jsx(_components.code,{children:`UPSERT`}),` instead of `,_jsx(_components.code,{children:`INSERT`}),`, or `,_jsx(_components.code,{children:`PUT`}),` to a deterministic path instead of `,_jsx(_components.code,{children:`POST`}),`).`]})}),`\n`,_jsx(Heading,{level:`2`,id:`reorgs-and-rollbacks`,children:`Reorgs and rollbacks`}),`\n`,_jsx(_components.p,{children:`Turbo pipelines are reorg-aware end to end. When Goldsky first ingests a block it verifies a continuous block-hash chain; if the parent hash doesn’t match the preceding block already ingested, the platform walks backwards issuing deletes and updates into the dataset until the chain is consistent again.`}),`\n`,_jsxs(_components.p,{children:[`Those deletes and updates flow through your pipeline like any other record: if a chain your pipeline streams goes through a reorg or rollback, the corrections propagate automatically to your database, warehouse, or queue. Sinks with a `,_jsx(_components.code,{children:`primary_key`}),` (Postgres, ClickHouse, MySQL) apply them as upserts and deletes, so the destination converges to the canonical chain without manual intervention. For append-only destinations (Kafka, S3, webhooks), your consumer sees the correction records and must apply them itself.`]}),`\n`,_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/platform/data-quality`,children:`data quality`}),` for how chain continuity is verified at ingestion time.`]}),`\n`,_jsx(Heading,{level:`2`,id:`checkpoint-cadence`,children:`Checkpoint cadence`}),`\n`,_jsx(_components.p,{children:`Checkpoints fire on a fixed interval managed by the engine. You cannot configure the interval per-pipeline. A faster interval reduces the window in which duplicates can occur on a crash but adds coordination overhead; a slower interval is more efficient but widens the duplicate window. The default cadence is tuned to keep that window in the low-seconds range under normal load.`}),`\n`,_jsxs(Heading,{level:`2`,id:`what-checkpointing-does-not-do`,children:[`What checkpointing does `,_jsx(_components.strong,{children:`not`}),` do`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`It does `,_jsx(_components.strong,{children:`not`}),` snapshot intermediate transform state. Turbo’s checkpoints coordinate `,_jsx(_components.em,{children:`source offset commits`}),` and `,_jsx(_components.em,{children:`sink flushes`}),`; they don’t persist in-memory operator state to disk. The engine does not need to: the source replay on restart re-derives that state by re-running the transforms.`]}),`\n`,_jsxs(_components.li,{children:[`It does `,_jsx(_components.strong,{children:`not`}),` guarantee ordering across a restart. After a crash, the source replays from its last committed offset. Records that had already been written by the sink before the crash will appear again, interleaved with new records.`]}),`\n`,_jsxs(_components.li,{children:[`It does `,_jsx(_components.strong,{children:`not`}),` make non-idempotent sinks safe. If your destination cannot tolerate seeing the same row twice, no setting on the Turbo side will change that; fix it at the destination.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`quick-checklist-for-engineers`,children:`Quick checklist for engineers`}),`\n`,_jsxs(_components.ul,{className:`contains-task-list`,children:[`\n`,_jsxs(_components.li,{className:`task-list-item`,children:[_jsx(_components.input,{type:`checkbox`,disabled:true}),` `,`Pick a stable `,_jsx(_components.code,{children:`primary_key`}),` for every record and propagate it through every transform.`]}),`\n`,_jsxs(_components.li,{className:`task-list-item`,children:[_jsx(_components.input,{type:`checkbox`,disabled:true}),` `,`Set `,_jsx(_components.code,{children:`primary_key`}),` on every sink that supports it (Postgres, ClickHouse, MySQL, Postgres aggregation).`]}),`\n`,_jsxs(_components.li,{className:`task-list-item`,children:[_jsx(_components.input,{type:`checkbox`,disabled:true}),` `,`For destinations Turbo cannot deduplicate against (webhooks, Kafka, SQS, Pub/Sub, S3), confirm the consumer or endpoint deduplicates on that same key.`]}),`\n`,_jsxs(_components.li,{className:`task-list-item`,children:[_jsx(_components.input,{type:`checkbox`,disabled:true}),` `,`Do `,_jsx(_components.strong,{children:`not`}),` use sink writes to trigger non-idempotent side effects (sending an email, charging a card, posting to a chat) unless you guard the side effect with your own idempotency key.`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"dark","config":{},"pageMetadata":{"title":"Delivery guarantees","sidebarTitle":"Delivery guarantees","og:title":"Turbo Pipelines delivery guarantees and checkpointing - Goldsky Docs","description":"How Turbo pipelines guarantee at-least-once delivery, why exactly-once requires idempotent sinks, how chain reorgs propagate, and when duplicates can occur","href":"/turbo-pipelines/delivery-guarantees"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Summary","slug":"summary","depth":2,"children":[]},{"title":"Why duplicates can occur","slug":"why-duplicates-can-occur","depth":2,"children":[]},{"title":"The checkpointing protocol","slug":"the-checkpointing-protocol","depth":2,"children":[{"title":"Phase 1: Marker phase","slug":"phase-1-marker-phase","depth":3,"children":[]},{"title":"Phase 2: Finalizer phase","slug":"phase-2-finalizer-phase","depth":3,"children":[]},{"title":"What this guarantees","slug":"what-this-guarantees","depth":3,"children":[]},{"title":"Where duplicates can occur","slug":"where-duplicates-can-occur","depth":3,"children":[]}]},{"title":"Designing idempotent sinks","slug":"designing-idempotent-sinks","depth":2,"children":[]},{"title":"Reorgs and rollbacks","slug":"reorgs-and-rollbacks","depth":2,"children":[]},{"title":"Checkpoint cadence","slug":"checkpoint-cadence","depth":2,"children":[]},{"title":"What checkpointing does not do","slug":"what-checkpointing-does-not-do","depth":2,"children":[]},{"title":"Quick checklist for engineers","slug":"quick-checklist-for-engineers","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/goldsky-38/306527d152e1badc/theme-toggle.js","/_mintlify/custom/goldsky-38/891a1a67c6bbc696/attribution.js"],"subdomain":"goldsky-38","siteName":"Goldsky","title":"Turbo Pipelines delivery guarantees and checkpointing - Goldsky Docs","relatedPagesConfig":{"enabled":true,"limit":5,"mode":"automatic"},"contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-09T00:23:59.752Z","originalFileLocation":"turbo-pipelines/delivery-guarantees.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"How Turbo pipelines guarantee at-least-once delivery, why exactly-once requires idempotent sinks, how chain reorgs propagate, and when duplicates can occur\">\u003cmeta data-mint-head name=\"application-name\" content=\"Goldsky\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/goldsky-38/8vzUdVp5dBiBAO4D/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/goldsky-38/8vzUdVp5dBiBAO4D/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/goldsky-38/8vzUdVp5dBiBAO4D/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/goldsky-38/8vzUdVp5dBiBAO4D/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/goldsky-38/8vzUdVp5dBiBAO4D/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/goldsky-38/8vzUdVp5dBiBAO4D/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/goldsky-38/8vzUdVp5dBiBAO4D/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/goldsky-38/8vzUdVp5dBiBAO4D/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/goldsky-38/8vzUdVp5dBiBAO4D/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Turbo Pipelines delivery guarantees and checkpointing - Goldsky Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"How Turbo pipelines guarantee at-least-once delivery, why exactly-once requires idempotent sinks, how chain reorgs propagate, and when duplicates can occur\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Goldsky Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.goldsky.com/turbo-pipelines/delivery-guarantees\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://goldsky-38.mintlify.site/_mintlify/api/og/v2?division=Turbo\u0026amp;title=Delivery+guarantees\u0026amp;description=How+Turbo+pipelines+guarantee+at-least-once+delivery%2C+why+exactly-once+requires+idempotent+sinks%2C+how+chain+reorgs+propagate%2C+and+when+duplicates+can+occur\u0026amp;theme=976591e7974bce03f17963ad\u0026amp;signature=fd5278cde63e15c495c7b17025b7ff9a12737e27c1c071b0a549fef46e50f130\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Turbo Pipelines delivery guarantees and checkpointing - Goldsky Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"How Turbo pipelines guarantee at-least-once delivery, why exactly-once requires idempotent sinks, how chain reorgs propagate, and when duplicates can occur\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://goldsky-38.mintlify.site/_mintlify/api/og/v2?division=Turbo\u0026amp;title=Delivery+guarantees\u0026amp;description=How+Turbo+pipelines+guarantee+at-least-once+delivery%2C+why+exactly-once+requires+idempotent+sinks%2C+how+chain+reorgs+propagate%2C+and+when+duplicates+can+occur\u0026amp;theme=976591e7974bce03f17963ad\u0026amp;signature=fd5278cde63e15c495c7b17025b7ff9a12737e27c1c071b0a549fef46e50f130\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/goldsky-38/8vzUdVp5dBiBAO4D/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Goldsky\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#F24B13\">\u003cmeta data-mint-head name=\"twitter:creator\" content=\"@goldskyio\">\u003cmeta data-mint-head name=\"msvalidate.01\" content=\"ACCFDAF535E366D076B974FC456A5E23\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.goldsky.com/turbo-pipelines/delivery-guarantees\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/turbo-pipelines/delivery-guarantees.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.goldsky.com/#organization\",\"name\":\"Goldsky\",\"url\":\"https://docs.goldsky.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/goldsky-38/ji0yCkCfylVYRAVB/images/logo/light.svg?fit=max\u0026auto=format\u0026n=ji0yCkCfylVYRAVB\u0026q=85\u0026s=a5f82383787205b368a99af88dc7536e\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.goldsky.com#website\",\"name\":\"Goldsky\",\"url\":\"https://docs.goldsky.com\",\"publisher\":{\"@id\":\"https://docs.goldsky.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.goldsky.com/turbo-pipelines/delivery-guarantees#webpage\",\"url\":\"https://docs.goldsky.com/turbo-pipelines/delivery-guarantees\",\"name\":\"Delivery guarantees\",\"description\":\"How Turbo pipelines guarantee at-least-once delivery, why exactly-once requires idempotent sinks, how chain reorgs propagate, and when duplicates can occur\",\"dateModified\":\"2026-09-09T00:23:59.752Z\",\"isPartOf\":{\"@id\":\"https://docs.goldsky.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.goldsky.com/turbo-pipelines/delivery-guarantees#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.goldsky.com/turbo-pipelines/delivery-guarantees#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Turbo\",\"item\":\"https://docs.goldsky.com/turbo-pipelines/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Delivery guarantees\",\"item\":\"https://docs.goldsky.com/turbo-pipelines/delivery-guarantees\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.goldsky.com/turbo-pipelines/delivery-guarantees#article\",\"headline\":\"Delivery guarantees\",\"name\":\"Delivery guarantees\",\"description\":\"How Turbo pipelines guarantee at-least-once delivery, why exactly-once requires idempotent sinks, how chain reorgs propagate, and when duplicates can occur\",\"url\":\"https://docs.goldsky.com/turbo-pipelines/delivery-guarantees\",\"mainEntityOfPage\":{\"@id\":\"https://docs.goldsky.com/turbo-pipelines/delivery-guarantees#webpage\"},\"dateModified\":\"2026-09-09T00:23:59.752Z\",\"publisher\":{\"@id\":\"https://docs.goldsky.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.goldsky.com#website\"}}]}\u003c/script>","agentPointerHref":"/turbo-pipelines/delivery-guarantees.md","siteName":"Goldsky","nav":{"global":{"anchors":[{"anchor":"Pricing","icon":"tag","href":"https://goldsky.com/pricing"},{"anchor":"Products","icon":"layers","href":"https://goldsky.com/products/turbo-pipelines"},{"anchor":"Solutions","icon":"compass","href":"https://goldsky.com/solutions/reconciliation"},{"anchor":"Comparisons","icon":"scale","href":"https://goldsky.com/compare/the-graph"}]},"tabs":[{"tab":"Overview","pages":[{"title":"Overview","href":"/introduction"}]},{"tab":"Turbo","icon":"https://mintlify.s3.us-west-1.amazonaws.com/goldsky-38/images/product-icons/pipelines.svg","groups":[{"group":"Turbo","icon":"https://mintlify.s3.us-west-1.amazonaws.com/goldsky-38/images/product-icons/pipelines.svg","pages":[{"title":"Stream onchain data with Turbo","sidebarTitle":"Introduction","href":"/turbo-pipelines/introduction"},{"title":"Deploy a Turbo pipeline","href":"/turbo-pipelines/quickstart"},{"title":"Migrate from Mirror to Turbo","sidebarTitle":"Migrate from Mirror","href":"/turbo-pipelines/migrate-from-mirror"},{"title":"Turbo CLI extension","href":"/turbo-pipelines/cli"},{"group":"Data Sources","expanded":true,"pages":[{"title":"Turbo pipeline sources: EVM, Solana, Stellar, NEAR, Bitcoin","sidebarTitle":"Overview","href":"/turbo-pipelines/sources/overview"},{"title":"EVM sources for Turbo pipelines","href":"/turbo-pipelines/sources/evm"},{"title":"Edge EVM Sources","href":"/turbo-pipelines/sources/edge-evm"},{"title":"Solana sources for Turbo pipelines","href":"/turbo-pipelines/sources/solana"},{"title":"Solana DEX Trades","href":"/turbo-pipelines/sources/solana-dex-trades"},{"title":"Solana Stablecoin Transfers","href":"/turbo-pipelines/sources/solana-stablecoin-transfers"},{"title":"Solana RWA Transfers","sidebarTitle":"Solana RWA Transfers","href":"/turbo-pipelines/sources/solana-rwa-transfers"},{"title":"Stellar Sources","href":"/turbo-pipelines/sources/stellar"},{"title":"NEAR Sources","href":"/turbo-pipelines/sources/near"},{"title":"Bitcoin Sources","href":"/turbo-pipelines/sources/bitcoin"},{"title":"Hyperliquid HyperCore sources for Turbo pipelines","href":"/turbo-pipelines/sources/hypercore"},{"title":"Movement sources for Turbo pipelines","href":"/turbo-pipelines/sources/movement"},{"title":"TON sources for Turbo pipelines","href":"/turbo-pipelines/sources/ton"},{"title":"Zama decrypted transfers","sidebarTitle":"Zama decrypted transfers","href":"/turbo-pipelines/sources/zama-decrypted-transfers"}]},{"group":"Transforming Data","expanded":true,"pages":[{"title":"Turbo transforms overview","sidebarTitle":"Overview","href":"/turbo-pipelines/transforms/overview"},{"title":"SQL transforms","sidebarTitle":"SQL","href":"/turbo-pipelines/transforms/sql"},{"title":"HTTP Handler","href":"/turbo-pipelines/transforms/http-handler"},{"title":"TypeScript transforms","sidebarTitle":"TypeScript","href":"/turbo-pipelines/transforms/typescript"},{"title":"Dynamic Tables","href":"/turbo-pipelines/transforms/dynamic-tables"},{"title":"Throttle transform","sidebarTitle":"Throttle","href":"/turbo-pipelines/transforms/throttle"}]},{"group":"Data Sinks","expanded":true,"pages":[{"title":"Turbo - Supported sinks","sidebarTitle":"Overview","href":"/turbo-pipelines/sinks/overview"},{"title":"PostgreSQL","href":"/turbo-pipelines/sinks/postgres"},{"title":"PostgreSQL Aggregations","href":"/turbo-pipelines/sinks/postgres-aggregate"},{"title":"ClickHouse","href":"/turbo-pipelines/sinks/clickhouse"},{"title":"MySQL","href":"/turbo-pipelines/sinks/mysql"},{"title":"Turbo webhook sink","sidebarTitle":"Webhook","href":"/turbo-pipelines/sinks/webhook"},{"title":"Kafka","href":"/turbo-pipelines/sinks/kafka"},{"title":"Amazon S3","href":"/turbo-pipelines/sinks/s3"},{"title":"Data warehouses (Snowflake, Databricks, BigQuery, and more)","sidebarTitle":"Data warehouses","href":"/turbo-pipelines/sinks/data-warehouses"},{"title":"Amazon SQS","href":"/turbo-pipelines/sinks/sqs"},{"title":"Amazon EventBridge","href":"/turbo-pipelines/sinks/eventbridge"},{"title":"Google Cloud Pub/Sub","href":"/turbo-pipelines/sinks/pubsub"},{"title":"S2","href":"/turbo-pipelines/sinks/s2"},{"title":"Blackhole","href":"/turbo-pipelines/sinks/blackhole"}]},{"title":"Live inspect","href":"/turbo-pipelines/live-inspect"},{"title":"Turbo job mode: one-time backfills and batch pipelines","sidebarTitle":"Job mode","href":"/turbo-pipelines/job-mode"},{"title":"Turbo secrets","description":"Store private keys for Turbo plugin transforms as turbo secrets with goldsky secret, and map them to plugin options with the secrets field.","sidebarTitle":"Turbo secrets","href":"/turbo-pipelines/secrets"},{"title":"Delivery guarantees","sidebarTitle":"Delivery guarantees","href":"/turbo-pipelines/delivery-guarantees"},{"group":"Monitoring","pages":[{"title":"Health dashboard","sidebarTitle":"Health dashboard","description":"Interpret the Turbo health overview dashboard to spot lag, backpressure, and sink performance issues","href":"/turbo-pipelines/health-dashboard"},{"title":"Advanced metrics dashboard","sidebarTitle":"Advanced metrics","href":"/turbo-pipelines/advanced-metrics"},{"title":"Custom alerts","sidebarTitle":"Custom alerts","href":"/turbo-pipelines/custom-alerts"},{"title":"Prometheus integration","sidebarTitle":"Prometheus integration","href":"/turbo-pipelines/prometheus-integration"}]}]},{"group":"Guides","icon":"map","pages":[{"title":"Pipeline architecture patterns","sidebarTitle":"Architecture patterns","href":"/turbo-pipelines/guides/architecture-patterns"},{"title":"Troubleshooting Turbo pipelines","sidebarTitle":"Troubleshooting","href":"/turbo-pipelines/guides/troubleshooting"},{"group":"Token transfers","pages":[{"title":"Native transfers","sidebarTitle":"Native transfers","href":"/turbo-pipelines/guides/token-transfers/native-transfers"},{"title":"ERC-20 transfers","sidebarTitle":"ERC-20 transfers","href":"/turbo-pipelines/guides/token-transfers/ERC-20-transfers"},{"title":"ERC-721 transfers","sidebarTitle":"ERC-721 transfers","href":"/turbo-pipelines/guides/token-transfers/ERC-721-transfers"},{"title":"ERC-1155 transfers","sidebarTitle":"ERC-1155 transfers","href":"/turbo-pipelines/guides/token-transfers/ERC-1155-transfers"},{"group":"Stablecoin transfers","pages":[{"title":"Stablecoin transfers","sidebarTitle":"Overview","href":"/turbo-pipelines/guides/token-transfers/stablecoin-transfers"},{"title":"Stablecoin contract addresses","sidebarTitle":"Contract addresses","href":"/turbo-pipelines/guides/token-transfers/stablecoin-addresses"}]}]},{"title":"Track native token balances for a set of addresses","sidebarTitle":"Native balances","href":"/turbo-pipelines/guides/native-balances"},{"title":"Read contract state with eth_call","sidebarTitle":"Make eth_calls","href":"/turbo-pipelines/guides/eth-call"},{"title":"Decode contract events","sidebarTitle":"Decode contract events","href":"/turbo-pipelines/guides/decoding-contract-events"},{"title":"Decode traces","sidebarTitle":"Decode traces","href":"/turbo-pipelines/guides/decoding-traces"},{"title":"Stream DEX trades","sidebarTitle":"Stream DEX trades","href":"/turbo-pipelines/guides/stream-dex-trades"},{"title":"Export contract events to Postgres","sidebarTitle":"Export events to Postgres","href":"/turbo-pipelines/guides/export-events-to-database"},{"title":"Sync dataset to Postgres","sidebarTitle":"Sync dataset to Postgres","href":"/turbo-pipelines/guides/sync-dataset-to-postgres"},{"title":"Operating pipelines","sidebarTitle":"Operating pipelines","href":"/turbo-pipelines/guides/operating-pipelines"}]},{"group":"Reference","icon":"library","pages":[{"title":"Turbo CLI Reference","sidebarTitle":"CLI reference","href":"/turbo-pipelines/cli-reference"},{"title":"Turbo pipeline YAML configuration reference","sidebarTitle":"Pipeline configuration","href":"/turbo-pipelines/pipeline-config"},{"title":"Turbo SQL Functions Reference","sidebarTitle":"SQL functions","href":"/turbo-pipelines/reference/sql-functions"},{"title":"Pipeline cookbook","sidebarTitle":"Pipeline cookbook","href":"/turbo-pipelines/reference/pipeline-cookbook"},{"group":"Data schemas","pages":[{"title":"EVM dataset schemas: blocks, transactions, logs, traces","sidebarTitle":"EVM Chains","href":"/turbo-pipelines/reference/schema/EVM-schemas"},{"title":"Non-EVM dataset schemas: Beacon, Solana, and more","sidebarTitle":"Non-EVM Chains","href":"/turbo-pipelines/reference/schema/non-EVM-schemas"},{"title":"Curated dataset schemas: ERC-20, ERC-721, ERC-1155","sidebarTitle":"Curated Datasets","href":"/turbo-pipelines/reference/schema/curated-schemas"}]},{"title":"Turbo pipelines FAQ","sidebarTitle":"FAQ","href":"/turbo-pipelines/faq"}]},{"group":"Mirror (legacy)","icon":"archive","pages":[{"title":"Mirror (legacy)","sidebarTitle":"Introduction","href":"/mirror/introduction"},{"title":"Subgraphs","sidebarTitle":"Subgraph sources","href":"/mirror/sources/subgraphs"},{"title":"Sync a subgraph to PostgreSQL with Mirror","sidebarTitle":"Sync subgraph to Postgres","href":"/mirror/guides/sync-subgraph-to-postgres"},{"title":"Elasticsearch","sidebarTitle":"Elasticsearch","href":"/mirror/sinks/elasticsearch"},{"title":"Timescale","sidebarTitle":"Timescale","href":"/mirror/sinks/timescale"},{"title":"Snowflake","sidebarTitle":"Snowflake","href":"/mirror/sinks/snowflake"},{"title":"Pipeline configuration","sidebarTitle":"Pipeline configuration","href":"/mirror/reference/config-file/pipeline"}]}]},{"tab":"Edge RPC","icon":"https://mintlify.s3.us-west-1.amazonaws.com/goldsky-38/images/product-icons/edge.svg","pages":[{"title":"Edge RPC","href":"/edge-rpc/introduction"}]},{"tab":"Boost","icon":"https://mintlify.s3.us-west-1.amazonaws.com/goldsky-38/images/product-icons/boost.svg","pages":[{"title":"Boost","href":"/boost"}]},{"tab":"Feeds","icon":"https://mintlify.s3.us-west-1.amazonaws.com/goldsky-38/images/product-icons/feeds.svg","pages":[{"title":"Feeds","href":"/feeds"}]},{"tab":"Compose","icon":"https://mintlify.s3.us-west-1.amazonaws.com/goldsky-38/images/product-icons/compose.svg","pages":[{"title":"Compose","href":"/compose/introduction"}]},{"tab":"Subgraphs","icon":"https://mintlify.s3.us-west-1.amazonaws.com/goldsky-38/images/product-icons/subgraphs.svg","pages":[{"title":"Subgraphs","href":"/subgraphs/introduction"}]},{"tab":"Chains","pages":[{"title":"Chains","href":"/chains/supported-networks"}]}]},"basePath":"","title":"Turbo Pipelines delivery guarantees and checkpointing - Goldsky Docs","deploymentId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","buildId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","dynamics":[],"chunks":[]}