Git Product home page Git Product logo

amqp's Introduction

Read AMQP 0.9 messages as a json source

Build Status

Example system config:

{
  "_id": "rabbitmq-trafikkdata",
  "type": "system:microservice",
  "docker": {
    "environment": {
      "CONFIG": {
        "queue": "myqueue",
        "decode_xml_body": true,
        "inactivity_timeout_seconds": 5,
        "hostname": "localhost",
        "port": 5672,
        "username": "guest",
        "password": "guest
      }
    },
    "image": "sesamcommunity/amqp",
    "port": 5000
  }
}

Example source pipe:

{
  "source": {
    "type": "json",
    "system": "rabbitmq-trafikkdata",
    "is_chronological": true,
    "supports_since": true,
    "url": "/"
  }
}

Example output from Cloudamqp:

$ curl localhost:5000/?limit=1 | jq .
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  4450    0  4450    0     0   101k      0 --:--:-- --:--:-- --:--:--  101k
[
  {
    "_updated": 0,
    "properties": {
      "content_type": "application/xml",
      "content_encoding": null,
      "headers": null,
      "delivery_mode": 2,
      "priority": null,
      "correlation_id": null,
      "reply_to": null,
      "expiration": null,
      "message_id": null,
      "timestamp": null,
      "type": null,
      "user_id": null,
      "app_id": null,
      "cluster_id": null
    },
    "body": {
      "d2LogicalModel": {
        "@xmlns": "http://datex2.eu/schema/2/2_0",
        "@modelBaseVersion": "2"
        [..]
      }
    }
  }
]

Limitations

  • One microservice pr queue
  • Acknowledges message before guaranteed delivery (!)

amqp's People

Contributors

baardbouvet avatar

Watchers

James Cloos avatar Melih Egemen Yavuz avatar Axel Borge avatar Tom Bech avatar Timur Samkharadze avatar Ashkan Vahidishams avatar Tarjei Næss Skrede avatar  avatar  avatar

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.