Coder Social home page Coder Social logo

facile-it / rabbitmq-consumer Goto Github PK

View Code? Open in Web Editor NEW
27.0 27.0 3.0 206 KB

A configurable RabbitMQ consumer made in Rust, useful for a stable and reliable CLI commands processor.

License: MIT License

Rust 98.98% Dockerfile 0.64% Shell 0.38%
cli commands consumer mysql rabbitmq-consumer rust

rabbitmq-consumer's People

Contributors

emulator000 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

rabbitmq-consumer's Issues

How to increase prefetch count?

Hi,
I would like to ask if it is possible to configure the prefetch count of a queue. The default seems to be 1.
I couldn't find anything in the configuration file, but maybe you can help me.

Thanks!

Possibility to specify exchange and routing keys in toml config

Hi,
In my rabbitmq configuration, I am using exchanges with routing keys.
We noticed that when we delete and recreate a queue, the exchange configuration of the queue is lost.
We were wondering if it is possible to include something in the toml configuration file to specify to which exchange the queue is binded and eventually a routing key.

Thanks,

Infinite loop on long command execution

Hi,
i found a strange behavior if i execute a symfony command that have a long execution (20 minutes).
Consumer receive a timeout in the channel and after some minutes command finish execution correctly and consumer told me that he removed it from the queue, but is not true because the next job he execute is the same job before.
So this long running execution trigger timeout again and again inside a loop where consumer is never able to remove this job from the queue.
Here are the logs of the issue:

cron_test.1.5qusd42axrn4@node3    | 2021-05-26T07:01:57 [INFO] - [update] Executing command "bin/console -vvv app:cron-test --body eyJjcm9uT" on consumer #0
cron_test.1.5qusd42axrn4@node3    | 2021-05-26T07:17:57 [ERROR] - Channel closed on channel 47 by 0:0 => AMQPError { kind: Soft(PRECONDITIONFAILED), message: ShortString("PRECONDITION_FAILED - consumer ack timed out on channel 47") } => PRECONDITION_FAILED - consumer ack timed out on channel 47
cron_test.1.5qusd42axrn4@node3    | 2021-05-26T07:24:47 [INFO] - [update] Command "bin/console -vvv app:cron-test --body eyJjcm9uT" succeeded on consumer #0, message removed.
cron_test.1.5qusd42axrn4@node3    | 2021-05-26T07:24:47 [INFO] - Error (MessageError(LapinError(InvalidChannelState(Closed)))), waiting 1 seconds...
cron_test.1.5qusd42axrn4@node3    | 2021-05-26T07:24:48 [INFO] - Managing queues...
cron_test.1.5qusd42axrn4@node3    | 2021-05-26T07:24:48 [INFO] - [update] Created channel with id: 48
cron_test.1.5qusd42axrn4@node3    | 2021-05-26T07:24:48 [INFO] - [update] Queue created
cron_test.1.5qusd42axrn4@node3    | 2021-05-26T07:24:48 [INFO] - [update] Consumer #0 declared "updatedbytmdb_consumer_0"
cron_test.1.5qusd42axrn4@node3    | 2021-05-26T07:24:48 [INFO] - [update] Executing command "bin/console -vvv app:cron-test --body eyJjcm9uT" on consumer #0

Implement a Database cache

In order to avoid database overloads with many queries per received message with the DB configuration enabled, develop a timed and configurable cache.

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.