Web3 Architecture and Tech Stack
Last Updated :
21 Jun, 2024
Web3 technology is being touted as the next big game-changer, the next big revolution that will massively change the Web experience for all netizens around the globe. Web3 is no longer just a futuristic buzzword. Today it has gained significant prominence among users and developers, with multiple Web3 hackathons occurring in India and all over the world, year after year, offering huge monetary rewards.
What is Web3?
Web3 is the successor to Web2.0 (also referred to as Web2, aka the version of the World Wide Web currently used worldwide).
- It is built on a decentralized model powered by blockchain technology, that gives more ownership of the online content to its owner(s) and not to tech giants, like in Web2.
- The term Web3 was first used in 2014 by Gavin Wood, founder of Ethereum (a blockchain company), and has gained significant attention since then.
Features of Web3
1. Mode of Operation
Web3 operates in a decentralized mode, giving less power and ownership to tech giants over user-generated content. This mode will solve the legal battles between newspaper publishers and search engine giants like Google over the ownership of the news content.
2. Content Ownership
Provides ownership to users over their generated content, which ensures the users don't lose access to their content irrespective of changes in the platforms' rules and regulations, terms and conditions.
3. Transactions
Transactions are powered by blockchain and the smart contracts created before the transaction holds both parties accountable to all the rules and regulations stipulated, negating the need of any third party to supervise the transaction.
4. Architecture
Built on Peer-To-Peer (P2P) model, which involves data transfer and device communication occurring on a peer-to-peer basis between devices, eliminating the need of central servers.
5. User-base
As per a report on DataReportal, ~300 million netizens worldwide own cryptocurrencies (a Web3 product), but not all of them interact directly with Web3 apps and services. The user base is expected to rise tremendously in the next 3-7 years.
6. Mainstream
Web3 is expected to become the mainstream version of the World Wide Web (WWW) used all over the world by around 2027 - 2031.
7. Regulations
Web3 users are the king of their content irrespective of the terms and conditions, rules and regulations of the Web3 website/app, marking a sea change from that of Web2, wherein changes in the site/app policies can not only result in the user's content being removed from the website/app, but also from their own account.
8. Hosting
Web3 websites and applications are hosted globally on decentralized networks and blockchain nodes, with smart contracts, an inbuilt feature of blockchain, negating the need for server-side logic.
9. Deployment
Uses smart contracts in blockchain networks for conformity to the stipulated terms by all the parties/individuals involved.
10. Security Mechanisms
Web3 employs multiple security mechanisms: Cryptography, decentralized user identity and wallet authentication for giving users a secure, trusted and inclusive web experience.
Understanding the Web3 Architecture
Web3 Architecture is made up of several layers:
1. Infrastructure Layer
Blockchain Layer
- Blockchain essentially means blocks of information chained (linked) together. It involves distributed ledgers (history of records) for transparency amongst all the users involved.
- Blockchain is popularly used today for trading digital assets, like digital artwork. Blockchain enables financial inclusion by allowing participants with a public key to interact and transact anonymously or pseudo-anonymously.
- Multiple data miners work all across the world to ensure the veracity and authenticity of transactions on blockchain, in exchange of monetary rewards.
Networking Protocols
- IPFS (Inter Planetary File System) protocol is used for decentralized storage of the data to be transmitted and stored.
- Libp2p protocol is used for peer-to-peer networking of the devices connected to Web3.
2. Protocol Layer
Consensus Mechanisms
- Refers to mechanisms which control transaction validation and addition of new blocks to the chain of the blockchian.
- Examples include Proof Of Work, Proof Of State, Delegated Proof Of State.
Smart Contract Platforms
- Platforms which are built specially to facilitate creations and execution of smart contracts
- Examples include Ethereum, Binance Smart Chain, Polkadot.
3. Service Layer
Smart Contract Layer
- Directly connected to the Blockchain Layer.
- Consists of smart contracts, which are tools that ensure that both parties involved in the transaction adhere to the stipulated rules and regulations, terms and conditions.
Identity and Access Layer
- Decentralized identity verification procedures are present to stop unauthorized users from accessing the application or website's sensitive modules.
- Provides authentication and authorization services
- Examples include uPort, Civic, Sovrin.
4. Application Layer
This layer has code of the application's frontend.
dApps (Decentralized Applications)
- Apps that run on decentralized networks and use smart contracts on their backend.
- Examples include Uniswap, Aave, CryptoKitties.
UIs
- Frontend User Interfaces which interact with dApps and the blockchain present in their backend.
- Examples include Browsers with Web3 support like MetaMask.
5. Interaction Layer
Is the intermediary between the end-user and the application's services.
Wallets
- Refers to digital wallets to store cryptocurrencies.
- Examples include MetaMask, Trust Wallet, Ledger.
- Cryptocurrency gained huge popularity in 2021, after the Covid-19 lockdown. It refers to virtual or digital currency which uses cryptography for security. Examples: Bitcoin, Ethereum.
- Tokens are the virtual assets or utilities on a blockchain. The most famous token is the NFT (Non Fungible Token), which are unique tokens to represent ownership.
- Some other types of tokens are Governance Tokens (allows participation in governance aka decision-making), Utility Tokens (provides access to a utility, aka a product or a service) and Security Tokens (represent ownership of assets).
Bridges
- Facilitates transfer of assets and data between different blockchains.
- Are cross-chain tools and works on the concept of interoperability.
- Examples include Polkadot's Interoperability Bridge, Cosmos Inter-Blockchain Communication Protocol.
6. Governance Layer
This layer contains tools to manage decentralized decision making
DAO (Decentralized Autonomous Organizations)
- Companies which are governed by the decisions of token-holders and by smart contracts, are termed DAOs.
- Examples include MakerDAO, Aragon.
Voting Mechanisms
- Mechanisms used for decentralized voting among a DAO company's stakeholders for decision-making.
- Examples include Snapshot, Tally.
Web3 ArchitectureComparison between Web3 and Web2
Aspects
| Web3
| Web2
|
---|
Mode
| Is decentralized, giving less power to tech giants
| Is centralized, giving more monopolistic power to tech giants
|
---|
Content Ownership
| Provides ownership to users over their generated content
| Gives less ownership to users and more ownership to tech giants over the user's own generated content
|
---|
Transactions
| Transactions are powered by blockchain
| Transactions are powered by payment gateways of different banks and companies
|
---|
Architecture
| Built on Peer-To-Peer (P2P) model
| Built on Client-Server model
|
---|
User-base
| ~300 million netizens worldwide own cryptocurrencies, but not all of them interact directly with Web3 apps & services
| Almost all netizens worldwide use Web2
|
---|
Mainstream
| Web3 is expected to become mainstream by around 2027 - 2031
| Web2 has been mainstream since the mid-2000s.
|
---|
Regulations
| Web3 users are the king of their content irrespective of the terms & conditions, rules & regulations of the website/app.
| Web2 users' content is governed by terms & conditions, rules & regulations of the website/app.
|
---|
Hosting
| Uses decentralized networks & blockchain nodes
| Uses web servers & cloud services
|
---|
Deployment
| Uses smart contracts in blockchain networks for conformity
| Uses CI / CD pipelines and containerization
|
---|
Security Mechanisms
| Cryptography, decentralized user identity & wallet authentication
| SSL/TLS protocols, firewalls, tools like OAuth and JWT
|
---|
The Web3 Tech Stack Conclusion
Simplified Fundamental Web3 Tech StackThe usage of blockchain decreases situations which would traditionally need a lawyer, as smart contracts ensure neutrally that all terms & conditions are adhered to by both parties, making it a better cost-effective option. Blockchain unfortunately uses a lot of energy, so it needs to optimize its carbon footprint in order for Web3 to become more environment-friendly, particularly at a time when power costs keep rising due to dependence on fossil fuels and underutilization of renewable resources. The Web3 tech stack cumulatively aims to create an open and equitable digital economy with empowered users.
Similar Reads
Architecture of a System
Architecture is a critical aspect of designing a system, as it sets the foundation for how the system will function and be built. It is the process of making high-level decisions about the organization of a system, including the selection of hardware and software components, the design of interfaces
4 min read
What is a web server - Working and Architecture
A web server is a software application or hardware device that stores, processes, and serves web content to users over the internet. It plays a critical role in the client-server model of the World Wide Web, where clients (typically web browsers) request web pages and resources, and servers respond
6 min read
Website Architecture Optimization
Just like a well-organized store makes it easier for customers to find what they need, a strong site architecture is fundamental for a successful website. It refers to the way information is organized and connected, impacting both user experience and search engine optimization (SEO). Table of Conten
15 min read
How to Evaluate a System's Architecture?
Understanding a system's architecture involves assessing its structure, components, and interactions to ensure alignment with functional and non-functional requirements. This article outlines essential criteria and methodologies for evaluating and optimizing system architectures effectively. Importa
10 min read
Browser Architecture
Web Browser is a highly advanced application software that helps surf the internet. It is like a gateway to access the huge potential information the internet holds with a simple, user-friendly UI (user interface). Have you ever thought about how web pages are painted on the web browser and how it m
4 min read
Design Patterns Architecture
Design patterns and architectural styles play a crucial role in shaping the structure and behavior of software systems. Let's explore several architectural patterns and styles, each with its characteristics and suitable diagrams. Table of Content Layered Architecture (N-Tier Architecture)Microservic
7 min read
Multi-Tenancy Architecture - System Design
Multi-tenancy architecture is a system design where a single instance of software serves multiple customers, known as tenants. Each tenant's data is isolated and invisible to others, ensuring privacy and security. This approach is efficient because it allows resource sharing, reduces costs, and simp
13 min read
Difference between System Design and System Architecture
When it comes to software development and engineering there can be some confusion, between the two terms "System Design" and "System Architecture." Although they are related they actually refer to stages and responsibilities in creating scalable and efficient systems. It is important to grasp the di
3 min read
MACH architecture | System Design for Ecommerce Website
In the ever-evolving panorama of e-commerce, groups are continuously seeking revolutionary solutions to enhance their online presence, improve user experience, and give tough competition to their competitors. MACH, which stands for Microservices, API-first, Cloud-native, and Headless, represents a f
6 min read
Web3.0: The Next Era of the Internet
Web3.0, commonly known as Web3, is the next era of the Internet. It aims to address the limitations of the previous versions of the Web. From Web 1.0 to Web 2.0, we have been consuming information in a way that we have very little control over. However, Web3.0 claims that it will provide information
9 min read