Explore the best alternative to HTTP

Explore the best alternative to HTTP

If you look at the past, we’ll see how far we’ve come as a community technology. From dial-up connections that were painfully slow, for rapid call fiber is really awesome. However, the way in which the Internet is put, or rather, has not changed. HyperText Transfer Protocol, or HTTPthis technology, which shoulders most of the responsibilities associated with communication data to the Internet.

HTTP has, of course, disadvantages, and it is time to replace it with something else. We consider here InterPlanetary file system (IPFS), which is, perhaps, the best alternative of the standard HTTP. However, before we go any further, let’s remember what HTTP.


HyperText Transfer Protocol

HTTP is the application-layer Protocol that is used for transmission of dynamic documents, such as HTML. It is designed mainly for communication between web browsers and servers webowymi. HTTP is based on the classical model of client-server, where the client opens a connection to query and waits for a response. It has been doing, as servers consider the request and browser as they are governed.

Data is stored on centralized servers, and access to them you can get through addressing, based on the provisions. Distribution, management and data security, it is easier. Easier when the zoom capabilities of the server and the client.

HTTP is used in the network since 1996, and it is widely used even today. He had almost 25 years, and in the world of technology this is, unfortunately, Antiques. IPFS is newer, faster and more secure. Well, it can be used instead of HTTP.

Let’s look at some traps, HTTP, who work for the benefit of IPFS.


Cons

  • Centralized files do not reside on servers, which are mostly owned large companies, such as Google or Amazon. It makes it easier, unfortunately, to governments and cenzorom edit content.
  • The history of Internet sites – the average lifespan of a website is 100 days. After this time, she disappears forever. This is, unfortunately, all too briefly, as in our times.
  • Cost – submit data through HTTP is very expensive, especially if the server is on the other side of the globe. HTTP downloads files from one computer at a time, instead of having to remove parts with a few at a time. HTTP was developed to transfer web pages and not a large amount of data. Our modern life revolves around data, and we started to improve our computers and cloud architecture. The fundamental architecture of the web is, however, all the same as before.


InterPlanetary file system(IPFS)

IPFS is a Protocol of the type “point to point” by which the network will be faster, safer, and more open. Is a distributed file system, open source, just like BitTorrent. The name of the magazine comes from the vision intergalaktycznego Internet J. C. R. Lickerdera and has been developed by Protocol Labs, that is, laboratories, scientific research engaged in network protocols. Previously, it was Y Combinator startup.

Architecture IPFS consists of distributed arrays mixing, block exchange, and a Merkle DAG are the three key components of IPFS.


Distributed hash table

A hash is a data structure that keeps them in the form of pairs key-value. In a distributed array of key-value data is distributed across a network of computers, and koordiniruyutsya to ensure normal access nodes.


Block Exchanges

IPFS implements a generalized vision of data sharing in the BitTorrent Protocol, which is called bits on the subchannels. It allows you to coordinate data transfer between millions of nodes. FileCoin is also based on this Protocol.


Merkle DAG

DOUG, a mixture of trees and Merkle DAG, that is, a Directed Acyclic Graph. Merkle trees ensure that the data blocks that are transmitted in the networks of peer-to-peer, correct, complete and not change.

This check is carried out through the organization of blocks of data using cryptographic hash functions.


Why IPFS?


Not based on the servers

When the server crashes or moves to another location, this is the link associated with this server will also stop working. Regardless of what sort we have the data, it will not be they can recover, if not kept them before moving to the new location of the server.

In order to access the data stored on the server HTTP uses for addressing data based on location. If we are talking about and IPFS, this data access is achieved on the basis of decisions based on content.

Instead of relying on a single server, the data can be obtained from one of the millions of computers that have a copy of this file, as well as BitTorrent.


Decentralization

The Internet in its current state is something completely different than what he expected. At first it was supposed to be decentralized network. Comparing this with what we have now, we can see that it went in a completely different direction.

IPFS is faithful to the original concept of the open web. Truly decentralized Internet will be the perfect solution for ensuring individual privacy.


Cost reduction

As mentioned above, the cost of storing large files in HTTP is extremely high. According to the site IPFS IPFS P2P can reduce the required bandwidth for video up to 60%. Large sites such as Netflix streamingowe also searched for the solution for P2P video streaming.

Article from the blog IPFS believes that Google has released, at least 2 742 860 dollars on the distribution of Gangam Style on Youtube. Although it is not so much from the point of view of the entire Corporation, then it is, however, quite a lot for a medium business.

IPFS would allow you to download content from the internal network of Your own PROVIDER. No need to jump through several networks. You can even download a large file because each file is divided into several parts, each of size 256 KBs.


Opportunities


Not user-friendly

The addressing format of the content is not user-friendly. Typical IPFS link will look like this:

ipfs.io/ipfs/bafybeiemxf5abjwjbikoz4mc3a3dla6ual3jsgpdr4cjr3oz3evfyavhwq

As you can see, there’s some kind of key. Yes, this really is the hash of the public key. He is associated with the entry containing information about hashu referenced is in turn described by the corresponding private key. IPFS provides another option called DNSLink, which is faster and more user-friendly from the IPNS.


A place to store

One of the most important issues that we IPFS, is a continuous file sharing. Since the file was loaded from the cache nodes in the network, that is, if all the nodes that have copies of this file will be in offline mode, then this file will be available to everyone in the network.

This is very similar to torrents that do not have seedów. To avoid this problem, IPFS is a Protocol that motivates you to store and share data in a distributed network. This Protocol is called FileCoin.


Further reading

Because IPFS is a fairly broad concept that is difficult to explain in one article, I recommend to familiarize with their web site to find out how to begin. Moreover, I recommend to watch the following video to learn more.

You can also read the documentation if you want to delve into the technical aspects of the Protocol.

https://docs.ipfs.io/

IPFS was developed from 5 years – the last time he became more popular after the integration with the Brave browser, posed in front of the privacy of users, as a priority. Too early, however, to say that IPFS will change the world forever, because it’s a community must adopt a new technology.

The original text in English can be read here.

Go to our cases Get a free quote