uBaaS: A Unified Blockchain as a Service Platform

Qinghua Lu, Xiwei Xu, Yue Liu, Ingo Weber, Liming Zhu, Weishan Zhang · DOI

Abstract

Blockchain is an innovative distributed ledger technology which has attracted a wide range of interests for building the next generation of applications to address lack-of-trust issues in business. Blockchain as a service (BaaS) is a promising solution to improve the productivity of blockchain application development. However, existing BaaS deployment solutions are mostly vendor-locked: they are either bound to a cloud provider or a blockchain platform. In addition to deployment, design and implementation of blockchain-based applications is a hard task requiring deep expertise. Therefore, this paper presents a unified blockchain as a service platform (uBaaS) to support both design and deployment of blockchain-based applications. The services in uBaaS include deployment as a service, design pattern as a service and auxiliary services. In uBaaS, deployment as a service is platform agnostic, which can avoid lock-in to specific cloud platforms, while design pattern as a service applies design patterns for data management and smart contract design to address the scalability and security issues of blockchain. The proposed solutions are evaluated using a real-world quality tracing use case in terms of feasibility and scalability.

Introduction: The Challenge of Blockchain Development

Blockchain technology promises a future of decentralized trust, but for many developers, the reality is a steep learning curve and a "vendor lock-in" trap. While major cloud providers offer Blockchain as a Service (BaaS), these solutions often tether developers to a specific ecosystem. Building a blockchain application today is difficult for two main reasons: deployment complexity and design difficulty.

Firstly, current BaaS offerings from giants like Microsoft Azure, IBM, and Amazon are often "locked." Moving a network or smart contracts to another cloud provider or a different blockchain protocol is a significant technical hurdle. Secondly, blockchain requires a paradigm shift in software engineering. Developers struggle with the immutability of smart contracts and the inherent trade-offs between transparency, privacy, and performance. As shown in the table below, different blockchain types offer varying impacts on fundamental properties versus performance and flexibility, making the initial design choice critical yet complex.

Comparison of impact across different blockchain types

The uBaaS Architecture

The uBaaS platform addresses these challenges by treating blockchain as a modular component of a larger software system. The core of uBaaS consists of three service categories: Deployment as a Service, Design Pattern as a Service, and Auxiliary Services.

Deployment as a Service uses "Infrastructure-as-Code" to automate the setup of blockchain networks (currently supporting Ethereum and Hyperledger Fabric). It is designed to be platform-agnostic, allowing nodes to be deployed across various private or public clouds without being tied to a single vendor's API. To support complex application requirements, the platform formalizes the split between on-chain and off-chain components across logic, data, and platform layers.

Layered architecture of blockchain applications in uBaaS, illustrating the on-chain and off-chain separation.

Design Patterns as a Service

A novel contribution of uBaaS is "Design Pattern as a Service." Instead of just hosting code, uBaaS provides templates for proven architectural patterns:

  • Data Management Patterns: This includes the On-chain/Off-chain pattern, which stores large data in traditional databases and only the cryptographic hash on the blockchain to ensure scalability.
  • Smart Contract Design Patterns: These include Multiple Authorities (M-of-N signatures), Dynamic Binding (using off-chain secrets to authorize transactions), and Embedded Permission (hardcoding access control into every function to prevent unauthorized access).

By providing these architectural "scaffolds," uBaaS prevents developers from making common, costly mistakes, such as leaving smart contract functions public by accident.

Evaluation and Performance

The authors evaluated uBaaS using a real-world quality tracing system for imported commodities and synthetic scalability tests on a cluster of up to 100 Alibaba Cloud virtual machines. Key findings include:

  • Linear Scalability: The time to deploy an Ethereum network via uBaaS scales almost perfectly linearly with the number of nodes, proving the platform can handle enterprise-scale networks.
  • Performance Trade-offs: While creating an off-chain data table is near-instant, generating the associated on-chain smart contract takes roughly 50 seconds due to Ethereum's Proof-of-Work consensus.
  • Feasibility: The quality tracing use case demonstrated that uBaaS could successfully generate complex, multi-party smart contracts that enforced strict permissions and handled sensitive data through encryption.

Conclusion

uBaaS bridges the gap between blockchain design and deployment by offering a platform-agnostic, pattern-driven approach. While currently supporting Ethereum and Hyperledger Fabric, future work will focus on expanding protocol support, exploring faster consensus mechanisms like Proof-of-Stake, and integrating Self-Sovereign Identity (SSI) as a core service.

Summary updated

Abstract

Blockchain is an innovative distributed ledger technology which has attracted a wide range of interests for building the next generation of applications to address lack-of-trust issues in business. Blockchain as a service (BaaS) is a promising solution to improve the productivity of blockchain application development. However, existing BaaS deployment solutions are mostly vendor-locked: they are either bound to a cloud provider or a blockchain platform. In addition to deployment, design and implementation of blockchain-based applications is a hard task requiring deep expertise. Therefore, this paper presents a unified blockchain as a service platform (uBaaS) to support both design and deployment of blockchain-based applications. The services in uBaaS include deployment as a service, design pattern as a service and auxiliary services. In uBaaS, deployment as a service is platform agnostic, which can avoid lock-in to specific cloud platforms, while design pattern as a service applies design patterns for data management and smart contract design to address the scalability and security issues of blockchain. The proposed solutions are evaluated using a real-world quality tracing use case in terms of feasibility and scalability.
BibTeX
@article{lu2019ubaas,
  author = {Qinghua Lu and Xiwei Xu and Yue Liu and Ingo Weber and Liming Zhu and Weishan Zhang},
  title = {{uBaaS: A Unified Blockchain as a Service Platform}},
  journal = {Future Generation Computer Systems},
  year = {2019},
  url = {https://openreview.net/forum?id=UEvDMfJNJk},
}
Figure