gearpump-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From huafengw <...@git.apache.org>
Subject [GitHub] incubator-gearpump pull request #178: [GEARPUMP-303] add a RabbitMQ sink to ...
Date Fri, 05 May 2017 09:46:36 GMT
Github user huafengw commented on a diff in the pull request:

    https://github.com/apache/incubator-gearpump/pull/178#discussion_r114962623
  
    --- Diff: external/rabbitmq/README.md ---
    @@ -0,0 +1,21 @@
    +# Gearpump RabbitMQ
    +
    +Gearpump integration for [RabbitMQ](https://www.rabbitmq.com/)
    +
    +## Usage
    +
    +The message type that RMQSink is able to handle including:
    +
    + 1. String
    + 2. Array[Byte]
    + 3. Sequence of type 1 and 2
    +
    +Suppose there is a DataSource Task will output above-mentioned messages, you can write
a simple application then:
    +
    +```scala
    +val sink = new RMQSink(UserConfig.empty, "$tableName")
    +val sinkProcessor = DataSinkProcessor(sink, "$sinkNum")
    +val split = Processor[DataSource]("$splitNum")
    +val computation = split ~> sinkProcessor
    +val application = StreamApplication("RabbitMQ", Graph(computation), UserConfig.empty)
    +```
    --- End diff --
    
    Probably we also need some configuration doc here, like  `rabbitmq.connection.host ` etc.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message