Simple Decentralized App ArchitecturesteemCreated with Sketch.

in ipfs •  7 years ago  (edited)

Two Key Technologies:
IPFS: A distributed datastore modeled after BitTorrent and Git. Soon it will have an incentivisation layer in which you pay strangers to store your content. Basically, a P2P AWS.
Ethereum: A single shared computer living on the network, modeled after Bitcoin. It's essentially a computer everyone can trust to store data and to execute code.
Basic Dapp Architecture
dapp-basic-structure.png

To give context for the diagram, consider the application flow of a crowdfunding Dapp modeled after Kickstarter:

Client Side

Perform a DNS lookup to receive a hash of your dapp
Download the dapp from peers on IPFS
Load your HTML/JS/CSS
Lookup the most recent crowdfunding projects on Ethereum
a. Each project will contain a hash of the pitch video, content, and rewards
Use the hash to download a project's content from IPFS
Send ETH (Ethereum's currency) to fund the project
Ethereum Side

The croudfunding smart contract receives the ETH payment.
Once the deadline for the project crowdsale ends, the contract either pays the project creator or returns the funds to the funders.
In this example, our global state contains the list of current projects, references to their content, and simple logic for the payout. IPFS contains the Dapp code and project content.

With these simple building blocks, it is possible to create powerful applications.
(copied from publication "karl.tech/simple-dapp-architecture")

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Hi! I am a robot. I just upvoted you! I found similar content that readers might be interested in:
https://karl.tech/simple-dapp-architecture/

Congratulations @admiboss! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

You published your First Post
You got a First Vote

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

By upvoting this notification, you can help all Steemit users. Learn how here!

Congratulations @admiboss! You have received a personal award!

1 Year on Steemit
Click on the badge to view your Board of Honor.

Do not miss the last post from @steemitboard!


Participate in the SteemitBoard World Cup Contest!
Collect World Cup badges and win free SBD
Support the Gold Sponsors of the contest: @good-karma and @lukestokes


Do you like SteemitBoard's project? Then Vote for its witness and get one more award!

Congratulations @admiboss! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!