Suhail Kakar Profile picture
Aug 6 11 tweets 4 min read
How Web3 dApps works?

A complete guide to Web3 Architecture 🧵 Image
You have probably heard about Web3 and decentralisation. Decentralization means you have the complete right to your own content. It means instead of centralized entities; ownership gets distributed amongst users. Every user that the ownership over their content.
Now let's go through the architecture of a Web3 dApp and how they works?

The heart of Web3 dApps are smart contracts, they are program that responds to events by executing business logic and they run on a Blockchain. Image
Think of smart contract as a backend code, where the logic for the application happens. These smart contract should be compiled into the binary format and then deployed on any blockchain. The complied file or ABI can be used in the frontend to interact with smart contracts.
We also have EVM which executes the logic defined in the smart contracts. To get or post any data on the smart contract which is deployed on a blockchain, we should be using a Node. You can either deploy our own node or use any node providers such as Chinstack, Alchemy. Image
Every Ethereum provider implements a JSON-RPC to connect to blockchain, and then you can read the stored data on blockchain. However if you want to store anything on blockchain, you need to submit a signature using your wallet. Image
Coming to storage, popular storage solutions are IPFS and Arweave. IPFS is a distributed file system for storing and accessing data which means instead of storing your files on a centralized database, IPFS stores them on a peer-to-peer network. Image
Now let's talk about querying the data. You can either use smart contract events with help of packages like ethers.js or you can use @graphprotocol.The Graph is an off-chain indexing solution which can help you query data in a much easier way. It uses GraphQL query language. Image
So, we have talked about many things such as Querying data, Sign ing transactions, storages, providers but there is one more important thing that we need to consider. Scaling!!!
As you know Ethereum doesn’t scale properly. There are a few problems with Ethereum scaling, due of so many transactions, it is a bit slow and have high gas fees.

Here is why, @0xPolygon comes in. Polygon is a L2 scaling solutions that is fast and cheap than Ethereum. Image
Conclusion

Of course this is such an overview of it and it is just the beginning of Web3. I believe that we might see many better tooling in the future. I didn't mention anything about Oracles, because I have another separate thread for it, stay tuned :)

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Suhail Kakar

Suhail Kakar Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @SuhailKakar

Nov 22
8 websites that will change the way you learn web3 development and computer programming - for FREE 🧵
1/

Learn Git visually

Git plays a vital role in the computer programming. One of the best way to learn git is visually. Learn git branching teaches git visually that will take you from zero and gradually understand the different part of branching

learngitbranching.js.org
2/

CS50: Introduction to Computer Science - course

An introduction to the intellectual enterprises of computer science and the art of programming. By end of this course you will learn abstraction, algorithms, data structures, encapsulation, and etc...

pll.harvard.edu/subject/comput…
Read 9 tweets
Nov 20
You can pay $50K plus.

or learn from YouTube

Here's a list of top channels where you can learn computer programming - completely free:
1. Traversy Media

youtube.com/c/TraversyMedia
Read 21 tweets
Nov 17
Git and GitHub play a vital role in computer programming

Whether you are a front-end developer or back-end developer, knowing Git is mandatory.

Here is a complete guide to Git and GitHub ↓ 🧵 Image
→ Introduction

Git is a source code management technology used by DevOps. It is a free and open-source version control system that is used to efficiently manage small to extremely big projects.
Git is a version control system. Version control is a file manager that maintains track of changes to your projects over time and keeps a complete history of whatever you're working on. It allows many devs around the globe to work together on the same project at the same time
Read 15 tweets
Nov 16
If you want to master Front-end Web Development, watch these YouTube videos:
1. Learn HTML5 and CSS3 From Scratch - Full Course

A great course that covers everything related to HTML and CSS in 11 hours by freeCodeCamp.

2. JavaScript Tutorial for Beginners - Full Course in 12 Hours

Learn JavaScript from the scratch and build real work projects. By end of this video, you will have a good knowledge and how to use it in real-world projects.

Read 11 tweets
Nov 2
How does Web3 (decentralized applications) work?

Here is a complete guide to Web3 Architecture ↓
You have probably heard about Web3 and decentralization. Decentralization means you have the complete right to your own content. It means instead of centralized entities; ownership gets distributed amongst users. Every user that ownership over their content.
Now let's go through the architecture of a Web3 dApp and how it works.

The heart of Web3 dApps are smart contracts, they are programs that respond to events by executing business logic and they run on a Blockchain.
Read 11 tweets
Nov 1
If you want to master Web3 Development and Blockchain, watch these YouTube videos:
1/

Learn Blockchain, Solidity, and Full Stack Web3 Development with JavaScript

This course will give you a full introduction to all of the core concepts related to blockchain and Web3. Follow along with the videos and you'll be a blockchain wizard

2/

Learn Solidity: The Complete Beginner’s Guide (Latest Version 0.8)

This is a ~1.5 hours straight to the point course by Dapp University. It teaches you the Solidity basics such as variables, data types, mapping and etc.

Read 7 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(