Git Product home page Git Product logo

crovel's Introduction

Crovel

Crovel is not Shovel but does almost the same, namely to forward messages from one RabbitMQ exchange to another. Only, it does this with a crovel instead of a shovel.

Usage

Set the following environment variables to wire things up

Environment Description Required Default
CROVEL_SRC_EXCHANGE Name of source exchange yes
CROVEL_SRC_ROUTING_KEY Source routing key no #
CROVEL_SRC_EXCHANGE_TYPE Source exchange type no topic
CROVEL_DEST_EXCHANGE Destination exchange yes
CROVEL_DEST_EXCHANGE_TYPE Destination exchange type no topic

Deploy

Deploy to Cloud Foundry and bind the RabbitMQ service to the app

Example manifest

---
applications:
- name: crovel
  docker:
    image: loafoe/crovel:latest
  instances: 1
  memory: 32M
  disk_quota: 128M
  health-check-type: process
  env:
    CROVEL_SRC_EXCHANGE: foo
    CROVEL_DEST_EXCHANGE: bar
  services:
  - rabbitmq

Example Terraform

resource "cloudfoundry_app" "crovel" {
  name         = "crovel"
  space        = data.cloudfoundry_space.space.id
  memory       = 32
  disk_quota   = 128
  docker_image = "loafoe/crovel:latest"
  health_check_type = "process"
  environment = {
    CROVEL_SRC_EXCHANGE  = "foo"
    CROVEL_DEST_EXCHANGE = "bar"
  }
  service_binding {
    service_instance = cloudfoundry_service_instance.rabbitmq.id
  }
}

Ideas

  • Support forwarding to different RabbitMQ cluster
  • Support mulitple exchange forwards per instance
  • Configurable durability

Contact / Getting help

[email protected]

License

License is MIT

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.