Difference between revisions of "Web Serving"
Line 1: | Line 1: | ||
− | '''The Internet Computer is | + | '''The Internet Computer (IC) is the only blockchain that can host a full dapp; frontend, backend, and data included. This is a crucial and distinguishing feature allowing dapps to run 100% on-chain inheriting the security and decentralization of blockchain without sacrificing speed or affordability. This is possible because nodes of the IC can securely serve HTTP requests and by leveraging the reverse gas model.''' |
===Enabling true web3=== | ===Enabling true web3=== | ||
− | + | Today, most dapps built on other blockchains rely on centralized cloud providers (e.g. AWS, GCP) to host their frontend, amongst other parts, which introduces a single point of failure. An example pattern in the industry is to have a smart contract performing some computation, yet, the front end is often served from a Node server. Web3 requires that all parts of a dapp are realized by smart contracts. | |
+ | Further, Web3 functionality is only achievable by blockchain applications running fully decentralized, which includes smart contract logic, on-chain data storage and serving frontend to the user’s browser. This not only includes security risks by possible tampering with the frontend, but dapps running on centralized servers can be taken down at any point, which negates the censorship resistant nature of blockchain. | ||
Hosting dapps 100% on-chain provides the additional benefit of letting DAOs launched on the Internet Computer to completely control these applications with on-chain governance and not only the backend logic. This lets users be fully in control of these dapps realizing complete decentralization and democratization of web applications. | Hosting dapps 100% on-chain provides the additional benefit of letting DAOs launched on the Internet Computer to completely control these applications with on-chain governance and not only the backend logic. This lets users be fully in control of these dapps realizing complete decentralization and democratization of web applications. | ||
− | |||
===Processing HTTP requests=== | ===Processing HTTP requests=== |
Revision as of 17:47, 30 August 2022
The Internet Computer (IC) is the only blockchain that can host a full dapp; frontend, backend, and data included. This is a crucial and distinguishing feature allowing dapps to run 100% on-chain inheriting the security and decentralization of blockchain without sacrificing speed or affordability. This is possible because nodes of the IC can securely serve HTTP requests and by leveraging the reverse gas model.
Enabling true web3
Today, most dapps built on other blockchains rely on centralized cloud providers (e.g. AWS, GCP) to host their frontend, amongst other parts, which introduces a single point of failure. An example pattern in the industry is to have a smart contract performing some computation, yet, the front end is often served from a Node server. Web3 requires that all parts of a dapp are realized by smart contracts. Further, Web3 functionality is only achievable by blockchain applications running fully decentralized, which includes smart contract logic, on-chain data storage and serving frontend to the user’s browser. This not only includes security risks by possible tampering with the frontend, but dapps running on centralized servers can be taken down at any point, which negates the censorship resistant nature of blockchain.
Hosting dapps 100% on-chain provides the additional benefit of letting DAOs launched on the Internet Computer to completely control these applications with on-chain governance and not only the backend logic. This lets users be fully in control of these dapps realizing complete decentralization and democratization of web applications.
Processing HTTP requests
Blockchains differ in their processing of computation from regular web servers, which makes serving web a difficult task. To overcome this, the Internet Computer introduces something called boundary nodes. These nodes act as a layer that translates HTTP requests from users to messages that can be processed by smart contracts running on the Internet Computer. This allows users to update the state of the blockchain simply by interacting with a browser.
Reverse Gas Model
Requiring users to have tokens in order to use applications and pay gas fees is an enormous barrier of entry. One key feature of the Internet Computer that allows users to directly interact with the blockchain through a browser for free is the reverse gas model. Simply put, canisters pay for their own computation and storage costs using cycles. In other words it is the developers and not the end-users who pay for gas.
This offers a very similar model to Web2 applications, whose hosting is taken care of by developers. The reverse gas fee model allows users to experiment with dapps for free and allows dapps to scale infinitely by not putting up a wall in front of their users at the very first interaction.
Internet Identity
Users should not have to set up wallets in order to interact with dapps. To remove this hurdle the Internet Computer offers an alternative anonymous authentication solution called the Internet Identity. With it users can login to dapps running on the Internet Computer by simply using a biometric sensor on their device. In the background, Internet Identity uses novel cryptography and creates new ids for each dapp one authenticates with. This is a simple way for users to login and use dapps running on the Internet Computer without having to create a wallet, while they remain anonymous and untraceable across different applications.