Coder Social home page Coder Social logo

streaming-dataflow-examples's Introduction

Beam Pipelines - Streaming Analytics Techniques

This project is a demo for several Beam techniques to do streaming analytics.

Running the demo

  1. Create a GCP project
  2. Create a file in terraform directory named terraform.tfvars with the following content:
    project_id = "<GCP Project Id>"
    
    There are additional Terraform variables that can be overwritten; see variables.tf for details.
  3. Run the following commands:
    export PROJECT_ID=<project-id>
    export GCP_REGION=us-central1
    export BIGQUERY_REGION=us-central1
  4. Create BigQuery tables, Pub/Sub topics and subscriptions, and GCS buckets by running this script:
    source ./setup-env.sh
  5. Start event generation process:
    ./start-event-generation.sh
  6. Start the event processing pipeline:
    (cd pipeline; ./run-streaming-pipeline.sh)
  7. Optionally, start the pipeline which will ingest the findings sent as pubsub messages into BigQuery:
    ./start-findings-to-bigquery-pipeline.sh

Cleaning up

  1. Shutdown the pipelines via GCP console (TODO: add scripts)
  2. Run this command:
    cd terraform; terraform destroy

Alternatively, delete the project you created.

Disclaimer

The techniques and code contained here are not supported by Google and is provided as-is (under Apache license). This repo provides some options you can investigate, evaluate and employ if you choose to.

streaming-dataflow-examples's People

Contributors

slilichenko avatar

Stargazers

 avatar

Watchers

 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.