r/programming • • Jul 17 '22

Create decentralized applications with JavaScript, HTML and CSS

https://gridnet.org/wpp/index.php/2022/07/12/create-ui-dapps-right-now-developer-guide/
122 Upvotes

159 comments sorted by

View all comments

Show parent comments

5

u/Annh1234 Jul 17 '22

Let me explain:

If you don't want your data "controlled" by any one company, upload your site to some CDN with other CDN companies as backups, and eventually falling back to your server/laptop/pc.

That way, you pay for the bandwidth used, your data is in N+1 places (thousand of servers), uptime is 99.9999% pretty much (one CDN goes down, another can take over, and they tend to use different backbones for the internet), and you can be sure your site won't go down because some kids' mom got mad and unplugged his basement PC.

------------------

Also, even if your data is copied to say 100% of the devices online, so it's hosting is 100% decentralized, the way you get this data is via your local ISP, which is controlled by your local government, and can be monitored controlled as they see fit.

Example: download some torrent movies, and you get letters from your ISP about doing illegal stuff.

In other words, you have no way to access this decentralized data without a centralized method.

------------------

If you REALLY want serverless, decentralized data storage, then play around with storing it in the network cables. Not really scalable, every tech provider will hate you/try to scrape you off the net, but that's the only way to "hide stuff" online and make sure only your software can access that data.

1

u/rafalsk Jul 18 '22

some CDN

do you know of a CDN which is not operated by a 'company'?

There is a tremendous difference between 'distributed' and 'decentralized'.

Bitcoin is decentralized. CDNs may be 'distributed' but under 'centralized' governance.

Torrent may be decentralized.

That way, you pay for the bandwidth used, your data is in N+1 places (thousand of servers), uptime is 99.9999% pretty much

GRIDNET OS offers such a decentralized CDN service.

In other words, you have no way to access this decentralized data without a centralized method.

Kindly do note that we do not promote any illegal activities, yet still, we employ Onion Routing together with an internal decentralized DNS service.

If you REALLY want serverless, decentralized data storage, then play around with storing it in the network cables.

There is no need for that.

2

u/Annh1234 Jul 18 '22

Ya... What you say makes no sense... Seems like you think everything with a company is bad.

When in reality, a company is just something so you can pay your taxes legally if you make more than a certain amount.

The difference between distributed and decentralized is in the implementation.

For example: You can have a master/slave MySQL setup that is distributed like normally, and you can set it up to take into consideration split brain occurences so it's decentralized.

That's is why I suggested multiple CDN networks so you get the picture.

Even Thor network works the same. Each node keeps a list of top x nodes it can connect to, and every now and they take votes on what nodes to use and what nodes to discard.

In other words, it centralizes the data so users get the same thing no matter what node they connect to.

1

u/rafalsk Jul 18 '22

One needs decentralized consensus no matter how you connect the MySQL instances or Cloud flare CDNs, the CEO could modify content of your code,website etc hosted on these with one call.