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_re.sh
To run Geode, run:
./setup_geode.sh
You can build the app with:
mvn clean package install
To run the app you'll need an API token from finnhub.io, then just run:
token=<FINNHUB_TOKEN> mvn exec:java
To Run Redis Connect run:
./setup_rc.sh
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"
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: */*"
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: */*"