Glean is enhancing its data processing capabilities by implementing Apache Beam streaming pipelines to efficiently read and process a large corpus from MySQL. This approach replaces costly and fragile batch jobs, ensuring each document is re-processed at least once daily. The system utilizes a custom UnboundedSource and UnboundedReader within Apache Beam on Google Cloud Dataflow, with a scanner object managing parallel database reads and tracking cache state for infinite data streaming. This enables scalable and cost-effective processing of hundreds of millions of documents daily.
All Glean trails