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: Sichere Programmierung

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)

💬 Topluluk tartışması ve yorumlar

🌐 Ana sohbete katıl

Tartışmayı başlat: Social Chat yayın akışı veya yukarıdaki ekleme formuyla uzman katkısı gönder.

🔍 CTI & Forensik

Siber Tehdit İstihbaratı ve Adli Bilişim

ATT&CK Gezgini · IoC Radarı · İstismar Kanıtları
CTI Threat Relationship Graph
Akteure · Techniken · Beziehungen
2 Knoten · 1 Relationen
CVE / Incident Threat Actor Software MITRE ATT&CK CWE Weakness IoC
Security Briefing Ücretsiz · Tek tıkla abonelikten çıkma

Zeka Digest - ücretsiz

Günlük en önemli güvenlik haberi · herhangi bir zamanda alınabilir

Community Rating & Social Proof
⭐ Okuyucu Puanı
–
Ø / 5.0
Hiçbir okuyucu henüz yorum yok
Bu makale yararlı mıydı?
0
Değerlendirmenizi gönderin
Detaylı değerlendirme (isteğe bağlı)
İçerik ve Kalite
Kaynak ve Güvenilirlik
Güncellik

İlgili Story Cluster & Kaynaklar (vector AI)

6 Cluster
13 Kaynaklar
ZDI-26-1078: llama.cpp GGUF File Parsing MINICPM-V Heap-based Buffer Overflow Remote Code Execution Vulnerability
ZDI: Published Advisories 14 saat önce
12 diğer kaynaklar
ZDI: Published Advisories14 saat önceZDI-26-1071: llama.cpp GGUF File Parsing Integer Overflow Remote Code Execution Vulnerability ZDI: Published Advisories14 saat önceZDI-26-1077: llama.cpp GGUF File Parsing HunyuanVL Heap-based Buffer Overflow Remote Code Execution Vulnerability ZDI: Published Advisories14 saat önceZDI-26-1076: llama.cpp Multimodal GGUF File Parsing Out-Of-Bounds Write Remote Code Execution Vulnerability ZDI: Published Advisories14 saat önceZDI-26-1075: llama.cpp GGUF File Parsing set_swa_pattern Heap-based Buffer Overflow Remote Code Execution Vulnerability ZDI: Published Advisories14 saat önceZDI-26-1073: llama.cpp MTMD Multimodal GGUF File Parsing Out-Of-Bounds Read Denial-of-Service Vulnerability ZDI: Published Advisories14 saat önceZDI-26-1074: llama.cpp GGUF File Parsing GEMMA4A Heap-based Buffer Overflow Remote Code Execution Vulnerability ZDI: Published Advisories14 saat önceZDI-26-1072: llama.cpp GGUF File Parsing Integer Overflow Denial-of-Service Vulnerability ZDI: Published Advisories14 saat önceZDI-26-1056: (0Day) PyTorch Foundation PyTorch PT2 File Parsing Exposed Dangerous Method Remote Code Execution Vulnerability ZDI: Published Advisories14 saat önceZDI-26-1048: (0Day) Soda PDF Desktop PDF File Parsing Memory Corruption Remote Code Execution Vulnerability ZDI: Published Advisories14 saat önceZDI-26-1050: (0Day) Soda PDF Desktop PDF File Parsing Memory Corruption Remote Code Execution Vulnerability ZDI: Published Advisories14 saat önceZDI-26-1052: (0Day) PyTorch Foundation PyTorch PT2 File Parsing Code Injection Remote Code Execution Vulnerability ZDI: Published Advisories14 saat önceZDI-26-1049: (0Day) Soda PDF Desktop PDF File Parsing Out-Of-Bounds Write Remote Code Execution Vulnerability
Benzer katkılar
🔍 Verwandte News

Auch interessante Nachrichten Understanding Server Sent Events

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

Laden...

Contributions yüklenir ...

Laden...

Videolar yükleniyor...

Laden...

Contributions yüklenir ...

Laden...

Videolar yükleniyor...

Laden...

Contributions yüklenir ...

Laden...

Videolar yükleniyor...

Laden...

Contributions yüklenir ...

Laden...

Videolar yükleniyor...

Yorumlar yüklenir..
Update to Update
Widgets & Topics
Loading widgets…
Nächster Beitrag