🔧 Programmierung 🕛 vor 2 Monaten 2 Min Lesezeit
0

Short Polling & Long Polling

↗ Quelle (dev.to)
🗣️ Stimme:

Both short polling and long polling are methods in which http requests are done in the client server interaction.



Short polling is the interaction between the client and server where the client sends a request to the server and gets a response immediately. It maybe the actual response that is the data it wanted else the case is when the data is not available. If the data is not available, then the client waits and sends the request again to get its response from the server. The waiting and sending request is done by the client here. So in short polling multiple connections are made between the client and server.



Long polling is where the client sends request to the server and the server waits for the data to be free and then gets the response and gives to the client. The server waits for mentioned period of time for receiving the data and sends the response to the client. Hence in long polling less connections are made between the client and server.



*Event Stream * - When a request is sent to the server and the response for it is not generated and sent as a whole, it is generated in parts or segments which are then and then sent to the client as response which is known as event stream. For example, Chatgpt generated the response for our query line by line and not as a whole patch of answer.

Vollständiger Original-Artikel
Den kompletten Beitrag mit allen Details direkt auf dev.to lesen.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
1 Quelle
Razer's new Tartarus V2 Pro is the weirdest gaming keyboard I've ever wanted, loaded with fancy switches and ergonomic relief
1 Quelle
HMX 6 mit Cortana-KI auf der zweiten RTX 5090 – Rückblick auf die HMX Pro
1 Quelle
Huawei ist gelungen, wovon Smartphone-Besitzer seit Jahren träumen
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Short Polling & Long Polling

Thematisch verwandte Begriffe: Short, Polling, Long · 6 Treffer

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...