Giter Club home page Giter Club logo

Comments (6)

videlalvaro avatar videlalvaro commented on July 19, 2024

I'll have to look into more details into this… but as a quick answer I've had a latency of 1 message taking 2ms for an RPC request. So something must be missconfigured

from rabbitmqbundle.

sliver avatar sliver commented on July 19, 2024

I find exchange_declare() may be the key. (RabbitMq/Producer.php, line:11)
When move it out of the publish() method, I can get about 1500 msg/s.

from rabbitmqbundle.

videlalvaro avatar videlalvaro commented on July 19, 2024

You are right… that line shouldn't be there. I will try to understand why I put it there in the first place.

from rabbitmqbundle.

infernojaxon avatar infernojaxon commented on July 19, 2024

maybe this willl helpful

public function exchangeDeclare()
{
    $this->ch->exchange_declare($this->exchangeOptions['name'], $this->exchangeOptions['type'], false, true, false);
}

public function publish($msgBody, $routingKey = '')
{
    $msg = new \AMQPMessage($msgBody, array('content_type' => 'text/plain', 'delivery_mode' => 2));
    $this->ch->basic_publish($msg, $this->exchangeOptions['name'], $routingKey);
}

from rabbitmqbundle.

videlalvaro avatar videlalvaro commented on July 19, 2024

Fixed. Please confirm. Later I will add my benchmark code.

from rabbitmqbundle.

sliver avatar sliver commented on July 19, 2024

Got 1700+ msg/s. Event performance is better.

from rabbitmqbundle.

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.