Giter Club home page Giter Club logo

amqplib-rpc's People

Contributors

tjmehta avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

amqplib-rpc's Issues

Inefficient RPC for unique connection/channel applications

There are applications where an unique connection and channel are used to communicate with a RabbitMQ server.

I measured ~500 ms when creating a connection, ~100 ms creating the channel. Clients could cache the connection and avoid the greater overhead. But still there's a quite large ~100 ms overhead.

It would be really nice if the first parameter of the rpc function were either a connection or a channel. If it is a channel then we probably shouldn't close it at the end of the operation.

What do you think?

Definition types

Hi. Congratulations by your package.

Can you make definition types for your lib, to I can use on typescript?

Thanks

TypeError: channel.assertQueue(...).then(...).catch is not a function

Unfortunately, doesn't work with [email protected], because of old when library

TypeError: channel.assertQueue(...).then(...).catch is not a function
    at /Users/pnedelko/projects/elastic/api/node_modules/amqplib-rpc/lib/request.js:99:15
    at Object.then (/Users/pnedelko/projects/elastic/api/node_modules/when/when.js:355:15)
    at /Users/pnedelko/projects/elastic/api/node_modules/when/when.js:253:12
    at /Users/pnedelko/projects/elastic/api/node_modules/when/when.js:417:5
    at Immediate.drainQueue [as _onImmediate] (/Users/pnedelko/projects/elastic/api/node_modules/when/when.js:735:4)
    at tryOnImmediate (timers.js:543:15)
    at processImmediate [as _immediateCallback] (timers.js:523:5)

correlation id missing when trying to communicate between different rabbitmq rpc library

I am using spring amqp for my service written in Java, and my colleague created a service using nodejs and he is using amqplib-rpc. The problem is when I tried to request from spring amqp to amqplib-rpc it raise an error that "reply() cannot reply to a message without 'correlationId'". It said that spring amqp automatically creates a correlationid. In fact, its ok when I use spring amqp to spring amqp request

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.