Hi all. We have a streaming job that runs continuously. We need to be able to dynamically extract old data from a data warehouse and then process it in batch mode and then merge the resulting state into the already running streaming job. Is there a way to achieve that?
a
Alex Cruise
08/12/2022, 6:19 PM
the state processing API might be able to help
k
Ken Krugler
08/14/2022, 6:46 PM
You could have the batch job generate files to a directory that a FileSource in your streaming job is monitoring, and that becomes a stream that gets merged where appropriate to update state in your streaming job.
r
Ron Cohen
08/15/2022, 8:33 AM
thanks Ken. I'd need to find a way to encode the state in the files, right?
k
Ken Krugler
08/15/2022, 5:10 PM
Correct - but “encode the state” could just mean a simple text file format with key<tab>value (as a very simple example)