[英]How does the “plumbing” of real-time (node/socket.io) work?
I'm currently building a real-time web application that utilizes the MEAN stack (Mongo,Express,Angular,Node). 我目前正在构建一个利用MEAN堆栈(Mongo,Express,Angular,Node)的实时Web应用程序。 My question relates to how Node (and more specifically Socket.io) work in a real-time app which makes calls to an API (in this case Instagram).
我的问题与Node(尤其是Socket.io)在实时应用程序中的工作方式有关,该应用程序调用API(在本例中为Instagram)。
I'm subscribing to several locations (lat/lon coordinates) with the Instagram API. 我正在使用Instagram API订阅多个位置(纬度/经度坐标)。 I want my web app to automatically add photos as they are taken (and geo-tagged) around these locations.
我希望我的网络应用在这些位置周围拍摄(并带有地理标签)时自动添加照片。
How I THINK this will work: 我如何认为这将起作用:
Does this seem reasonable at a detailed level or am I missing (even some tiny) steps? 从详细的角度看,这似乎合理吗?还是我错过了(甚至是很小的)步骤?
This can be reduced to a single step: 这可以简化为一个步骤:
You may need to watch out for the amount of data that can be sent via sockets. 您可能需要注意可以通过套接字发送的数据量。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.