सर्वरघटनाप्रवाहः। परस्परप्रत्यये (१४ अक्टो) पत्रम्। अत्र सर्वर कथं कथयति एकदिशम्। SSE, id, heartbeat। न सर्वत्र WebSocket; कथाप्रवाहः

English (minimizable)

After mTLS (14 Oct), this post covers Server-Sent Events: when to prefer SSE over websockets, framing, Last-Event-ID resume, heartbeats, auth, backpressure, multi-instance fanout, reconnect and CDN buffering.

पूर्ण-शीर्षकम् / Full title

सर्वरघटनाप्रवाहः: A Metrical Codification of Server-Sent Events (with English glosses)

English · overview and topics (minimizable)

What this post is about

SSE is a browser-native one-way event stream over HTTP (text/event-stream).

Topics covered

  1. SSE vs websocket choice
  2. Content-Type and framing
  3. Event id / Last-Event-ID
  4. Comment heartbeats
  5. Auth and session end
  6. Backpressure on slow clients
  7. Multi-instance delivery
  8. Reconnect retry
  9. Disable proxy buffering
  10. Link to realtime treatise

Sanskrit title

सर्वरघटनाप्रवाहः = sarvara-ghaṭanā-pravāhaḥ “server event flow” (SSE).

English

Minimizable; Sanskrit-first.

परम्परा-सन्धिः / Series links
पूर्वं / Prior अत्र / Adds न पुनः / Does not repeat
वास्तविकसमयसंवादः (१३ सितम्बे) websockets one-way lighter cousin
प्रतिदाबधर्मः (७ अक्टो) backpressure stream buffers
सत्रधर्मः (३० सितम्बे) sessions auth on EventSource
सिमान्तसञ्चयः (२ अक्टो) CDN buffering off
इदम् SSE resume heartbeat fanout -
ग्राह्य-त्याज्य-विवेकः / Keep and avoid

ग्राह्यम् / Keep

१. event-stream type: correct Content-Type
२. event ids: resume support
३. heartbeats: defeat idle cuts
४. authz on open: and on expire
५. bounded buffers: disconnect slow clients
६. fanout plan: sticky or bus
७. no proxy buffer: on SSE routes

त्याज्यम् / Avoid

  • use websockets for pure server notify-only without need
  • unbounded per-client queues
  • SSE through buffering CDN without tweak
अध्याय-योजना / Chapter plan
प्रकरणम् विषयः छन्दः श्लोकाः
मङ्गलं बीजं च / Opening अनुष्टुभ्
मूलतत्त्वानि / Core अनुष्टुभ्
मुख्यविधिः / Method उपजाति
रक्षा · विधिः / Guards अनुष्टुभ्
विवेक · सीमा / Judgment अनुष्टुभ्
पूर्वसन्धिः / Series links उपजाति
उपसंहारः / Close अनुष्टुभ्
पारिभाषिक-कोशः / Glossary
Modern English संस्कृतम् Note
SSE सर्वरघटनाप्रवाहः / SSE  
EventSource घटनास्रोतग्राहकः  
Last-Event-ID अन्तिमघटनाID  
event field event क्षेत्रम्  
data field data क्षेत्रम्  
retry field retry क्षेत्रम्  
comment heartbeat टिप्पणीस्पन्दः  
text/event-stream text/event-stream  
fanout बहुप्रसारः  
proxy buffering मध्यसञ्चयनम्  

श्लोकः १ (अनुष्टुभ्)

एकदिशघटनाः यदि ब्राउसर् इच्छति तदा सूत्रं गुरु ।
सर्वरघटनाप्रवाहस्तस्माद् लघुपथः ॥१॥
पदच्छेदः · Word-for-word · English (minimizable)

पदच्छेदः
एकदिशघटनाः यदि ब्राउसर् इच्छति तदा सूत्रं गुरु । सर्वरघटनाप्रवाहस्तस्माद् लघुपथः ॥१॥

Word-for-word

संस्कृतपदम् Word-for-word English
एकदिशघटनाः one-way events
ब्राउसर् browser
इच्छति wants
सूत्रम् websocket
गुरु heavy
सर्वरघटनाप्रवाहः SSE
लघुपथः light path

Gloss table

पदम् अर्थः / sense
एकदिशघटनाः server-to-client events
सर्वरघटनाप्रवाहः SSE
लघुपथः lighter path

English sense
Server-Sent Events push a one-way text event stream over HTTP. For many notify-only UIs they are simpler than full duplex websockets.

Context / topic
Topic: why SSE. Distinct from realtime websocket treatise.

वृत्तमिति: ८-८-८-८।

श्लोकः २ (अनुष्टुभ्)

Content-Type text/event-stream ।
अन्यथा client न बध्नाति ॥२॥
पदच्छेदः · Word-for-word · English (minimizable)

पदच्छेदः
Content-Type text/event-stream । अन्यथा client न बध्नाति ॥२॥

Word-for-word

संस्कृतपदम् Word-for-word English
Content-Type Content-Type
text/event-stream text/event-stream
अन्यथा otherwise
client client
न बध्नाति does not bind

Gloss table

पदम् अर्थः / sense
text/event-stream SSE media type
client EventSource

English sense
Speak the SSE content type and frame events with the SSE field format (event data id retry).

Context / topic
Topic: protocol basics.

वृत्तमिति: ८-८-८-८।

श्लोकः ३ (अनुष्टुभ्)

id क्षेत्रे last-event-id पुनःसन्धिः ।
बिना id पुनरावृत्तिर् अन्धा ॥३॥
पदच्छेदः · Word-for-word · English (minimizable)

पदच्छेदः
id क्षेत्रे last-event-id पुनःसन्धिः । बिना id पुनरावृत्तिर् अन्धा ॥३॥

Word-for-word

संस्कृतपदम् Word-for-word English
id id
क्षेत्रे in field
last-event-id Last-Event-ID
पुनःसन्धिः reconnect
बिना id without id
पुनरावृत्तिः replay
अन्धा blind

Gloss table

पदम् अर्थः / sense
last-event-id resume header
पुनरावृत्तिः replay

English sense
Event ids let browsers resume after disconnect via Last-Event-ID. Without ids reconnects may skip or duplicate depending on your buffer.

Context / topic
Topic: resume.

वृत्तमिति: ८-८-८-८।

श्लोकः ४ (अनुष्टुभ्)

heartbeat comment रेखाभिः ।
proxy मौनच्छेदे रक्ष ॥४॥
पदच्छेदः · Word-for-word · English (minimizable)

पदच्छेदः
heartbeat comment रेखाभिः । proxy मौनच्छेदे रक्ष ॥४॥

Word-for-word

संस्कृतपदम् Word-for-word English
heartbeat heartbeat
comment comment
रेखाभिः with lines
proxy proxy
मौनच्छेदे on idle cut
रक्ष protect

Gloss table

पदम् अर्थः / sense
heartbeat keep-alive comments
proxy मौनच्छेदे idle proxy cut

English sense
Send periodic comment heartbeats so idle intermediaries do not close long-lived streams.

Context / topic
Topic: keep-alive. Links to realtime heartbeats idea.

वृत्तमिति: ८-८-८-८।

श्लोकः ५ (उपजाति)

अधिकारः आरम्भे च पुनः
सत्रं म्रियते चेत् ।
अनन्तstream
बिना auth छिद्रम् ॥५॥
पदच्छेदः · Word-for-word · English (minimizable)

पदच्छेदः
अधिकारः आरम्भे च पुनः सत्रं म्रियते चेत् । अनन्तstream बिना auth छिद्रम् ॥५॥

Word-for-word

संस्कृतपदम् Word-for-word English
अधिकारः authorization
आरम्भे at start
पुनः again
सत्रम् session
म्रियते dies
चेत् if
अनन्तstream endless stream
बिना auth without auth
छिद्रम् hole

Gloss table

पदम् अर्थः / sense
अधिकारः auth
अनन्तstream endless stream

English sense
Authenticate the EventSource request and drop the stream when the session expires. SSE is still a privileged subscription.

Context / topic
Topic: auth on streams. Links to sessions.

वृत्तमिति: एकादशाक्षराः पादाः।

श्लोकः ६ (अनुष्टुभ्)

प्रतिदाबः client मन्दे ।
अनन्तbuffer सर्वरे मा ॥६॥
पदच्छेदः · Word-for-word · English (minimizable)

पदच्छेदः
प्रतिदाबः client मन्दे । अनन्तbuffer सर्वरे मा ॥६॥

Word-for-word

संस्कृतपदम् Word-for-word English
प्रतिदाबः backpressure
client client
मन्दे when slow
अनन्तbuffer endless buffer
सर्वरे on server
मा not

Gloss table

पदम् अर्थः / sense
client मन्दे slow consumer
अनन्तbuffer unbounded buffer

English sense
If a client stops reading, bound server-side buffers and disconnect by policy. Same backpressure dharma as sockets.

Context / topic
Topic: backpressure. Links to 7 Oct.

वृत्तमिति: ८-८-८-८।

श्लोकः ७ (अनुष्टुभ्)

horizontal scale sticky वा bus ।
event fanout विना नश्येत् ॥७॥
पदच्छेदः · Word-for-word · English (minimizable)

पदच्छेदः
horizontal scale sticky वा bus । event fanout विना नश्येत् ॥७॥

Word-for-word

संस्कृतपदम् Word-for-word English
horizontal horizontal
scale scale
sticky sticky
वा or
bus bus
event event
fanout fanout
विना without
नश्येत् is lost

Gloss table

पदम् अर्थः / sense
sticky session affinity
bus pub/sub bus

English sense
Multi-instance SSE needs sticky routing to the producer or a shared pub/sub so events reach the right connection.

Context / topic
Topic: multi-instance fanout.

वृत्तमिति: ८-८-८-८।

श्लोकः ८ (अनुष्टुभ्)

retry field client backoff ।
समूहreconnect मा ॥८॥
पदच्छेदः · Word-for-word · English (minimizable)

पदच्छेदः
retry field client backoff । समूहreconnect मा ॥८॥

Word-for-word

संस्कृतपदम् Word-for-word English
retry retry
field field
client client
backoff backoff
समूहreconnect herd reconnect
मा not

Gloss table

पदम् अर्थः / sense
retry field SSE retry ms
समूहreconnect thundering reconnect

English sense
Use retry guidance and jittered reconnects so a blip does not stampede origins.

Context / topic
Topic: reconnect storms. Links to retry.

वृत्तमिति: ८-८-८-८।

श्लोकः ९ (अनुष्टुभ्)

CDN buffer off for streams ।
सञ्चितstream विलम्बाय ॥९॥
पदच्छेदः · Word-for-word · English (minimizable)

पदच्छेदः
CDN buffer off for streams । सञ्चितstream विलम्बाय ॥९॥

Word-for-word

संस्कृतपदम् Word-for-word English
CDN CDN
buffer buffer
off off
streams streams
सञ्चितstream cached/buffered stream
विलम्बाय for delay

Gloss table

पदम् अर्थः / sense
buffer off disable response buffering
सञ्चितstream buffered stream

English sense
Disable proxy buffering on SSE paths or events arrive in bursts minutes late.

Context / topic
Topic: edge buffering. Links to CDN post.

वृत्तमिति: ८-८-८-८।

श्लोकः १० (उपजाति)

वास्तविकसमयसंवादः द्विदिशः
SSE एकदिशः लघुः ।
सूचनायै
प्रायः पर्याप्तिः ॥१०॥
पदच्छेदः · Word-for-word · English (minimizable)

पदच्छेदः
वास्तविकसमयसंवादः द्विदिशः SSE एकदिशः लघुः । सूचनायै प्रायः पर्याप्तिः ॥१०॥

Word-for-word

संस्कृतपदम् Word-for-word English
वास्तविकसमयसंवादः realtime treatise
द्विदिशः two-way
SSE SSE
एकदिशः one-way
लघुः light
सूचनायै for notifications
प्रायः often
पर्याप्तिः enough

Gloss table

पदम् अर्थः / sense
द्विदिशः bidirectional
एकदिशः unidirectional

English sense
Pick websockets when the client must speak often; pick SSE when the server mostly narrates.

Context / topic
Topic: SSE vs websocket.

सन्धिः: सूत्रं संवादः; SSE कथा

वृत्तमिति: एकादशाक्षराः पादाः।

श्लोकः ११ (अनुष्टुभ्)

format id heartbeat auth fanout पञ्चकम् ।
एभिः सर्वरघटनाप्रवाहः लघुपथसमन्वितः ॥११॥
पदच्छेदः · Word-for-word · English (minimizable)

पदच्छेदः
format id heartbeat auth fanout पञ्चकम् । एभिः सर्वरघटनाप्रवाहः लघुपथसमन्वितः ॥११॥

Word-for-word

संस्कृतपदम् Word-for-word English
format format
id id
heartbeat heartbeat
auth auth
fanout fanout
पञ्चकम् five-set

Gloss table

पदम् अर्थः / sense
पञ्चकम् format resume heartbeat auth fanout

English sense
Five limbs: correct framing, event ids for resume, heartbeats, auth on connect and multi-instance fanout design.

Context / topic
Topic: checklist.

वृत्तमिति: ८-८-८-८।

श्लोकः १२ (अनुष्टुभ्)

इति सर्वरघटनाप्रवाहसारो लघुपथसमन्वितः ।
मितं प्रवाहं क्रियायोग्यं तन्त्रधर्मः स उच्यते ॥१२॥
पदच्छेदः · Word-for-word · English (minimizable)

पदच्छेदः
इति सर्वरघटनाप्रवाहसारो लघुपथसमन्वितः । मितं प्रवाहं क्रियायोग्यं तन्त्रधर्मः स उच्यते ॥१२॥

Word-for-word

संस्कृतपदम् Word-for-word English
इति thus
सर्वरघटनाप्रवाहसारः SSE essence
लघुपथः light path
मितम् measured
प्रवाहम् stream
क्रियायोग्यम् operable
तन्त्रधर्मः system dharma

Gloss table

पदम् अर्थः / sense
मितं प्रवाहम् measured stream
तन्त्रधर्मः platform dharma

English sense
Closing: stream one way with resume and bounds when full duplex is more gun than you need.

Context / topic
Topic: close.

उपसंहारन्यायः: एकदिशं वह; id देहि; buffer मा असीमं कुरु।

वृत्तमिति: ८-८-८-८।

श्लोकसूची / Verse index

१. Why SSE
२. Framing
३. Resume ids
४. Heartbeats
५. Auth
६. Backpressure
७. Scale-out
८. Reconnect
९. CDN buffer
१०. Websocket contrast
११. Five limbs
१२. Close

सन्दर्भाः / References
  1. Prior: websockets 2026-09-13; backpressure 2026-10-07; sessions 2026-09-30; CDN 2026-10-02.
  2. Domain: Server-Sent Events.
  3. English minimizable; Sanskrit-first.
  4. Style: no em dash; no Oxford comma in English clauses.