Asynchronous Backing¶
Introduction¶
Asynchronous backing (async backing) lets parachain collators build blocks on top of parent blocks that the relay chain has not yet included. This decouples parachain block production from relay chain inclusion, so a parachain can produce a block every 6 seconds instead of every 12 seconds and spend up to 2 seconds of execution on each block instead of 0.5 seconds.
On the Polkadot SDK side, async backing is a combination of runtime configuration (a consensus hook and Aura settings) and a collator that builds ahead of the relay chain. The parachain template has async backing enabled. This page explains how it works and which settings the template uses. For step-by-step instructions on upgrading an older parachain, see the Upgrade Parachain for Asynchronous Backing Compatibility guide in the Polkadot SDK Docs.
Synchronous vs. Asynchronous Processing¶
In the original synchronous mode, collators and validators drew context only from the relay parent of the prior parablock. The generation and backing steps for a new parablock could only start once the prior parablock had gone through the whole inclusion pipeline. As a result, one parablock could be processed every other relay chain block, with 0.5 seconds of execution time.
---
displayMode: compact
config:
themeCSS: "
#item1 { fill: #450693; stroke: #450693; } \n
#item2 { fill: #8C00FF; stroke: #8C00FF; } \n
#item3 { fill: #FFC400; stroke: #FFC400; } \n
#r { fill: #eb4172; stroke:none; font-size: 20px; } \n
svg text { font-size: 20px !important; } \n
svg .sectionTitle { font-size: 20px !important; } \n #p1padTop { display: none; } \n
/* Hide ALL task labels by default */
text.taskText,
text.taskTextOutside,
[class*='taskText'] tspan { display: none !important; } \n
/* Show labels for the 'r' group (inside or outside, incl. tspans) */
text.taskText[id^='r'],
text.taskTextOutside[id^='r'],
text[id^='r'] tspan { display: inline !important; font-size: 20px; fill: var(--white) !important; } \n
/* Keep section titles styled */
.sectionTitle { fill: var(--md-default-fg-color) !important; font-weight: 700; font-size: 18px; } \n
/* Hide the first two section titles (F1, F2). Change indexes if needed. */
.sectionTitle:nth-of-type(1),
.sectionTitle:nth-of-type(2) { display: none !important; } \n
/* Also hide SPACING row labels on the left */
text.taskTextOutside[id^='p1padTop'] { display: none !important; } \n
.grid .tick text { fill: var(--md-default-fg-color) !important; font-size: 20px !important; }
"
themeVariables:
sectionBkgColor: '#fff'
gantt:
numberSectionStyles: 1
barHeight: 70
gridLineStartPadding: 100
---
%%{init: {"gantt": {"barHeight": 70 }}}%%
gantt
dateFormat YYYY
axisFormat %y
tickInterval '10year'
section F1
R1 : r, 1905, 1907
R2 : r, 1911, 1913
R3 : r, 1917, 1919
R4 : r, 1923, 1925
section F2
SPACING : p1padTop, 1901, 1924
section P1
X : item1, 1900, 1901
Backing : item2, 1901, 1906
Inclusion : item3, 1906, 1912
section P2
X : item1, 1912, 1913
Backing : item2, 1913, 1918
Inclusion : item3, 1918, 1924
With async backing, collators and validators also use the unincluded segment as context. The unincluded segment is the chain of parablocks that collators have built but that the relay chain has not yet included. The prior parablock only needs to complete generation and join the unincluded segment before the next parablock can start generation and backing.
This results in one parablock being processed every relay chain block instead of every other relay chain block, and allows more execution time during generation (2 seconds instead of 0.5 seconds).
---
displayMode: compact
config:
themeCSS: "
#item1 { fill: #450693; stroke: #450693; } \n
#item2 { fill: #8C00FF; stroke: #8C00FF; } \n
#item3 { fill: #FFC400; stroke: #FFC400; } \n
#r { fill: #eb4172; stroke:none; font-size: 20px; } \n
svg text { font-size: 20px !important; } \n
svg .sectionTitle { font-size: 20px !important; } \n #p1padTop { display: none; } \n
/* Hide ALL task labels by default */
text.taskText,
text.taskTextOutside,
[class*='taskText'] tspan { display: none !important; } \n
/* Show labels for the 'r' group (inside or outside, incl. tspans) */
text.taskText[id^='r'],
text.taskTextOutside[id^='r'],
text[id^='r'] tspan { display: inline !important; font-size: 20px; color: var(--white) !important; } \n
/* Keep section titles styled */
.sectionTitle { fill: var(--md-default-fg-color) !important; font-weight: 700; font-size: 18px; } \n
/* Hide the first two section titles (F1, F2). Change indexes if needed. */
.sectionTitle:nth-of-type(1),
.sectionTitle:nth-of-type(2) { display: none !important; } \n
/* Also hide SPACING row labels on the left */
text.taskTextOutside[id^='p1padTop'] { display: none !important; } \n
.taskTextOutsideRight { fill: var(--md-default-fg-color) !important; font-size: 20px !important; }
.grid .tick text { fill: var(--md-default-fg-color) !important; font-size: 20px !important; }
"
themeVariables:
sectionBkgColor: '#fff'
gantt:
numberSectionStyles: 1
barHeight: 70
gridLineStartPadding: 100
---
%%{init: {"gantt": {"barHeight": 70 }}}%%
gantt
dateFormat YYYY
axisFormat %y
tickInterval '10year'
section F1
R1 : r, 1905, 1907
R2 : r, 1911, 1913
R3 : r, 1917, 1919
R4 : r, 1923, 1925
R5 : r, 1929, 1931
section F2
SPACING : p1padTop, 1901, 1930
section P1
X : item1, 1900, 1902
Backing : item2, 1902, 1912
Inclusion : item3, 1912, 1918
section P2
X : item1, 1906, 1908
Backing : item2, 1908, 1918
Inclusion : item3, 1918, 1924
section P3
X : item1, 1912, 1914
Backing : item2, 1914, 1924
Inclusion : item3, 1924, 1930
section P4
X : item1, 1918, 1920
Backing : item2, 1920, 1930 Runtime Configuration¶
The runtime limits how far ahead of the relay chain collators can build. The template runtime defines three constants in runtime/src/lib.rs and passes them to the FixedVelocityConsensusHook from cumulus_pallet_aura_ext:
mod async_backing_params {
/// Maximum number of blocks simultaneously accepted by the Runtime, not yet included
/// into the relay chain.
pub(crate) const UNINCLUDED_SEGMENT_CAPACITY: u32 = 3;
/// How many parachain blocks are processed by the relay chain per parent. Limits the
/// number of blocks authored per slot.
pub(crate) const BLOCK_PROCESSING_VELOCITY: u32 = 1;
/// Relay chain slot duration, in milliseconds.
pub(crate) const RELAY_CHAIN_SLOT_DURATION_MILLIS: u32 = 6000;
}
pub(crate) use async_backing_params::*;
/// Aura consensus hook
type ConsensusHook = cumulus_pallet_aura_ext::FixedVelocityConsensusHook<
Runtime,
RELAY_CHAIN_SLOT_DURATION_MILLIS,
BLOCK_PROCESSING_VELOCITY,
UNINCLUDED_SEGMENT_CAPACITY,
>;
UNINCLUDED_SEGMENT_CAPACITY: The maximum number of parachain blocks the runtime accepts that are not yet included in the relay chain.BLOCK_PROCESSING_VELOCITY: The maximum number of parachain blocks authored per relay chain parent. The hook rejects blocks produced faster than this.RELAY_CHAIN_SLOT_DURATION_MILLIS: The relay chain slot duration, used to check that the parachain slot is aligned with the relay chain slot.
The template then sets the following items:
cumulus_pallet_parachain_system::Config:ConsensusHookis set to the hook above, andCheckAssociatedRelayNumberis set toRelayNumberMonotonicallyIncreases.pallet_aura::Config:AllowMultipleBlocksPerSlotis set toConstBool<true>, andSlotDurationis set toConstU64<SLOT_DURATION>, withSLOT_DURATIONequal toMILLI_SECS_PER_BLOCK(6000 ms in the template).AuraUnincludedSegmentApi: The runtime implementscumulus_primitives_aura::AuraUnincludedSegmentApi. Itscan_build_uponfunction lets the collator ask the runtime whether it may build on a given unincluded parent.MAXIMUM_BLOCK_WEIGHT: The block weight allows 2 seconds of compute (WEIGHT_REF_TIME_PER_SECOND.saturating_mul(2)) per block.
With a capacity of 3 and a velocity of 1, one parachain block is authored per relay chain block, which gives a 6-second parachain block time.
Collator Configuration¶
The template node starts the lookahead collator from cumulus_client_consensus_aura in its start_consensus function in node/src/service.rs, with an authoring_duration of 2000 ms. The lookahead collator looks ahead of the most recently included parachain block when choosing a parent, and builds additional blocks while the unincluded segment is not full.
polkadot-omni-node uses the same collator by default. Its --authoring option defaults to lookahead, which the CLI help describes as the default for asynchronous backing chains. Chains that use more than one core switch to slot-based, as described in Elastic Scaling.
Relay Chain Requirements¶
The relay chain must also have async backing enabled. When you run a local relay chain, for example with Zombienet, check that the relay chain configuration sets scheduler_params.lookahead to at least 3:
With a lower value, parachain block times degrade to worse than synchronous backing. The relay chain's AsyncBackingParams (max_candidate_depth and allowed_ancestry_len) no longer need to be configured explicitly, and async backing works with their default values of 0. On a live relay chain these values are part of the relay chain configuration; see the Parachains page on the Polkadot Wiki for protocol background.
Where to Go Next¶
-
Learn Parachain Consensus
See how the Cumulus collator builds and submits blocks and how the inclusion pipeline works.
-
Learn Elastic Scaling
Configure the slot-based collator and the runtime to produce blocks on more than one core.
| Created: November 17, 2026