Zum Hauptinhalt springen
Intelligence View
⚡ tsecurity.de Intelligence

Understanding Server Sent Events

Hello reader! Today I have learnt about server-side events and going to discuss it here. Introduction Assume you are using ChatGPT and sent a query to the LLM…

Beitrag
0
Seite
0
↗ Quelle (dev.to)
Quelle & Fakten · 3 Min. Lesezeit
Quelle: dev.to
Rubrik: Programmazione sicura

Hello reader! Today I have learnt about server-side events and going to discuss it here.



Introduction




  • Assume you are using ChatGPT and sent a query to the LLM and it's makes you to wait for 5 seconds before printing the entire answer in a one-shot action like loading a webpage instead of the current sequential character printing pattern using streaming responses, will it be surprising, frustrating or at least makes you feel like waiting?


  • So, to prevent the user from feeling the pain of waiting most LLMs uses the sequential printing method.




Working




  1. These are called Time Taking Processes (TTP), and this working is achieved by the server-sent events.


  2. SSE is the standard for streaming data from the server to the client using HTTP.


  3. Each event is a small text block with "fields" like data, event, id, and retry, separated by blank lines.


  4. It looks like this:




data: {"name": "Portal Gun", "price": 999.99}

data: {"name": "Plumbus", "price": 32.99}



SSE is commonly used for AI chat streaming, live notifications, logs and observability, and other cases where the server pushes updates to the client.



Before technologies like SSE became popular, applications often relied on short polling or long polling to receive updates from the server:



1. Short polling:



The client-initiates the request to the server and if the response is incomplete and will takes time to complete then the server will response with an immediate wait message and then the user will wait for some time(defined) before initiating the request again, continuing this process until the process's completed.



2. Long polling:



The client-initiated request is once processed and if not completed then the server will hold on to that request and check the same after a defined time when it also not completed during the second investigation then the server responses to the client as incomplete. The user will immediately reinitiate the same request as soon as they receive it and the same repeat until the process is completed or any termination event has been happened.



EVENT STREAM:



Processes that are continuous and ordered sequence of events that can be simple from creating pdf file to a much complex process like transactions between two banks. These are undertaken by establishing a communication channel between the server and the clients and maintaining the channel until the completion of the process.



Here's a fun-fact for you if you have read until here: HTTP requests are

stateless.



Bye guys! let's all have a great day of learning😊.

Social ReaktionenReagiere als Erste:r — dein Feedback zählt!
Informations-Bewertung:
✏️ Information ergänzen
🛡️ Versioniert via CMS-Revisions-Engine (Freigabe-Queue für Gäste)

💬 Discussione della community e commenti

🌐 Entra nella chat principale

Avvia la discussione nel flusso broadcast della Social Chat oppure invia qui sopra un contributo esperto tramite il modulo di integrazione.

Briefing di sicurezza Gratuito · disdetta in 1 clic

Intelligence Digest — gratuito

Ogni giorno le notizie di sicurezza più importanti · annullabile in qualsiasi momento

Valutazione della community & prova sociale
⭐ Giudizio dei lettori
–
Ø / 5.0
Ancora nessuna valutazione dei lettori
Questo articolo ti è stato utile?
0
Lascia ora la tua valutazione
Valutazione dettagliata (facoltativa)
Contenuto & qualità
Fonte & credibilità
Attualità

Cluster di storie correlate & fonti (IA vettoriale)

6 Cluster
26 fonti
Black Friday Oura Ring deals: The best of the deals so far, picked by a wearable-tech expert
Latest from TechRadar 45 min. fa
25 altre fonti
CNET6 anni faOur Favorite Blenders of 2026 Are on Sale Ahead of Black Friday CNET49 min. faBrighten Up Your Day by Saving 20% Off Flashlights With Olight’s Black Friday Sale CNET41 min. faLive: Black Friday Deals Are Here. Shop Expert Picks Across Tech, Everyday Essentials and More at Up to 60% Off Golem.de55 min. faAnzeige: Logitech-Tastatur MX Keys S am Black Friday zum Sensationspreis auf Amazon PC-WELT1 h faLuminar zum Black Friday: KI-Bildbearbeitung für nur 79,20 Euro Latest from TechRadar1 h faThis is the pair of open earbuds to hunt down over Black Friday Latest from TechRadar1 h faBest AirPods Black Friday deals: all live savings on AirPods Pro 3 and more Computer Bild1 h faPhilips Sonicare DiamondClean 9000 zum Black Friday günstiger netzwelt.de2 h faESR startet mit Black-Friday-Rabatten: Diese AirPods-Hüllen lohnen sich jetzt netzwelt.de2 h faPlayStation 5 geschenkt: Diese Black-Friday-Aktion legt die Konsole gratis obendrauf netzwelt.de2 h fa6 Dyson-Staubsauger im Vergleich: Dieser Sauger wird am Black Friday überraschend zum Preis/Leistungssieger netzwelt.de1 h faMonitore im Angebot zum Black Friday: Gutes Bild für Office, Gaming und mehr Golem.de1 h faAnzeige: Akkuschrauber mit 20 Bits zum Black Friday erstmals unter 50 Euro bei Amazon PC-WELT1 h faDie günstigsten Handytarife an Black Friday von 10 GB bis Unlimited: Hier lohnt sich ein Wechsel PC-WELT1 h faBlack Friday 2026 bei LiberNovo: Ergonomische Bürostühle mit bis zu 44 Prozent Rabatt Latest from TechRadar2 h faThe best Black Friday robot vacuum deals: Dreame, Shark, Dyson, and Roborock Golem.de1 h faAnzeige: Topdon-Starthilfe-Powerbank für Kfz zum Black-Friday-Bestpreis nur rund 85 Euro heise online News2 h faBlack Friday: Die besten Kopfhörer zum Tiefstpreis – Sonos Ace, Nothing & Shokz Latest from Windows Central2 h faDell's Black Friday deals drop major savings on Alienware OLED monitors CNET2 anni faMake Every Night Game Night and Save $90 on the Nex Playground With This Black Friday Deal DEV Community1 h faThe app is part of the gadget: 14,000 App Store reviews of 28 device apps before Black Friday Latest from TechRadar2 h faBlack Friday tech deals under $100 / £100: Fire TV Sticks, earbuds, coffee machines and more Caschys Blog3 h faGoogle One: Black-Friday-Angebot mit bis zu 50 Prozent Rabatt netzwelt.de3 h faDem Testsieger ebenbürtig: Zum Black Friday stürzt Xiaomis stärkster E-Scooter im Preis ab Macerkopf.de3 h faFotos verbessern mit Aiarty: 52 % Rabatt + Gratisgeschenke zum Black Friday
Articoli simili
🔍 Verwandte News

Auch interessante Nachrichten Understanding Server Sent Events

Thematisch verwandte Begriffe: Understanding, Server, Sent, Events · 6 Treffer

Laden...

Caricamento dei video ...

Laden...

Caricamento degli articoli ...

Laden...

Caricamento dei video ...

Laden...

Caricamento degli articoli ...

Laden...

Caricamento dei video ...

Laden...

Caricamento degli articoli ...

Laden...

Caricamento dei video ...

Laden...

Caricamento degli articoli ...

Laden...

Caricamento dei video ...

💬 Caricamento dei commenti…
Trascina per aggiornare
Widgets & Topics
Loading widgets…
Nächster Beitrag