Architectural Patterns for Web3-Based Decentralized Applications

Authors

  • Helena Popescu Assistant Professor, School of Data Science, Mediterranean Institute of Technology, Rome, Italy Author
  • Marco Silva Assistant Professor, Institute of Intelligent Systems, Central European Tech University, Vienna, Austria Author
  • Amelia Schmidt Associate Professor, Department of Artificial Intelligence, Baltic AI Research University, Tallinn, Estonia Author

Keywords:

dApp architecture, Web3 design patterns, decentralised applications, indexer architecture, off-chain storage, progressive decentralisation, censorship resistance, frontend decentralisation

Abstract

Building a decentralised application is not the same as building a smart contract. The contract is the on-chain logic -- often just 500 to 2,000 lines of Solidity. The dApp is everything else: the frontend that users interact with, the indexer that makes on-chain data queryable, the wallet integration that manages signing, the off-chain storage for data too large or too private for the chain, and the bridge or relayer that connects to other chains. Most Web3 architectural failures happen not in the smart contract but in the glue between components -- a centralised API server that becomes a single point of failure, an indexer that falls behind and serves stale data, or a frontend hosted on a single cloud provider that gets taken down by a legal notice. We present the Web3 Decentralized Application Architecture Framework (W3DAAF), a systematic evaluation of six architectural patterns for building dApps -- fully on-chain, thin client, fat indexer, hybrid off-chain, progressive decentralisation, and modular microservice -- assessed across five dimensions: decentralisation fidelity, user experience quality, developer productivity, operational cost, and censorship resistance. Our Architecture Quality Score (AQS) shows that the modular microservice pattern achieves the highest overall quality (0.896) by decomposing the dApp into independently replaceable components, while progressive decentralisation offers the most practical path for teams migrating from Web2 to Web3.

Author Biographies

  • Helena Popescu, Assistant Professor, School of Data Science, Mediterranean Institute of Technology, Rome, Italy

    Assistant Professor, School of Data Science, Mediterranean Institute of Technology, Rome, Italy

  • Marco Silva, Assistant Professor, Institute of Intelligent Systems, Central European Tech University, Vienna, Austria

    Assistant Professor, Institute of Intelligent Systems, Central European Tech University, Vienna, Austria

  • Amelia Schmidt, Associate Professor, Department of Artificial Intelligence, Baltic AI Research University, Tallinn, Estonia

    Associate Professor, Department of Artificial Intelligence, Baltic AI Research University, Tallinn, Estonia

Downloads

Published

2025-06-28

How to Cite

Architectural Patterns for Web3-Based Decentralized Applications. (2025). Blockchain, Web3 & Digital Trust Journal P-ISSN 3117-597X and E-ISSN 3117-5988, 2(2), 37-46. https://galaxiauniverse.com/index.php/BWDTJ/article/view/451