Overview
Introduction
Flownode provides a simple streaming process (known as flow) ability to the database.
Flownode manages flows which are tasks that receive data from the source and send data to the sink.
Flownode support both standalone and distributed mode. In standalone mode, Flownode runs in the same process as the database. In distributed mode, Flownode runs in a separate process and communicates with the database through the network.
Components
A Flownode contains all the components needed for the streaming process of a flow. Here we list the vital parts:
- A
FlownodeManagerfor receiving inserts forwarded from theFrontendand sending back results for the flow's sink table. - A certain number of
FlowWorkerinstances, each running in a separate thread. Currently for standalone mode, there is only one flow worker, but this may change in the future. - A
Flowis a task that actively receives data from thesourceand sends data to thesink. It is managed by theFlownodeManagerand run by aFlowWorker.