The rearranged chain in #1124 solves the issue of ingesting large historical data, and introduces a delicate way of deciding when to catch up with the upstream to finish the creating procedure. However, this relies on the assumption that the throughput of downstream MV is larger than the upstream, or it'll be a live lock.
The core reason is that the Chain bypasses the natural back pressure with active polling the upstream while rearranging the barrier to the downstream. So one solution is to manually introduce a token mechanism in the Chain to simulate a back pressure.
Here's a workable but not that elegant attempt -> #3899
The rearranged chain in #1124 solves the issue of ingesting large historical data, and introduces a delicate way of deciding when to catch up with the upstream to finish the creating procedure. However, this relies on the assumption that the throughput of downstream MV is larger than the upstream, or it'll be a live lock.
The core reason is that the Chain bypasses the natural back pressure with active polling the upstream while rearranging the barrier to the downstream. So one solution is to manually introduce a token mechanism in the Chain to simulate a back pressure.
Here's a workable but not that elegant attempt -> #3899