JetBrains / guide

The JetBrains Guide is a collection of resources for learning JetBrains IDEs.
https://www.jetbrains.com/guide
Other
26 stars 12 forks source link

Confusion about long-polling in the HTMX tutorial #13

Closed FantasyTeddy closed 1 year ago

FantasyTeddy commented 1 year ago

Hi, I'm currently reading through the excellent HTMX for ASP.NET Core Developers tutorial and I'm a little bit confused about the term "long-polling" in the Long-Polling to get recent updates chapter.

My understanding of long-polling is, that it does not require constant client-side polling (as in the tutorial example), but allows the server to delay its response until something "interesting" happens.

For the provided stock value example, I would have expected the following:

Is my understanding of long-polling wrong, or is the example just "polling"?

pauleveritt commented 1 year ago

Nudge @khalidabuhakmeh

khalidabuhakmeh commented 1 year ago

I guess I've been using the term interchangeably, but there seems to be a distinction. You are correct. Thanks for teaching me something.

FantasyTeddy commented 1 year ago

Thank you for confirming. I'm glad I did not misinterpret something :)