How getstoix/template-dataflow-python works
Main Components
a) Input Sources:
• Cloud Storage (containing Shakespeare text files)
• Configuration Parameters (pipeline options)
b) Processing Components:
• Dataflow Flex Template Container
• Python Pipeline Components
• STOIX Dataflow Runner Container
c) Output Destinations:
• BigQuery (sharded tables)
• Temporary Storage (GCS)
Flow and Relationships
[Input Layer] -> [Processing Layer] -> [Output Layer]
Use these specific elements:
a) Input Layer:
• A configuration component showing pipeline parameters
b) Processing Layer:
• Inside the container, show:
• Dataflow Runner component
• Python Pipeline component with word counting logic
• STOIX orchestration layer above the container
c) Output Layer:
• BigQuery table with sharding indication
• Temporary GCS storage
Important Details to Highlight
• Blue: Google Cloud components (Storage, BigQuery)
• Green: Processing components (Dataflow)
• Orange: Configuration and parameters
• Gray: Container boundaries
• Clear labels for:
• Input file path (gs://dataflow-samples/shakespeare/...)
• Pipeline parameters (project, region, dataset, etc.)
• Output table naming pattern (including schedule date sharding)
Specific Architectural Elements
• Scheduling mechanism with STOIX
• Data transformation flow:
• Text input → Word counting → BigQuery output
• Temporary storage locations
• Service account authentication flow
Testing and Development Flow
A small separate section showing:
• Local development flow with Tox
• Testing pipeline with DirectRunner
• Production deployment with STOIX