0Pricing
Web3 & DApp Development Fundamentals · บทเรียน

บัญชีแยกประเภทแบบกระจาย

สถานะร่วมกัน

บัญชีแยกประเภทแบบกระจาย เป็นบทเรียน Web3 & DApp Development Fundamentals ฟรีบน CoddyKit นี่คือบทเรียนที่ 4 จากทั้งหมด 4 บทเรียน คุณสามารถอ่านบทเรียนทั้งหมดด้านล่างฟรี — จากนั้นลองปฏิบัติด้วยตัวคุณเองในเบราว์เซอร์พร้อมตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7 บทเรียนนี้เป็นส่วนหนึ่งของเส้นทางการเรียน Web3 & DApp Development Fundamentals และความก้าวหน้าของคุณจะซิงค์ข้ามเว็บและแอป CoddyKit คอร์ส Web3 & DApp Development Fundamentals มีบทเรียนทั้งหมด 4 บทเรียน

บางส่วนของบทเรียนนี้ยังไม่ได้รับการแปล และแสดงเป็นภาษาอังกฤษ

What Is a Distributed Ledger?

A distributed ledger is a database that is replicated and synchronized across many independent computers called nodes.

There is no single master copy — every node holds the full ledger and helps keep it consistent.

Centralized vs Distributed

A traditional ledger lives on one server controlled by one party. A distributed ledger removes that single point of control and failure.

  • Centralized: one owner, one copy, one trust anchor
  • Distributed: many peers, many copies, shared trust

Nodes and Peers

A node is any computer running the blockchain software and storing a copy of the ledger. Nodes connect directly to each other as peers in a network.

There is no central server to ask — peers gossip data among themselves.

Node A <-> Node B
   ^           ^
   |           |
   v           v
Node D <-> Node C

Replication

Replication means every full node keeps an identical copy of all blocks.

If many nodes go offline, the data survives on the rest. This redundancy gives blockchains their famous resilience.

Shared State

The ledger represents a shared state — for example, every account balance. All honest nodes must agree on this state.

When a new block is applied, each node updates its state the same way, so they stay in sync.

Shared state (account balances):
  Alice: 12 ETH
  Bob:    5 ETH
  Carol:  8 ETH

Propagating Transactions

When you submit a transaction, your node broadcasts it to its peers, who relay it onward. This gossip protocol spreads it across the whole network in seconds.

Pending transactions wait in a pool called the mempool.

Reaching Agreement

Because anyone can propose blocks, nodes need a way to agree on a single version of history. This is the job of a consensus mechanism.

Consensus ensures all honest nodes converge on the same ordered chain of blocks.

Trustless by Design

Distributed ledgers are often called trustless — not because trust is absent, but because you do not need to trust any single party.

You trust the protocol and the math (hashing, signatures, consensus) instead of an intermediary.

Permissionless vs Permissioned

Ledgers differ in who may join:

  • Permissionless (Bitcoin, Ethereum) — anyone can run a node
  • Permissioned (enterprise chains) — only approved participants

Both are distributed, but they differ in openness and trust assumptions.

Resilience and Censorship Resistance

Because copies live everywhere and no one controls them all, distributed ledgers resist censorship and downtime.

Shutting one node down does nothing; the network simply routes around it.

Putting It Together

A distributed ledger is a replicated, peer-to-peer database where nodes maintain a shared, agreed-upon state.

Replication gives resilience, gossip gives reach, and consensus gives a single source of truth without a central authority.

Quick Check

Test your understanding of distributed ledgers.

Recap: Distributed Ledgers

You learned that:

  • A distributed ledger is replicated across many peer nodes
  • All nodes maintain a shared state
  • Transactions gossip across the network
  • The system is trustless and resilient
  • Consensus keeps everyone on one chain

Next course: how consensus actually works.

คำถามที่พบบ่อย

บทเรียน “บัญชีแยกประเภทแบบกระจาย” ฟรีหรือไม่

ใช่ — ข้อความเต็มของ “บัญชีแยกประเภทแบบกระจาย” ฟรีให้อ่านที่นี่บนเว็บ เพื่อปฏิบัติแบบโต้ตอบ (ตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7) และปลดล็อคส่วนที่เหลือของคอร์ส Web3 & DApp Development Fundamentals ให้อัปเกรดเป็น CoddyKit PRO คอร์ส Web3 & DApp Development Fundamentals มีบทเรียนทั้งหมด 4 บทเรียน

คุณจะเรียนรู้อะไรในบทเรียน “บัญชีแยกประเภทแบบกระจาย”

สถานะร่วมกัน คุณปฏิบัติ Web3 & DApp Development Fundamentals ด้วยโค้ดที่ใช้งานได้จริงที่คุณเรียกใช้โดยตรงในเบราว์เซอร์ และติวเตอร์ AI ตลอด 24/7 ตอบคำถามของคุณขณะที่คุณไปผ่านบทเรียน

คุณต้องมีประสบการณ์ก่อนที่จะเริ่มเรียน Web3 & DApp Development Fundamentals หรือไม่

ไม่จำเป็นต้องมีประสบการณ์มาก่อน Web3 & DApp Development Fundamentals บน CoddyKit ออกแบบมาสำหรับผู้เริ่มต้นไปจนถึงผู้เรียนขั้นสูง คุณสามารถเริ่มต้นที่นี่หรือเริ่มจากตัวแรกและเรียนด้วยความเร็วของคุณเอง นี่คือบทเรียนที่ 4 จากทั้งหมด 4 บทเรียน

บทเรียน “บัญชีแยกประเภทแบบกระจาย” ใช้เวลานานแค่ไหน

บทเรียน CoddyKit ส่วนใหญ่ใช้เวลาประมาณ 5–10 นาที แต่ละบทเรียนจึงสั้นและเป็นแบบโต้ตอบ คุณสามารถก้าวหน้าอย่างต่อเนื่องและกลับมาเรียนต่อจากตรงที่เพิ่งหยุดบนเว็บและแอปได้เลย

ฉันเขียนและรันโค้ดในบทเรียน Web3 & DApp Development Fundamentals นี้ได้ไหม

ได้ บทเรียน Web3 & DApp Development Fundamentals ทุกบทมีตัวแก้ไขโค้ดในตัว คุณจึงเขียนและรันโค้ดจริงได้เลยในเบราว์เซอร์ และได้รับข้อเสนอแนะจาก AI ในทันที — ไม่ต้องติดตั้งในเครื่องของคุณ

บทเรียนทั้งหมดในหลักสูตรนี้

  1. บล็อกและเชน
  2. ต้นไม้ Merkle
  3. การแฮชในบล็อกเชน
  4. บัญชีแยกประเภทแบบกระจาย
← กลับไปที่ Web3 & DApp Development Fundamentals