Skip to content

Commit

Permalink
[update] README
Browse files Browse the repository at this point in the history
Signed-off-by: Srinivasa Vasu <srinivasan.surprise@gmail.com>
  • Loading branch information
srinivasa-vasu committed Oct 5, 2023
1 parent b67da90 commit 38552e7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ tasks:
DATA_PATH: ybdb
command: |
mkdir -p ${GITPOD_REPO_ROOT}/${DATA_PATH}
yugabyted start --base_dir=${GITPOD_REPO_ROOT}/${DATA_PATH} --advertise_address=$HOST --background=true
yugabyted start --base_dir=${GITPOD_REPO_ROOT}/${DATA_PATH} --advertise_address=$HOST --cloud_location=ybcloud.pandora.az1 --background=true
- name: 1aa-ysql-shell
before: |
gp ports await 5433 && sleep 2
Expand All @@ -19,7 +19,7 @@ tasks:
gp ports await 9042
ycqlsh $(hostname -i) -e "CREATE KEYSPACE ALERTS"
command: |
ycqlsh $(hostname -i)
ycqlsh $(hostname -i) -k ALERTS
- name: 1b-import-deps
env:
KAFKA_VERSION: "3.5.1"
Expand Down
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,15 @@ We use the following services to build the data streaming pipelines:

To have a better getting started experience, we have added the Gitpod support to try this out yourself with a single click. You don't need to make any of the infrastructure components. All you need is to fork the source repo and launch the Gitpod terminal using the browser plugin.

![cdc-gitpod](assets/cdc.gif)
![cdc-gitpod](assets/cdc.gif)

### CDC event flow from YSQL to YCQL
Run the following command from `1aa-ysql-shell`:
```sql
insert into flight_schedule values('YB524', current_date, 'SIN', 'IND', now()::timestamp, (now()+interval '20 minutes')::timestamp, (now()+interval '20 minutes')::timestamp, (now()-interval '120 minutes')::timestamp, (now()-interval '90 minutes')::timestamp, (now()-interval '120 minutes')::timestamp, 'T4', 'T4');
```

Run the following command from `1ab-ycql-shell` to verify the changes:
```sql
SELECT * FROM flight_watch;
```
2 changes: 1 addition & 1 deletion flightwatch/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ spring:
group: flight_watch_consumer
cassandra:
contact-points: $HOST
local-datacenter: ybcloud
local-datacenter: pandora
keyspace-name: alerts
schema-action: CREATE_IF_NOT_EXISTS

0 comments on commit 38552e7

Please sign in to comment.