Giter VIP home page Giter VIP logo

copper2go-tools-bridge's Introduction

copper2go-tools-bridge

Simple workflow that submits the workflow data to a RequestChannel and delivers the RequestChannel's response as workflow reply. In no reply is supported be the (workflow) receiver, it will be skipped.

It can be deployed in a copper2go container. You will find more in https://github.com/Keymaster65/copper2go

Example

This is an example Bridge, set submits HTTP body into Kafka topic.

Configuration

Kafka Container

May be you want to start a Kafka service first? This one was tested on Windows: https://raw.githubusercontent.com/Keymaster65/copper2go-tools-bridge/master/docker-compose.yml It can be start with

docker-compose up

Docker Windows Host

Pay attention to the "host.docker.internal". On Windows you can use that as kafkaHost in the following configuration steps.

copper2go Configuration

Download the test configuration https://raw.githubusercontent.com/Keymaster65/copper2go-tools-bridge/master/src/systemTest/resources/de/wolfsvl/copper2go/workflow/tools/bridge/configHttpKafkaBridge.json and change it to your needs.

Start copper2go Container

Now

docker run -d -e C2G_CONFIG="$(cat configHttpKafkaBridge.json)" --pull always --name copper2go -p 59665:59665 --rm registry.hub.docker.com/keymaster65/copper2go:4

Test Payload

Send data to copper2go using curl

curl --data Wolf http://localhost:59665/copper2go/3/api/twoway/1.0/Bridge

If should return something like

{"checksum":3897875225,"offset":0,"partition":0,"timestamp":1641063641561,"topic":"targetTopic"}

This is the result in Kafka, where the payload was sent to a topic (targetTopic).

Trouble Shouting

If the return is unexpected, like

BridgeRuntimeException: Timeout, could call RequestChannel.

then check your containers and their configurations. You can get deeper, if you inspect the container logs.

copper2go-tools-bridge's People

Contributors

keymaster65 avatar

Watchers

James Cloos 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.