Git Product home page Git Product logo

bigquery_subscription_demo's Introduction

short demo to show bigquery subscription

  • set the project and other naming if you like in config.py
  • run topic2topic.py in the background ./topic2topic.py & this will create a local topic with a protocol buffer schema, and subscribe to public taxi rides topic (pulling from the subscriptino and publishing to the local topic)
  • source pubsub_bq.sh.sh and run start_pubsub_bq this will create a dataset, a table with the schema, grant pubsub access to the table and create a big query subscription to the new topic
  • cleanup stop topic2topic and remove the dataset and all topics/subscriptions/schemas in the project matching "taxi"! (so be careful not to loose stuff if your project has other topics/subscriptions).
  • query_bq to list events in bq table
  • Note: doubles & floats in msg schemas do not work at this time, so for the sake of this small demo, I've removed the fields from the bq table and ignored missing fields!

bigquery_subscription_demo's People

Contributors

edennuriel avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.