简体   繁体   English

如何在2个或更多具有高性能的应用之间进行连接

[英]how to connect between 2 or more apps with high performance

I have different api's writed in nodejs and python. 我用nodejs和python写了不同的api。 what is a FAST way to call methods/events and transfer files between then? 在那之间调用方法/事件并传输文件的快速方法是什么?

is curl really fast for high volume of requests? 卷发真的可以快速处理大量请求吗? or is there another method to better performance? 还是有另一种方法可以改善性能?

maybe socket.io for a permanent connection? 也许用socket.io进行永久连接? or websockets? 或websockets?

Have a look at Redis and its pub/sub features. 看看Redis及其发布/订阅功能。

Redis does have a client for both Node.js and Python, so it should offer exactly the functionality you require. Redis确实具有Node.js和Python的客户端,因此它应该完全提供您所需的功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM