Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的 NodeJS 应用程序中使用 Twitter 的 Streaming API。我正在我的开发人员机器中启动和停止服务器。我的问题是 API 每次都会获取新数据吗?它是否在启动/停止 NodeJS 服务器时返回重复数据?
每个 Twitter 请求都会获取新数据;但是,根据具体要求,新数据可能与旧数据相同或不同。
没有所谓的“实时搜索 API”。您可能指的是 Twitter 的 Streaming API。如果是这种情况,那么您将不会收到重复的数据。