प्रतिरक्षाउड्डयनधर्मः। एकधाउड्डयने (३ नव) संघातः। अत्र मन्दपथे द्वितीययात्रा। hedge, tail, cancel। न सदा द्विगुणभारः; प्रतिरक्षाधर्मः।
English (minimizable)
After singleflight (3 Nov), this post covers hedged requests: delayed second attempts, canceling losers, idempotent targets, amplification budgets, replica diversity, win-rate economics, SLO-gated enablement and parent deadlines versus retries.
पूर्ण-शीर्षकम् / Full title
प्रतिरक्षाउड्डयनधर्मः: A Metrical Codification of Hedged Requests (with English glosses)
English · overview and topics (minimizable)
What this post is about
Hedged requests launch a delayed backup attempt when the first is slow and keep the first success to cut tail latency.
Topics covered
- Tail cutting motive
- Percentile-delayed start
- Cancel the loser
- Idempotent read preference
- Amplification budgets
- Diverse replicas
- Win rate versus extra load
- SLO-gated use
- Parent deadline bounds
- Retry vs hedge vs singleflight
Sanskrit title
प्रतिरक्षाउड्डयनधर्मः = pratirakṣā-uḍḍayana-dharmaḥ “dharma of backup flight” (hedging).
English
Minimizable; Sanskrit-first.
परम्परा-सन्धिः / Series links
| पूर्वं / Prior | अत्र / Adds | न पुनः / Does not repeat |
|---|---|---|
| एकधाउड्डयनधर्मः (३ नव) | coalesce | related concurrency |
| इदमर्थकुञ्चिका (४ अक्टो) | idempotency | if writes hedged |
| प्रतिदाबधर्मः (७ अक्टो) | backpressure | amplification |
| वाचनप्रतिलिपिः (६ अक्टो) | replicas | diversity targets |
| इदम् | hedged tail cut | - |
ग्राह्य-त्याज्य-विवेकः / Keep and avoid
ग्राह्यम् / Keep
१. delay hedge to high percentile: not instant double
२. cancel losers: always
३. prefer idempotent reads: guard writes
४. cap hedge amplification: global and per call
५. diverse backends: avoid correlated stuck
६. track win rate and cost: honest trade
७. enable where SLO tails hurt: not fashion
त्याज्यम् / Avoid
- always dual-send every request
- leave loser hedges running
- hedge non-idempotent pays without keys
अध्याय-योजना / Chapter plan
| प्रकरणम् | विषयः | छन्दः | श्लोकाः |
|---|---|---|---|
| १ | मङ्गलं बीजं च / Opening | अनुष्टुभ् | २ |
| २ | मूलतत्त्वानि / Core | अनुष्टुभ् | २ |
| ३ | मुख्यविधिः / Method | उपजाति | १ |
| ४ | रक्षा · विधिः / Guards | अनुष्टुभ् | २ |
| ५ | विवेक · सीमा / Judgment | अनुष्टुभ् | २ |
| ६ | पूर्वसन्धिः / Series links | उपजाति | १ |
| ७ | उपसंहारः / Close | अनुष्टुभ् | २ |
पारिभाषिक-कोशः / Glossary
| Modern English | संस्कृतम् | Note |
|---|---|---|
| hedged request | प्रतिरक्षाअनुरोधः | |
| tail latency | पुच्छकालः | |
| backup attempt | द्वितीयप्रयासः | |
| cancel | निरसनम् | |
| amplification | विस्तारणम् | |
| p99 / p999 | पुच्छशतांशः | |
| win rate | जयदरः | |
| parent deadline | पितृसमयसीमा | |
| replica diversity | प्रतिलिपिविविधता | |
| orphan work | अनाथकार्यम् |
श्लोकः १ (अनुष्टुभ्)
प्रतिरक्षाउड्डयनधर्मस्तस्माद् पुच्छच्छेदः ॥१॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
मन्दउत्तरं प्रतीक्षमाणे द्वितीयः पथः यदि शीघ्रतरः ।
प्रतिरक्षाउड्डयनधर्मस्तस्माद् पुच्छच्छेदः ॥१॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| मन्दउत्तरम् | slow answer |
| प्रतीक्षमाणे | while waiting |
| द्वितीयः | second |
| पथः | path |
| शीघ्रतरः | faster |
| प्रतिरक्षाउड्डयनधर्मः | hedged-flight dharma |
| पुच्छच्छेदः | tail-cut |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| प्रतिरक्षाउड्डयनधर्मः | hedged request dharma |
| पुच्छच्छेदः | tail cut |
English sense
Hedged requests start a second attempt after a delay when the first is slow, then take the first success to cut latency tails.
Context / topic
Topic: why hedge. Distinct from plain retries after hard failure.
वृत्तमिति: ८-८-८-८।
श्लोकः २ (अनुष्टुभ्)
double load always युद्धाय ॥२॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
hedge after percentile delay not instantly ।
double load always युद्धाय ॥२॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| hedge | hedge |
| after | after |
| percentile | percentile |
| delay | delay |
| not | not |
| instantly | instantly |
| double | double |
| load | load |
| always | always |
| युद्धाय | for war |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| percentile delay | p95 start hedge |
| instant double | always 2x |
English sense
Start the hedge only after a high percentile of normal latency. Instant parallel doubles always waste capacity.
Context / topic
Topic: delayed hedge.
वृत्तमिति: ८-८-८-८।
श्लोकः ३ (अनुष्टुभ्)
orphan work residual load ॥३॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
cancel loser promptly ।
orphan work residual load ॥३॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| cancel | cancel |
| loser | loser |
| promptly | promptly |
| orphan | orphan |
| work | work |
| residual | residual |
| load | load |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| cancel loser | abort slower |
| orphan work | continues burning |
English sense
When one attempt wins, cancel the other. Orphan hedges silently double backend cost.
Context / topic
Topic: cancel losers.
वृत्तमिति: ८-८-८-८।
श्लोकः ४ (अनुष्टुभ्)
non-idempotent hedge भयम् ॥४॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
idempotent reads best ।
non-idempotent hedge भयम् ॥४॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| idempotent | idempotent |
| reads | reads |
| best | best |
| non-idempotent | non-idempotent |
| hedge | hedge |
| भयम् | danger |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| idempotent reads | safe class |
| non-idempotent | double side effect |
English sense
Prefer hedges on safe reads. Hedging non-idempotent writes risks double effects unless keys guard both.
Context / topic
Topic: safety class.
वृत्तमिति: ८-८-८-८।
श्लोकः ५ (उपजाति)
सीमा ।
retry storm + hedge
द्विदाहः ॥५॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
budget max hedges
सीमा ।
retry storm + hedge
द्विदाहः ॥५॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| budget | budget |
| max | max |
| hedges | hedges |
| सीमा | limit |
| retry | retry |
| storm | storm |
| hedge | hedge |
| द्विदाहः | double burn |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| max hedges | cap extras |
| retry+hedge | compound amplification |
English sense
Cap concurrent hedges per request and globally. Stacking blind retries on hedges amplifies outages.
Context / topic
Topic: amplification budget.
वृत्तमिति: एकादशाक्षराः पादाः।
श्लोकः ६ (अनुष्टुभ्)
same queue मिथ्या ॥६॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
hedge different replica not same stuck worker ।
same queue मिथ्या ॥६॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| hedge | hedge |
| different | different |
| replica | replica |
| same | same |
| stuck | stuck |
| worker | worker |
| same | same |
| queue | queue |
| मिथ्या | false |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| different replica | diversity |
| same queue | correlated delay |
English sense
Send hedges where failure modes differ. Two tickets in the same stuck partition share one fate.
Context / topic
Topic: diversity.
वृत्तमिति: ८-८-८-८।
श्लोकः ७ (अनुष्टुभ्)
vanity p99 अन्धता ॥७॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
track hedge win rate and extra load ।
vanity p99 अन्धता ॥७॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| track | track |
| hedge | hedge |
| win | win |
| rate | rate |
| extra | extra |
| load | load |
| vanity | vanity |
| p99 | p99 |
| अन्धता | blindness |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| win rate | how often hedge helps |
| extra load | cost of hedges |
English sense
Measure how often the hedge wins and how much extra work it creates. Pretty tails with double cost may be a bad trade.
Context / topic
Topic: economics.
वृत्तमिति: ८-८-८-८।
श्लोकः ८ (अनुष्टुभ्)
every call hedge मा ॥८॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
tied to SLO not fashion ।
every call hedge मा ॥८॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| tied | tied |
| SLO | SLO |
| fashion | fashion |
| every | every |
| call | call |
| hedge | hedge |
| मा | not |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| SLO tied | tail pain real |
| fashion | always on |
English sense
Enable hedges where tail latency burns user SLO. Default-everywhere hedging is capacity fashion.
Context / topic
Topic: when to enable.
वृत्तमिति: ८-८-८-८।
श्लोकः ९ (अनुष्टुभ्)
child without parent budget भ्रमः ॥९॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
deadline parent bounds both attempts ।
child without parent budget भ्रमः ॥९॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| deadline | deadline |
| parent | parent |
| bounds | bounds |
| both | both |
| attempts | attempts |
| child | child |
| without | without |
| parent | parent |
| budget | budget |
| भ्रमः | confusion |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| parent deadline | shared budget |
| child without | unbounded second |
English sense
Both primary and hedge must respect the parent deadline budget so the client still finishes on time.
Context / topic
Topic: deadline propagation.
वृत्तमिति: ८-८-८-८।
श्लोकः १० (उपजाति)
प्रतिरक्षा before fail ।
एकधा
संघातः ॥१०॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
पुनःप्रयासः after failure
प्रतिरक्षा before fail ।
एकधा
संघातः ॥१०॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| पुनःप्रयासः | retry |
| after | after |
| failure | failure |
| प्रतिरक्षा | hedge |
| before | before |
| fail | fail |
| एकधा | singleflight |
| संघातः | coalesce |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| पुनःप्रयासः | retry |
| एकधा | singleflight |
English sense
Retries react after failure; hedges race before failure on slowness; singleflight collapses duplicates. Do not confuse the three.
Context / topic
Topic: series distinctions.
सन्धिः: पुनः पश्चात्दोष; प्रतिरक्षा मन्दता; एकधा द्विपृच्छा एकम्।
वृत्तमिति: एकादशाक्षराः पादाः।
श्लोकः ११ (अनुष्टुभ्)
एभिः प्रतिरक्षाउड्डयनधर्मः पुच्छच्छेदसमन्वितः ॥११॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
delay cancel idempotency budget diversity पञ्चकम् ।
एभिः प्रतिरक्षाउड्डयनधर्मः पुच्छच्छेदसमन्वितः ॥११॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| delay | delay |
| cancel | cancel |
| idempotency | idempotency |
| budget | budget |
| diversity | diversity |
| पञ्चकम् | five-set |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| पञ्चकम् | delay cancel idempotency budget diversity |
English sense
Five limbs: delayed start, cancel losers, idempotent targets, amplification budget and diverse backends under parent deadlines.
Context / topic
Topic: checklist.
वृत्तमिति: ८-८-८-८।
श्लोकः १२ (अनुष्टुभ्)
मितं द्वितीयोड्डयनं क्रियायोग्यं तन्त्रधर्मः स उच्यते ॥१२॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
इति प्रतिरक्षाउड्डयनधर्मसारः पुच्छच्छेदसमन्वितः ।
मितं द्वितीयोड्डयनं क्रियायोग्यं तन्त्रधर्मः स उच्यते ॥१२॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| इति | thus |
| प्रतिरक्षाउड्डयनधर्मसारः | hedge essence |
| पुच्छच्छेदः | tail cut |
| मितम् | measured |
| द्वितीयोड्डयनम् | second flight |
| क्रियायोग्यम् | operable |
| तन्त्रधर्मः | system dharma |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| मितं द्वितीयोड्डयनम् | measured second flight |
| तन्त्रधर्मः | platform dharma |
English sense
Closing: race a late twin only when tails hurt and cancel the loser without mercy.
Context / topic
Topic: close.
उपसंहारन्यायः: मन्दं दृष्ट्वा द्वितीयं प्रेषय; जितं गृह्ण; इतरं हन्।
वृत्तमिति: ८-८-८-८।
श्लोकसूची / Verse index
१. Why hedge
२. Delayed start
३. Cancel
४. Idempotency
५. Budget
६. Diversity
७. Economics
८. SLO gate
९. Deadlines
१०. Series
११. Five limbs
१२. Close
सन्दर्भाः / References
- Prior: singleflight 2026-11-03; idempotency 2026-10-04; replicas 2026-10-06.
- Domain: hedged requests.
- English minimizable; Sanskrit-first.
- Style: no em dash; no Oxford comma in English clauses.