Chain syncer keeps you in sync with arbitrary blockchain if you implement the api.
Chain tip is "eventually consistent" with the settlement layer through eager fork competition such that superseded forks are immediately deleted from DB and replaced with more valuable fork when it appears. Ie. only one winning fork is kept in the DB at given moment. This allows for much better performance and space efficiency.
Chain syncer uses 3 main independent threads : block fetching, processing and persistence while persistence being sequential, block after block.
chain-syncer = { git = "https://github.com/pragmaxim-com/chain-syncer" }