kardiachain / kardia-explorer-backend

Backend repo for explorer
2 stars 7 forks source link

Optimize import flow #100

Closed ngdlong91 closed 3 years ago

ngdlong91 commented 3 years ago

Current problems

As our early version using a Ticker() to detect if there is any new block, which is not really effective.

And current import new block flow handles too many tasks: import new block, import Txs (which also capture some event/logs), which may slow down the main task process time.

Expected Behavior

Import block should run independently with other flows.


Current subscribeEvent is not stabled yet.