tyro / rabbit-amazon-bridge

A service that routes JSON messages back and forth between AWS and rabbitmq
Apache License 2.0
18 stars 6 forks source link

Move transformation from the rabbit from element to the top level #4

Closed maccac closed 5 years ago

maccac commented 5 years ago

In order to provide for more flexibility for later changes and improve the base model.

e.g.

 "from" : {
      "rabbit": {
        "exchange": "exchange-name-1",
        "queueName": "queue-name-1",
        "routingKey": "routing-key-1"
      }
    },
    "transformationSpecs": {
       "type": "jolt",
       "transformations":  [{
         "operation": "shift",
         "spec": {
           "fieldA": "fieldA",
           "fieldB": "fieldB"
         }
     }]
    },
    "to" : {
      "sns": {
        "name":"rabbit-bridge-test-topic"
      }
    }
  }