Skip to content
This repository has been archived by the owner on Jul 20, 2021. It is now read-only.

Modernize explorer backend #581

Open
LeeSmet opened this issue Sep 4, 2019 · 2 comments
Open

Modernize explorer backend #581

LeeSmet opened this issue Sep 4, 2019 · 2 comments

Comments

@LeeSmet
Copy link
Collaborator

LeeSmet commented Sep 4, 2019

The current explorer module, which is the backend for explorer pages, is lacking some rather important features, and has some design flaws. It should be adapted to include the following:

  • pagination (currently some queries on tfchain return excess of 50MB of data)
  • websockets, for real time server -> client updates
  • A properly abstracted database layer. Right now database code is interleaved with the regular code. This causes problems, as it is now really hard to switch out DB's (should this be desired). It also prevents us form (manually) keeping certain buckets in memory, causing significant read amplification (no longer required because of plans in R&D merge of explorer/consensus modules #605)

Given all of the above, it might also be worth to create a new explorer module next to the existing one, and replace the old explorer in its entirety once this is done. (more or less the plan as described in #605)

Interesting to investigate: https://github.com/asdine/storm
Also interesting: https://github.com/cayleygraph/cayley

@DylanVerstraete
Copy link
Contributor

Related issue threefoldtecharchive/rivine-chain-explorer#8

@GlenDC
Copy link
Contributor

GlenDC commented Oct 16, 2019

Relates to #605, as work to be done after.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants