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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: A SaaS that pulls from various sources with multiple concurrent tenants.

1 点作者 tajddin超过 12 年前
For a personal project, I’m designing a system that pulls information from various sources, including IMAP, twitter and facebook (and others). Ideally, I’d like the user to be notified when the system receives data from any of these sources (thus timeliness is important), but I’d like some input into how best to accomplish this when there are potentially hundreds of concurrent users.<p>To solve part of the problem, I will be creating a separate service on a different AWS instance that connects to each data source and interacts with the DB independently from IIS.<p>Should this be done on an interval (say, every five minutes), looping through each of the users’ accounts and pulling data, or alternatively, should I use a multithreading approach, where each account has an associated polling thread?<p>Keep in mind, the technologies used are: ASP.NET MVC 4, SQL Server.<p>Your insight is much appreciated.

1 comment

shyn3超过 12 年前
I would start out with a high interval then slowly decrease for each individual user based on the number of times they post on each service.<p>You wouldn't want to go to my twitter page 20 times an hour when I only post once in a month. It might make more sense to check every 30mins to 1hr.
评论 #4667266 未加载