1

there is a Bill functionality in my DApp, which need gather millions of EOS action data to make up a token transfer data for front end to display.

the question is, it takes quite a long time. if it is executed in client side, every time the user refresh, the Dapp regathers again and again.

so I wanna establish a server to do the stuff, but as we know , DApp is decentralized, it bases on chain, not on traditional backend. idk whether it is ok to do so.

need advice, thanks.

2
  • not sure what you're asking. please try to rephrase or explain in more details what the problem is and why you think demux might solve it.
    – Ami Heines
    Nov 15, 2018 at 9:43
  • @AmiHeines is it ok now?
    – tao jader
    Nov 15, 2018 at 10:54

1 Answer 1

2

Demux is intended for use when there is s lot of data that you want to save to the blockchain but not necessarily to RAM. RAM is an expensive resource and only needed if the dApp needs access to the data. Historical data is saved on disk in the blockchain log files and demux captures it to a database of your choosing.

Then you have the convenience of a client server app with a traditional db guarantied to be backed by the blockchain.

2
  • 1
    many thanks, and in a word, your answer to my question is 'yes'?
    – tao jader
    Nov 15, 2018 at 14:32
  • Yes, demux is the way to implement this.
    – Ami Heines
    Nov 15, 2018 at 18:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.