Pitt-Google integration with TOM Toolkit
This repo contains 3 proof-of-concept implementations of a TOM Toolkit GenericBroker
class which fetch alerts from Pitt-Google.
Contact Troy Raen with questions or for authentication access (Slack @troyraen, or troy.raen@pitt.edu).
Basic Overview
Implementation |
Connects to |
Via |
Comments |
---|---|---|---|
StreamRest |
Pub/Sub streams |
REST API |
Closest to “standard” implementation using HTTP requests. Uses batch-style message pulls. |
StreamPython |
Pub/Sub streams |
Python client |
Recommended for listening to a full night’s stream. Uses a streaming pull in a background thread. |
DatabasePython |
BigQuery database |
Python client |
Each implementation relies on 2 classes, a Broker and a Consumer:
Broker |
Consumer |
---|---|
|
|
|
Here we use Broker and Consumer generically to refer to any of the specific
implementations, which have names like BrokerStreamRest
.