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

Seems like you think everything with a company is bad.

I would strongly suggest, we stick to technology instead of philosophy as 'programming' is the very topic of this sub-reddit.

I am in no position to judge whether a company is good or bad.

Yet I know, that in times of decentralization, a company, in lots of scenarios might not be needed from a purely technological perspective (taxes and believes aside).

When in reality, a company is just something so you can pay your taxes

You are being ignorant on the fact that a CEO of a company such as Twitter/ Reddit/ YouTube/ Google might DOES affect what is being shown to the users of these services. These are facts and we know it. It is not about tax evasion at all.

It is about freedom of information, privacy and so on.

Decentralization allows for information to be free, and its exchange to be incentivized. Without the need for companies and their CEOs.

These are the facts.

CDNs have various forms. A torrent network might be considered a CDN, a CDN might be operated by a company like CloudFlare.

What is important is that the information should be free.

If a CDN is operator by a company, if a social portal i operated by a company then there are extremely high chances that 1) they are collecting data on you 2) that hey are selling your meta-data 3) that they would be pushing adverts down your throat 4) that they would choose to promote A over B and the list goes on an on.

Companies are incentivized.. in fact is is they sole responsibility to make PROFIT. If profit can be made then they would and SHOULD do it.

It's as simple as that.

In times of decentralization we can cope perfectly fine on our own.

We can keep our privacy to ourselves and we can have quality services without worrying whether good pappas concludes that we could be shown something.

1

u/rafalsk Jul 18 '22

While a distributed system might improve failure tolerance it would not ascertain freedom and unbiased information. For that one needs decentralization.