Skip to content

redis-field-engineering/redis-connect-geode-demo

Repository files navigation

Redis Connect Gemfire Trades Demo

This example streams live trading data from finnhub.io to Geode to help illustrate how to stream results from Geode to Redis via Redis Connect

Setup Redis Enterprise:

./setup_re.sh

Run Geode

To run Geode, run:

./setup_geode.sh

Build the App

You can build the app with:

mvn clean package install

Run the App

To run the app you'll need an API token from finnhub.io, then just run:

token=<FINNHUB_TOKEN> mvn exec:java

Run Redis Connect:

To Run Redis Connect run:

./setup_rc.sh

Configure Job In Redis Connect

To configure the job in redis connect, run the following curl command:

curl -v -X POST "http://localhost:8282/connect/api/v1/job/config/cdc-job" -H "accept: */*" -H "Content-Type: multipart/form-data" -F "file=@redis-connect-payloads/trades-job.json;type=application/json"

Kick off Initial Load Job

To kick off the initial load job, use this curl command

curl -X POST "http://localhost:8282/connect/api/v1/job/transition/start/cdc-job/load" -H "accept: */*"

Stream Data from Gemfire to Redis

To Stream the data from gemfire to Redis, use this _curl_command:

curl -X POST "http://localhost:8282/connect/api/v1/job/transition/start/cdc-job/stream" -H "accept: */*"

About

Live Stream trading data to geode

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published