संपीडनधर्मः। कुञ्जीप्रबन्धने (१९ अक्टो) गुह्यम्। अत्र मात्रा कथं मिता। gzip, br, at-rest। न अन्धlevel9; संपीडनधर्मः।
English (minimizable)
After API keys (19 Oct), this post covers compression on the wire and at rest: negotiation, thresholds, CPU levels, security caveats, static precompress, columnar stores and metrics.
पूर्ण-शीर्षकम् / Full title
संपीडनधर्मः: A Metrical Codification of Compression (with English glosses)
English · overview and topics (minimizable)
What this post is about
Compression shrinks payloads and files by spending CPU. Good practice picks the right layer and measures latency impact.
Topics covered
- Bandwidth and cost pressure
- Transit vs at-rest
- HTTP Content-Encoding
- Skip tiny payloads
- Compression level CPU
- Security caveats with secrets
- Precompressed static assets
- Columnar analytics ratios
- Measure ratio/CPU/latency
- Cache interactions
Sanskrit title
संपीडनधर्मः = saṃpīḍana-dharmaḥ “dharma of compression”.
English
Minimizable; Sanskrit-first.
परम्परा-सन्धिः / Series links
| पूर्वं / Prior | अत्र / Adds | न पुनः / Does not repeat |
|---|---|---|
| सिमान्तसञ्चयः (२ अक्टो) | CDN encodings | precompress/vary |
| सञ्चयधर्मः (७ सितम्बे) | caches | compressed bodies |
| दत्तांशभण्डारः (२ अगस्त) | warehouse | columnar compression |
| लागतशास्त्रम् (२४ जुलै) | cost | egress bytes |
| इदम् | compress thresholds CPU security | - |
ग्राह्य-त्याज्य-विवेकः / Keep and avoid
ग्राह्यम् / Keep
१. negotiate encodings: gzip/br where fit
२. min size threshold: skip tiny bodies
३. level budget: match latency SLO
४. no secret mix care: side-channel awareness
५. precompress static: build pipeline
६. measure three: ratio CPU p95
७. Vary encoding: on shared caches
त्याज्यम् / Avoid
- force max compression on all JSON always
- double-compress images
- enable without latency metrics
अध्याय-योजना / Chapter plan
| प्रकरणम् | विषयः | छन्दः | श्लोकाः |
|---|---|---|---|
| १ | मङ्गलं बीजं च / Opening | अनुष्टुभ् | २ |
| २ | मूलतत्त्वानि / Core | अनुष्टुभ् | २ |
| ३ | मुख्यविधिः / Method | उपजाति | १ |
| ४ | रक्षा · विधिः / Guards | अनुष्टुभ् | २ |
| ५ | विवेक · सीमा / Judgment | अनुष्टुभ् | २ |
| ६ | पूर्वसन्धिः / Series links | उपजाति | १ |
| ७ | उपसंहारः / Close | अनुष्टुभ् | २ |
पारिभाषिक-कोशः / Glossary
| Modern English | संस्कृतम् | Note |
|---|---|---|
| compression | संपीडनम् | |
| gzip | gzip | |
| brotli | brotli / br | |
| Content-Encoding | सामग्रीसङ्केतनम् | |
| Accept-Encoding | स्वीकारसङ्केतनम् | |
| at-rest encryption vs compress | विश्रामगुप्तिः पृथक् | |
| compression ratio | संपीडनानुपातः | |
| dictionary compression | कोशसंपीडनम् | |
| zstd | zstd-वर्गः | |
| precompressed asset | पूर्वसंपीडितसंपत्तिः |
श्लोकः १ (अनुष्टुभ्)
संपीडनधर्मस्तस्माद् मितमात्रा ॥१॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
बृहत्प्रवाहः यदि असीमः तदा जालं धनं च दह्यते ।
संपीडनधर्मस्तस्माद् मितमात्रा ॥१॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| बृहत्प्रवाहः | great flow |
| असीमः | unbounded |
| जालम् | network |
| धनम् | money |
| दह्यते | burns |
| संपीडनधर्मः | compression dharma |
| मितमात्रा | measured quantity |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| बृहत्प्रवाहः | large payload traffic |
| संपीडनधर्मः | compression dharma |
| मितमात्रा | measured bulk |
English sense
Compression reduces bytes on the wire and sometimes on disk. It trades CPU for bandwidth and storage.
Context / topic
Topic: why compress.
वृत्तमिति: ८-८-८-८।
श्लोकः २ (अनुष्टुभ्)
एकं नीतिर् न द्वयोः ॥२॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
transit compress vs at-rest भिद्यते ।
एकं नीतिर् न द्वयोः ॥२॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| transit | transit |
| compress | compress |
| vs | vs |
| at-rest | at-rest |
| भिद्यते | differs |
| एकम् | one |
| नीतिः | policy |
| न द्वयोः | not for both same |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| transit | on the wire |
| at-rest | on disk |
English sense
HTTP Content-Encoding and database/page compression are different layers with different knobs and failure modes.
Context / topic
Topic: transit vs rest.
वृत्तमिति: ८-८-८-८।
श्लोकः ३ (अनुष्टुभ्)
double gzip भङ्गाय ॥३॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
Content-Encoding gzip br negotiate ।
double gzip भङ्गाय ॥३॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| Content-Encoding | Content-Encoding |
| gzip | gzip |
| br | brotli |
| negotiate | negotiate |
| double | double |
| gzip | gzip |
| भङ्गाय | for breakage |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| negotiate | Accept-Encoding |
| double gzip | compress twice by mistake |
English sense
Negotiate encodings with the client. Avoid double-compression of already compressed images or pre-gzipped assets without care.
Context / topic
Topic: HTTP negotiation.
वृत्तमिति: ८-८-८-८।
श्लोकः ४ (अनुष्टुभ्)
CPU>bytes लघुषु ॥४॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
small payloads मा नित्यं संपीडय ।
CPU>bytes लघुषु ॥४॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| small | small |
| payloads | payloads |
| मा नित्यम् | not always |
| संपीडय | compress |
| CPU | CPU |
| bytes | bytes |
| लघुषु | on small ones |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| small payloads | tiny responses |
| CPU>bytes | CPU exceeds savings |
English sense
Below a size threshold compression can cost more latency than it saves. Threshold and skip lists matter.
Context / topic
Topic: when not to compress.
वृत्तमिति: ८-८-८-८।
श्लोकः ५ (उपजाति)
CPU बजट् ।
unlimited level9
latency हन्ति ॥५॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
dictionary levels workers
CPU बजट् ।
unlimited level9
latency हन्ति ॥५॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| dictionary | dictionary |
| levels | levels |
| workers | workers |
| CPU | CPU |
| बजट् | budget |
| unlimited | unlimited |
| level9 | level 9 |
| latency | latency |
| हन्ति | kills |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| level | compression level |
| workers | compress threads |
English sense
Pick levels that match your latency SLO. Max compression on every request is rarely free.
Context / topic
Topic: CPU budget.
वृत्तमिति: एकादशाक्षराः पादाः।
श्लोकः ६ (अनुष्टुभ्)
secret साथे विवेकः ॥६॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
security: compression + secrets = CRIME-class risk ।
secret साथे विवेकः ॥६॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| security | security |
| compression | compression |
| secrets | secrets |
| CRIME-class | CRIME-class |
| risk | risk |
| secret | secret |
| साথে | with |
| विवेकः | judgment |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| CRIME-class | compression side channels |
| secret साथे | beside secrets |
English sense
Be careful compressing responses that mix secrets with attacker-influenced bytes. Know historical TLS compression issues.
Context / topic
Topic: security caveat.
वृत्तमिति: ८-८-८-८।
श्लोकः ७ (अनुष्टुभ्)
precompress static assets ॥७॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
object storage compress + CDNbr ।
precompress static assets ॥७॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| object | object |
| storage | storage |
| compress | compress |
| CDN | CDN |
| br | br |
| precompress | precompress |
| static | static |
| assets | assets |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| precompress | build-time .br/.gz |
| static assets | immutable files |
English sense
Precompress static assets at build time; let the edge serve the right encoding without origin CPU.
Context / topic
Topic: static/edge. Links to CDN.
वृत्तमिति: ८-८-८-८।
श्लोकः ८ (अनुष्टुभ्)
row store भिद्यते ॥८॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
columnar storage compress ratios ।
row store भिद्यते ॥८॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| columnar | columnar |
| storage | storage |
| compress | compress |
| ratios | ratios |
| row | row |
| store | store |
| भिद्यते | differs |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| columnar | analytics files |
| row store | OLTP rows |
English sense
Warehouses and parquet-style files gain huge ratios from columnar compression; OLTP page compression is a different tradeoff.
Context / topic
Topic: analytics compression. Links to warehouse.
वृत्तमिति: ८-८-८-८।
श्लोकः ९ (अनुष्टुभ्)
अन्धenable मिथ्याजयः ॥९॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
measure ratio CPU latency before/after ।
अन्धenable मिथ्याजयः ॥९॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| measure | measure |
| ratio | ratio |
| CPU | CPU |
| latency | latency |
| before | before |
| after | after |
| अन्धenable | blind enable |
| मिथ्याजयः | false win |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| ratio CPU latency | three metrics |
| अन्धenable | blind turn-on |
English sense
Track compression ratio, CPU and p95 latency. A pretty ratio with worse p99 is not a win.
Context / topic
Topic: measurement.
वृत्तमिति: ८-८-८-८।
श्लोकः १० (उपजाति)
सञ्चयधर्मः body स्मरेत् ।
संपीडनं
उभयोः सेवकः ॥१०॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
सिमान्तसञ्चयः encoding वहति
सञ्चयधर्मः body स्मरेत् ।
संपीडनं
उभयोः सेवकः ॥१०॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| सिमान्तसञ्चयः | edge cache treatise |
| encoding | encoding |
| वहति | carries |
| सञ्चयधर्मः | cache dharma |
| body | body |
| स्मरेत् | may store |
| संपीडनम् | compression |
| उभयोः | of both |
| सेवकः | servant |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| सिमान्तसञ्चयः | edge cache |
| सञ्चयधर्मः | app cache |
English sense
Edge caches must key or vary on Content-Encoding. App caches may store compressed blobs carefully.
Context / topic
Topic: cache interaction.
सन्धिः: संपीडनं मात्रा; सञ्चयः स्मृतिः।
वृत्तमिति: एकादशाक्षराः पादाः।
श्लोकः ११ (अनुष्टुभ्)
एभिः संपीडनं मितमात्रासमन्वितम् ॥११॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
layer negotiate threshold CPU measure पञ्चकम् ।
एभिः संपीडनं मितमात्रासमन्वितम् ॥११॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| layer | layer |
| negotiate | negotiate |
| threshold | threshold |
| CPU | CPU |
| measure | measure |
| पञ्चकम् | five-set |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| पञ्चकम् | layer negotiate threshold CPU measure |
English sense
Five limbs: choose layer, negotiate encodings, size thresholds, CPU levels and before/after metrics.
Context / topic
Topic: checklist.
वृत्तमिति: ८-८-८-८।
श्लोकः १२ (अनुष्टुभ्)
मितं बाइटं क्रियायोग्यं तन्त्रधर्मः स उच्यते ॥१२॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
इति संपीडनधर्मसारो मितमात्रासमन्वितः ।
मितं बाइटं क्रियायोग्यं तन्त्रधर्मः स उच्यते ॥१२॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| इति | thus |
| संपीडनधर्मसारः | compression essence |
| मितमात्रा | measured bulk |
| मितम् | measured |
| बाइटम् | byte |
| क्रियायोग्यम् | operable |
| तन्त्रधर्मः | system dharma |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| मितं बाइटम् | measured bytes |
| तन्त्रधर्मः | platform dharma |
English sense
Closing: spend CPU only when bytes and users actually benefit.
Context / topic
Topic: close.
उपसंहारन्यायः: लघुषु मा; बृहत्सु विवेकः; मापय पूर्वं पश्चात्।
वृत्तमिति: ८-८-८-८।
श्लोकसूची / Verse index
१. Why compress
२. Transit/rest
३. HTTP negotiate
४. Thresholds
५. CPU levels
६. Security
७. Static/CDN
८. Columnar
९. Measure
१०. Cache link
११. Five limbs
१२. Close
सन्दर्भाः / References
- Prior: CDN 2026-10-02; cache 2026-09-07; warehouse 2026-08-02; cost 2026-07-24.
- Domain: payload and storage compression.
- English minimizable; Sanskrit-first.
- Style: no em dash; no Oxford comma in English clauses.