Re:Show HN: A Decentralized Q&A Platform
by NicoJuicy on Wednesday May 05, 2021 @03:51PM
(#27054814)
Wouldn't it be simpler to just store everything on your own and let events ( eg. In DDD applications) just write to the blockchain?
Instead of threathing the blockchain as source of truth?
Re:Show HN: A Decentralized Q&A Platform
by singularjon on Thursday May 06, 2021 @02:09PM
(#27067096)
Well, the important thing is just that requests get sent directly from the browser to the blockchain. If it goes through our servers, it creates a layer of centralization. We do pretty much just store things on our own. When you create a post, it goes out both to our database and the blockchain independently. But I feel that the blockchain should be the source of truth if it's going to be decentralized.
Re:Show HN: A Decentralized Q&A Platform
by simmanian on Wednesday May 05, 2021 @01:43PM
(#27053100)
That's cool! Could you share which blockchain you forked from? I'm no blockchain expert, just looking to learn more.
Re:Show HN: A Decentralized Q&A Platform
by singularjon on Wednesday May 05, 2021 @01:58PM
(#27053320)
Sure, https://github.com/dtube/avalon - It's quite possibly the easiest blockchain to understand. The node is written in Javascript and uses a local Mongodb to handle storage of blocks and content data.
Write performance should stay about the same even at scale because our network is capable of much higher transactions per second due to having elected nodes. Read performance will continue to be good because we have a caching layer where we store posts from the blockchain in a database and just serve from there. This technically adds a bit of centralization, but ultimately, everyone's content still belongs to themselves and not a centralized org.