TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: How to implement realtime tracking in a webapp

1 点作者 hueking超过 10 年前
I recently started to help out a startup which already had some software in place.<p>The front-end is written in Angular.<p>We wish to track activity of the users, especially how much people are currently active on a page(actually thats a route).<p>Currently we have a polling mechanism in place to update the data on the front-end. So I attached additional logic which creates a REDIS key with with the IP and a cookie, to track each client. Keys are structured in a similar manner:<p>viewing:resource:ip:cookie<p>And there is a TTL on each key. Consecutive call refresh that key. Now I only count the viewing:resource:* keys and I have a number of people on this resource.<p>But the solution is done in an urge of drunken &#x27;brilliance&#x27;. How do the big players track concurrent online visitors on webaps?

2 条评论

charford超过 10 年前
Can&#x27;t you use google analytics for this?
评论 #9071652 未加载
pmtarantino超过 10 年前
MixPanel?