Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pubsub as an option for server #58

Closed
adaminsta opened this issue Feb 23, 2024 · 7 comments · Fixed by datacontract/datacontract-specification#33
Closed

Add pubsub as an option for server #58

adaminsta opened this issue Feb 23, 2024 · 7 comments · Fixed by datacontract/datacontract-specification#33

Comments

@adaminsta
Copy link

We are consuming data from a pub-sub topic and putting it into snowflake, but there is no pubsub option for servers. Need something like this:

source:
  type: pubsub
  project: gcp_project_name
  name: my_topic
 endpoint:
    type: snowflake
    account: xxxxxxxx
    database: my_db
    schema: my_schema
@jochenchrist
Copy link
Contributor

@adaminsta thanks for suggesting, I think this makes sense, equivalent to kafka.

@jochenchrist
Copy link
Contributor

@adaminsta
Copy link
Author

Looks great!

@jochenchrist
Copy link
Contributor

@jochenchrist
Copy link
Contributor

Do you have the need for testing the messages in pub/sub?
Do you have any suggestions what engines could help here?

@adaminsta
Copy link
Author

adaminsta commented Feb 23, 2024

We are planning to consume messages from pubsub with dataflow and then merge the data into snowflake tables. My initial idea was to validate format of the input in the dataflow job by comparing with the contract yaml.

An even more powerful solution would be if we can genereate a pubsub schema (only avro/protocol buffer) from the contract yaml, which I can attach to the pubsub topic (https://cloud.google.com/pubsub/docs/schemas)

@simonharrer
Copy link
Contributor

We're planning on such export functionality. See #56 and #57 Feel free to provide us some examples (data contract -> avro schema, data contract -> protobuf) there to help us drive the implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants