Giter Site home page Giter Site logo

kffl / bunny-rest-proxy Goto Github PK

View Code? Open in Web Editor NEW
41.0 2.0 4.0 1.08 MB

HTTP message broker built on top of RabbitMQ :rabbit::incoming_envelope:

Home Page: https://www.bunnyrp.com

License: Apache License 2.0

JavaScript 0.62% TypeScript 98.94% Dockerfile 0.44%
messaging rabbitmq message-broker amqp-proxy rest-proxy http-messages

bunny-rest-proxy's People

Contributors

dependabot[bot] avatar kffl 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bunny-rest-proxy's Issues

the problem with the dead message policy

hello, I ran into such a problem that when specifying a dead message policy, I get this error(I saw a message in the documentation that the library is not fully ready yet, was this meant):

/app/build/subscriber/retry-manager.js:18
2023-09-11 17:57:48 this.logger.warn(Exceeded the maximum number of delivery attempts for the message ID: ${msg.properties.messageId}, ${this.deadLetterPolicy.descripeBehavior} message);
2023-09-11 17:57:48 ^
2023-09-11 17:57:48
2023-09-11 17:57:48 TypeError: Unable to read undefined properties (reading 'descripeBehavior')

Could this be a problem related to incorrect configuration file configuration? Here is my configuration.yml


publishers:

  • queueName: json-queue
    Content Type: json
  • Queue name: my_queue
    Content Type: json
    • queueName: dead
      contentType: json
  • Queue name: binary queue
    Content type: binary
    consumers:
  • queueName: json-queue
  • Queue name: my_queue
  • Queue name: binary queue
  • Queue name: dead
  • subscribers:
  • queueName: json queue
    purpose: http://host.docker.internal:8001/subscribe
    preliminary selection: 2
    Retreat strategy: constant
    attempts: 2
    Repeated delay: 1000
  • queueName: json queue
    purpose: http://host.docker.internal:8002/subscribe
    preliminary selection: 2
    Retreat strategy: constant
    attempts: 2
    Repeated delay: 1000
  • queueName: json queue
    purpose: http://host.docker.internal:8003/subscribe
    preliminary selection: 2
    Retreat strategy: constant
    attempts: 2
    Repeated delay: 1000
    deadLetterPolicy: dql
    deadLetterQueueName: dead

Prometheus metrics

In an effort to improve BRP's observability in production environments, runtime metrics could be collected and exposed for Prometheus to scrape. These may include:

  • a default set of Node.js metrics collected via prom-client
  • incoming request latency histograms per publisher/consumer
  • PUSH message delivery latency histograms per subscriber target
  • publisher/subscriber/consumer counters by success/error status

Logging improvements

The following improvements could be made to logging:

  • Include additional logger calls at the highest verbosity level (trace) for easier debugging.
  • Prefix logs with unified context info specifying the component (publisher/subscriber/consumer with its corresponding queue name) in which the logging was triggered and providing message-specific information (message ID, correlation ID).

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.