52

Stats displayed at https://stackoverflow.com/10m are dynamic. Are these real time stats and how are they queried over network?

9
  • 11
    Web sockets. Have you tried looking at the page source? Commented Aug 25, 2015 at 15:04
  • 16
    And are they real time?
    – NPC
    Commented Aug 25, 2015 at 15:07
  • 4
    The JavaScript module is called "realtime.js", but I cannot guarantee the data is actually gathered in real time -- it could lag a little behind the actual information. An SE dev could tell for sure. Commented Aug 25, 2015 at 15:08
  • 35
    It's probably "good enough to be called real time by anyone not afraid of getting corrected (in a very annoyed tone) by people who are into Real Time Computing."
    – Pekka
    Commented Aug 25, 2015 at 15:32
  • 2
    I would think that they are as current as your info is, what I mean is the indicator someone left you a comment, or changed rep etc.. Commented Aug 25, 2015 at 23:33
  • 1
    can anyone provide query with which i can verify the data?(data.stackexchange.com/stackoverflow/query/new)
    – NPC
    Commented Aug 26, 2015 at 11:04
  • 3
    Must-read follow-on to @Pekka웃's point: It Isn’t Your Father’s Realtime Anymore
    – kjhughes
    Commented Aug 26, 2015 at 12:34
  • 1
    @vaibhavmagar from the data.se FAQ "The data is updated early every Monday morning around 3:00 UTC." So the data.se will not be anywhere close to real time. Commented Aug 27, 2015 at 19:56
  • It is caching .
    – Travis J
    Commented Aug 27, 2015 at 20:22

1 Answer 1

13

That page, as well as most others with similarly updated information are using Web Sockets.

The information is not likely 'real time', but it is likely pretty current.

11
  • 44
    I don't see how this answers the question. I could use web sockets to retrieve information one year old. Web sockets is a technology, I think the question is more conceptual, like: is it an estimate based on the trends of the time series or is it a count based on the database? Commented Aug 26, 2015 at 12:04
  • 8
    @J.C.Leitão: I think the second line answers the question. Probably the first and second line should be swapped to get through perfect answer correctness.
    – Ben
    Commented Aug 26, 2015 at 12:08
  • 3
    @J.C.Leitão OP also asks "how are they queried", isn't "Web Sockets" an answer to that?
    – Jeroen
    Commented Aug 26, 2015 at 12:12
  • 8
    @J.C.Leitão: It helps if you read the WHOLE answer before commenting.
    – GEOCHET
    Commented Aug 26, 2015 at 12:27
  • 8
    @GEOCHET, What makes "likely pretty current" factually more correct than likely pretty old, likely pretty BS or likely I don't know and I just wrote likely pretty current? Commented Aug 26, 2015 at 15:25
  • 1
    @J.C.Leitão: What difference does it make? Did you read the question? It asked if it was real time. And the answer is that is not likely to be real time. What part are you having difficulty in understanding?
    – GEOCHET
    Commented Aug 26, 2015 at 19:49
  • 17
    -1. It's fine to be pedantic about computing terms, but the OP was not using one. "Real time" is an ordinary English phrase. (If the OP had asked about swift updates, would you reply that the updates are not generated by Swift?) If you remove that pedantry, then the rest of your answer amounts to "yeah, probably".
    – ruakh
    Commented Aug 26, 2015 at 21:39
  • 1
    Updated from where? A linear regression on SE server? Commented Aug 26, 2015 at 21:42
  • 1
    Or one of you could have posted that the page source used StackExchange.realtime.init instead of bitching back and forth about it. Jesus Christ in a chicken basket. Commented Aug 27, 2015 at 18:49
  • 1
    If you're all going to be pedantic then no its not real-time because nothing is. When someone speaks you don't hear it in real-time there is a very very minuscule delay before you hear it. All silliness aside if you just think about what the page is trying to show, it's clear that the information would be very close to current otherwise what is the point. Commented Aug 28, 2015 at 8:34
  • 1
    I like how so many people are trying to say that my answer is wrong, but they have yet to provide one.
    – GEOCHET
    Commented Aug 28, 2015 at 19:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .