-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e2fc720
commit 304a8e0
Showing
3 changed files
with
95 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,85 @@ | ||
# event-sync | ||
|
||
Event Sync is for syncing events from multiple sources to multiple destinations, | ||
targetted for adhoc events, where sources support acknowledgement functionality. | ||
Event Sync is for syncing events from multiple sources to multiple destinations, targetted for adhoc events, where sources support acknowledgement functionality. | ||
|
||
## suported | ||
|
||
- input sources: | ||
- Google Pub/Sub | ||
- destination: | ||
- Google BigQuery | ||
- Streaming | ||
- Load Jobs (uses Google Cloud Storage) | ||
- Google Cloud Storage | ||
|
||
## Config Example | ||
|
||
```json | ||
{ | ||
"jobs": [ | ||
{ | ||
"name": "app-events", | ||
"suspend": false, | ||
"source": { | ||
"type": "google-pubsub", | ||
"pubsubConfig": { | ||
"projectId": "gcp-project", | ||
"subscriptionId": "pubsub-sub", | ||
"maxOutstandingMessages": 5000, | ||
"attributeKeyName": "event_type" | ||
} | ||
}, | ||
"filters": [ | ||
{ | ||
"type": "attribute", | ||
"name": "event_name", | ||
"action": "ingest", | ||
"target": { | ||
"table": "bq-table" | ||
}, | ||
"schema": [ | ||
{ | ||
"name": "ts", | ||
"type": "TIMESTAMP" | ||
}, | ||
{ | ||
"name": "field1", | ||
"type": "STRING" | ||
}, | ||
{ | ||
"name": "field1", | ||
"type": "STRING" | ||
}, | ||
{ | ||
"name": "field3", | ||
"type": "STRING" | ||
} | ||
] | ||
} | ||
], | ||
"destination": { | ||
"type": "google-storage-load", | ||
"timestampColumnName": "ts", | ||
"timestampFormat": "2006-01-02T15:04:05.999999999Z", | ||
"timePartitioningType": "DAY", | ||
"expiration": "2160h", | ||
"clusterBy": [ | ||
"field1", | ||
"field2", | ||
"field3" | ||
], | ||
"bigqueryConfig": { | ||
"projectId": "gcp-project", | ||
"dataset": "bq-dataset" | ||
}, | ||
"googleStorageConfig": { | ||
"projectId": "gcp-project", | ||
"bucket": "gcs-bucket", | ||
"blobPrefix": "blob-prefix" | ||
}, | ||
"batchSize": 1000 | ||
} | ||
} | ||
] | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters