halfcrazy
V2EX  ›  Node.js

NODE web 应用中,对于耗时的运算一般怎么处理?

  •  
  •   halfcrazy · May 23, 2015 · 4783 views
    This topic created in 4041 days ago, the information mentioned may be changed or developed.
    需要在响应中及时返回运算结果的。
    7 replies    2015-05-24 20:18:49 +08:00
    phoenixlzx
        1
    phoenixlzx  
       May 23, 2015   ❤️ 1
    C++
    wdhwg001
        2
    wdhwg001  
       May 23, 2015 via iPhone   ❤️ 1
    cluster可以保证主线程不被阻塞。
    halfcrazy
        3
    halfcrazy  
    OP
       May 23, 2015
    @wdhwg001 这个跟用pm2比有什么异同么
    yydcool
        4
    yydcool  
       May 24, 2015
    用C写一个外部程序调用
    zhonghua
        5
    zhonghua  
       May 24, 2015
    用c++写一个服务,专门进行耗时运算,使用node rpc调用,返回结果
    yyw
        6
    yyw  
       May 24, 2015
    @zhonghua 恩。
    anubiskong
        7
    anubiskong  
       May 24, 2015
    c
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   847 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 20:49 · PVG 04:49 · LAX 13:49 · JFK 16:49
    ♥ Do have faith in what you're doing.