Giter Site home page Giter Site logo

Comments (2)

sunyonggang avatar sunyonggang commented on August 28, 2024

可以忽略上面的1,3.
我现在使用的是 Hello World
先启动consume(),然后向queue中传输数据

    for (i <- [1, 100w]) {
        ch.sendToQueue(queue, new buffer(i + message));
    }
  1. 我看到的是sendToQueue这边完成之后,consume才开始输出,不是应该一边生产一边输出么?还是我理解错了?
  2. 如上面的例子,将[1, 100w]全部导入,我打算在consume端构造http.request()请求,但这中间rabbmitmq好像也没有有效的参数指定queue中一次保存多少,或者取出多少数据?

from wechat-dev-with-nodejs.

sunyonggang avatar sunyonggang commented on August 28, 2024

这边后来没有用rabbitmq,考虑了generic-pool之类的,还是有点问题。后面参考这里 node-js-process-out-of-memory-in-http-request-loop

from wechat-dev-with-nodejs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.