Rollups-as-a-service or building yourself with Rollups SDKs– which is viable?
Tags: rollups
Published: 2024-01-09 07:12:37

<p>Claimed as the end-game for blockchain scalability, <a href="https://www.zeeve.io/rollups/">rollups</a> are being adopted by a lot of popular web3 projects, such as Coinbase’s BASE, Immutable, dYdX, and zkBNB. Speaking about the rollup development, <a href="https://www.zeeve.io/rollups/">rollups-as-a-service solutions</a> and rollup SDKs are currently the two viable ways for building use case-centric, customizable rollups chains. Both the RaaS and SDKs have the same end goal, which is enabling rollup development, but they work differently. Hence, there is some confusion around their usefulness.&nbsp;</p>
<p>This article addresses all the concerns and confusion related to using <a href="https://www.zeeve.io/rollups/">rollups-as-a-service</a> or building with Rollups SDKs. If you are planning to build your <a href="https://www.zeeve.io/rollups/">custom rollup chain</a>, go through all the details given here to choose a setup that seems suitable for you.&nbsp;</p>
<figure class="wp-block-image aligncenter size-large"><a href="https://www.zeeve.io/rollups/"><img src="https://www.zeeve.io/wp-content/uploads/2023/12/Launch-your-own-L2L3s-quickly-with-Zeeves-modular-RaaS.-1024x130.jpg" alt="" class="wp-image-55066"/></a></figure>
<h2 id="h-breaking-the-confusions-around-rollups-as-a-service-and-rollup-sdks">Breaking the confusions around rollups-as-a-service and rollup SDKs:</h2>
<p>Because the concept of rollups-as-a-service is relatively new, it can be confusing for many people. Also, <a href="https://www.zeeve.io/rollups/">RaaS</a> is often confused as a counterpart for rollup SDKs, which they are definitely not. So, What exactly are rollups-as-a-service and rollup SDKs, let’s understand.&nbsp;</p>
<p><strong>What exactly are rollups-as-a-service?</strong></p>
<p><a href="https://www.zeeve.io/rollups/">Rollup-as-a-service</a> are decentralized RaaS stack that allows anyone– be it dApp projects, web3 enterprises, or independent developers, to deploy their own modular rollup chain via a fully-managed services and no-code deployment panel.&nbsp; RaaS can be better referred to as the one-stop rollup deployment platform that gives you flexibility and modularity to deploy both <a href="https://www.zeeve.io/appchains/optimistic-rollups/">Optimistic</a> and <a href="https://www.zeeve.io/appchains/polygon-zkrollups/">Zk rolllups</a> using frameworks like&nbsp; <a href="https://www.zeeve.io/appchains/zksync-hyperchains-zkrollups/">ZkStack</a>, <a href="https://www.zeeve.io/appchains/polygon-zkrollups/">Polygon CDK</a>, <a href="https://www.zeeve.io/appchains/optimistic-rollups/">OP Stack</a>, and Arbitrum Orbit. It is designed to abstract away all the major challenges of building <a href="https://www.zeeve.io/rollups/">application-specific rollups</a>, which can be smart contracts development, managing infrastructure, configuration, integration of rollup components, hosting, infrastructure optimization, etc.&nbsp;</p>
<p>To tackle these complexities, <a href="https://www.zeeve.io/rollups/">rollups-as-a-service solutions</a> provide a no-code deployment panel, where you can login, choose your preferred stack, select configuration options (such as choosing sequencer, aggregator, prover, DA etc), test your rollup chain, and deploy it seamlessly within few minutes. However, even to use RaaS, you must be familiar with the basic concept of rollups, its functions, components, and ideal features.</p>
<p><strong>Now, let’s learn about rollup SDKs</strong></p>
<p>Rollup SDKs refer to the modular frameworks that web3 developers can use to build custom-fit L2/L3 rollup chains, suiting the specific needs of their dApps. Basically, rollup SDKs are a set of tools and components such as starter templates, customizable virtual machines, and open-source codebase. Anyone with expertise in blockchain development can modify some aspects of these existing components to design a <a href="https://www.zeeve.io/rollups/">rollup</a> from scratch that becomes a version of their application.&nbsp;</p>
<p>Rollup SDKs offer you the flexibility to customize your <a href="https://www.zeeve.io/rollups/">rollup network</a>, and do additional configuration for DA (data availability) layer, sequencer, prover, or storage. Simply put, It’s a fully customizable system that allows you to add anything in the rollup chain that you think is required from your applications’s perspective.&nbsp;</p>
<p><a href="https://www.zeeve.io/appchains/polygon-zkrollups/">Polygon CDK</a>, <a href="https://www.zeeve.io/appchains/optimistic-rollups/">Op Stack</a>, <a href="https://www.zeeve.io/appchains/zksync-hyperchains-zkrollups/">zkStack</a>, Arbitrum Orbit, and Rollkit are some of the popular <a href="https://www.zeeve.io/rollups/">rollup frameworks</a> that are being actively used in the web3 developer community to build solutions for various industry sectors– be it <a href="https://www.zeeve.io/blog/rise-of-gaming-economy-powered-by-blockchain/">gaming</a>, <a href="https://www.zeeve.io/blog/banking-the-unbanked-defi-promoting-financial-inclusion/">DeFi</a>, <a href="https://www.zeeve.io/blog/a-simple-and-comprehensive-guide-on-non-fungible-tokens/">NFTs</a>, <a href="https://www.zeeve.io/blog/blockchain-for-government-public-services/">government</a>, <a href="https://www.zeeve.io/blog/comprehensive-guide-on-tokenized-real-world-assets/">real-world asset tokenization</a>, or <a href="https://www.zeeve.io/blog/blockchain-in-entertainment-industry-to-change-the-dynamic-industry/">media &amp; entertainment</a>.&nbsp;</p>
<p>As discussed, it’s not fair to compare RaaS and SDKs, because these two just two distinct setups that serve the same purpose. <a href="https://www.zeeve.io/rollups/">Rollups-as-a-service</a> allows you to do some checkbox and your <a href="https://www.zeeve.io/rollups/">rollup chain</a> becomes ready. On the other hand, with rollup frameworks– you have to go ahead and write code to inject in your dApp. So, its basically code vs no-code, but not RaaS vs Rollup SDKs.&nbsp;</p>

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ebmmv4zbzbqf62zyocst.png)
<h2 id="h-rollups-as-a-service-and-building-with-rollup-sdks-diving-into-development-process-stacks-resources-etc">Rollups-as-a-service and building with rollup SDKs: diving into development process, stacks, resources, etc:</h2>
<p>As rollup-as-a-service works as a launchpad for rollup SDKs, the approach to building <a href="https://www.zeeve.io/rollups/">rollups</a> with these two setups is different. Let’s discuss those steps with respect to a standard RaaS solution and rollup SDK:</p>
<h3>Using rollups-as-a-service solutions–&nbsp;</h3>
<p><strong>Step:1- Developer onboarding:</strong>&nbsp; First, you need to sign up/register yourself on your desired <a href="https://www.zeeve.io/rollups/">rollups-as-a-service platform</a>. This generally requires email, a passcode, and, in some cases, a contact number. After that, login to RaaS platform and continue with your preferred stack.</p>
<p><strong>Step:2- Rollup configurations: </strong>General configuration, blockchain-level, EVM, RPC, and infrastructure are some of the configuration options required in a <a href="https://www.zeeve.io/rollups/">rollup chain</a>. RaaS solution (as you can see in the below image) offers an automated, default configuration for each of these components.&nbsp;</p>

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/22o4jxf74nbr2g4xdfbp.png)
<p>Further,&nbsp; to enhance the modularity of your <a href="https://www.zeeve.io/rollups/">rollup</a>, you can do RPC configuration, choose the DA layer, sequencer type, nodes, storage type, interoperability layer, etc, from third-party integration partners.</p>
<p><strong>Step:3 Testing and deployment: </strong><strong>&nbsp;</strong>Once you test your setup thoroughly in DevNet, push your rollup chain to production with the one-click deployment option of RaaS.&nbsp;</p>
<h3 id="h-using-rollup-sdks">Using rollup SDKs–&nbsp;</h3>
<p><strong>Step:1 Setting up environment:</strong> Building with frameworks, requires you to have specific types of hardware and software setup. For example, you will need Operating system, cloud setup, hosting infrastructure, virtual machine, docker containers, <a href="https://www.zeeve.io/blog/how-to-connect-to-my-ec2-geth-node-with-json-rpc/">RPCs</a>, etc.</p>
<p><strong>Step:2 Writing smart contract: </strong>You need to create smart contract for your rollup chain in the language that is supported on your preferred stack. For example, if you choose SDKs like <a href="https://www.zeeve.io/appchains/polygon-zkrollups/">Polygon CDK</a> and <a href="https://www.zeeve.io/appchains/zksync-hyperchains-zkrollups/">zkStack</a>, then a Solidity, Rust, or Vyper based contract will work because these are EVM-compatible frameworks.</p>
<p><strong>Step:3 Wallet creation: </strong><strong>&nbsp;</strong>A web3 wallet is needed to perform transactions, pay the gas fees, and access other apps. You use existing web3 wallets or you can one from scratch.&nbsp;</p>
<p><strong>Step:4 Hosting nodes</strong>: Since you are deploying your rollup chain by yourself, you also have to host one or more nodes as required. For this, you can opt for <a href="https://www.zeeve.io/">Node hosting service providers like Zeeve</a>.</p>
<p><strong>Step:3</strong> <strong>Configuring rollup components: </strong>To continue with deployment, you need to configure <a href="https://www.zeeve.io/rollups/">rollup</a> components, such as prover, synchronizer, transaction manager, RPCs, sequencer, aggregator, explorer, bridges,etc. For each of these components, you will need their specific command lines.</p>
<p><strong>Step:4 Testing and upgrade</strong>: Test your rollup chain on your preferred testnet, ensuring that its components and features work as expected. Do the required upgrade to improve its functionalities.</p>
<p><strong>Step:5 Deploying the rollup chain: </strong>Push your rollup chain’s entire setup to the production environment to make it available for the intended users.&nbsp;&nbsp;</p>
<p><strong>S</strong><strong>tep:6 Maintaining your rollup:</strong> To ensure your <a href="https://www.zeeve.io/rollups/">rollup chain</a> remain up and running all the time, you need to monitor it 24x7 and do all the required upgrades.</p>
<h2>What are the possible challenges of building with Rollup SDKs?</h2>
<p>Since rollup SDKs require developers to build their L2 or L3 chain from scratch, they may come across some sort of challenges, such as:&nbsp;</p>
<li><strong>Pre-development challenges: </strong>Building a rollup chain requires aggressive planning and consultation to move things forward in the right direction. For example, you may be confused about choosing between a <a href="https://www.zeeve.io/rollups/">rollup framework</a>– <a href="https://www.zeeve.io/appchains/optimistic-rollups/">Optimistic</a> or <a href="https://www.zeeve.io/appchains/polygon-zkrollups/">Zkrollups</a> or you need help in choosing services from external service providers, like a decentralized sequencer, DA layer, account abstraction, etc.</li>
<li><strong>Challenges of setting up a reliable infrastructure</strong>:&nbsp; Even when someone is building a rollup with SDKS, they need some infrastructure to host its virtual machine, RPC and non-RPC nodes etc. Also, they need additional infrastructure partners for DA, Sequencer, <a href="https://www.zeeve.io/blog/blockchain-interoperability-key-for-global-blockchain-adoption/">interoperability</a>, and more.</li>
<li><strong>Rollup engineering-related complexity: </strong>There are so many things required to <a href="https://www.zeeve.io/rollups/">build rollups</a> with SDKs, like programming smart contracts, deploying nodes, integrating rollup components, testing, and deployment. Any developers doing this, will require extensive blockchain development skills with complete knowledge of latest technologies.</li>
<li><strong>Selection of additional rollup services:</strong> To add modularity to a <a href="https://www.zeeve.io/rollups/">rollup chain</a> or we can say building a sovereign rollup require you to integrate additional rollup services. For example, you can choose a decentralized sequencer from Celestia, an account abstraction layer from Biconony or Halliday, and interoperability from XYZ, etc. This also requires intense research and analysis to choose the right services to achieve best output in a cost-optimized way.</li>
<li><strong>Performance &amp; monitoring : </strong>Even after you successfully build your rollup chain with SDKs, it needs proper maintenance for uptime &amp; performance. For example, your <a href="https://www.zeeve.io/rollups/">rollup</a> setup should follow best security practices, its infrastructure should be scalable on-demand, gas cost optimization should be there, response time should be high, and so on.</li>
<p>Speaking about monitoring, you will need to perform multiple layers of integration in your rollup, which is a challenging task to do. For example, you need to set up a component for real-time alerts, customize it to do monitoring on all the important parameters, have graphical analytics should be there, and a lot more.</p>
<h2 id="h-how-can-rollups-as-a-service-solve-the-above-challenges">How can Rollups-as-a-service solve the above challenges?</h2>
<li><strong>Project consultation &amp; decision-making support:</strong> A reliable <a href="https://www.zeeve.io/rollups/">RaaS</a> providers does not only offer a node-deployment platform. Rather, they offer expert’s support and end-to-end consultation to analyze your requirements well. For example- addressing your confusion of choosing between various rollup frameworks, support for tooling &amp; infrastructure, etc.</li>
<li><strong>Ready-to-deploy, production-grade infrastructure-</strong>&nbsp; <a href="https://www.zeeve.io/rollups/">RaaS platform</a> are optimized to offer a production-grade, low-code rollup deployment infrastructure. Whether its about hosting nodes, or managing virtual machines– you do not need to manage infrastructure on your end.&nbsp;</li>
<li><strong>Standardization: </strong>rollups-as-a-services are designed both– experts and people having less familiarity in rollups or blockchain. Hence, <a href="https://www.zeeve.io/rollups/">RaaS solutions</a> offer a default configuration of a standard rollup chain for every framework. You can simply go ahead with the setup and deploy your rollup. However, you have the option to customize every aspect of your chain, from EVM configuration to wallets, infrastructure, and more.</li>
<li><strong>Seamless Integration for third-party rollup services: </strong>With a reliable RaaS solution, you will get the flexibility to <a href="https://www.zeeve.io/integrations/">integrate a range of third-party rollup services</a>, be it a decentralized sequencer, aggregator, prover, storage solution, or interoperability layer.</li>
<li><strong>Proactive rollup monitoring &amp; maintenance:</strong> Once deployed on any RaaS infrastructure, your <a href="https://www.zeeve.io/rollups/">rollup network</a> will be monitored on critical parameters such as instance metrics, validium metrics, RPC metrics, logs, and alerts, maintaining uptime and superior performance of your chain.&nbsp;</li>

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/osgf7ysfles48ye9ce1r.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1s1fh0asz5c5iyewa2ix.png)
<h2 id="h-rollups-as-a-service-solution-or-building-with-rollup-sdks-which-one-you-should-choose-and-why">Rollups-as-a-service solution or building with rollup SDKs: Which one you should choose, and why:</h2>
<p><a href="https://www.zeeve.io/rollups/">Rollups-as-a-services</a> are becoming a preferred choice for a lot of industry leaders, futuristic projects, and dApps. Below is a tweet from Sandeep Narwal, Co-Founder of Polygon, highlighting the need of&nbsp; RaaS for building modular dApps.&nbsp;</p>

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y4dmd2tzw2ccn9rfq4ts.png)
<p>Now, talking about choosing between rollups-as-a-service or rollup SDKs, it all depends on the stage of your application and its overall complexity.&nbsp;</p>
<p>If you already manage a use case in the form of protocol or a fully-matured dApp or <a href="https://www.zeeve.io/blog/smart-contract-standardization-a-necessity-for-the-large-scale-adoption-of-blockchain/">smart contract</a>, where you just want to spin up a additional L2/L3 chain, then using RaaS solutions is the viable option for this scenario. That’s because you don’t need to do anything from scratch, you just want to add an additional chain to your existing infrastructure.</p>
<p>For other cases, like upgrading a web2 application to web3 or you are building a new web3 application, SDKs may be more suitable. Note that, <a href="https://www.zeeve.io/rollups/">rollups-as-a-service</a> can also work here. But, with SDKs you can choose everything from base level to design a highly personalized ecosystem. For example, what kind of state machine your application needs, what state transition function is required, and so on. Doing this same thing with RaaS can be a little heavy lifting because configurations are standardized there. Above all these, end decision is up to the projects, if they want an automated setup then RaaS is a viable option,and if they want to do things by themselves, then SDKs will work.</p>
<h2 id="h-try-zeeve-s-modular-raas-stack-the-most-easy-way-to-deploy-rollups">Try Zeeve’s modular Raas Stack— The most easy way to deploy rollups</h2>
<p><a href="https://www.zeeve.io/">Zeeve</a> offers a modular <a href="https://www.zeeve.io/rollups/">rollups-as-a-service</a> stack to deploy production-grade rollups natively integrated with all the essential rollup tools &amp; components such as white-labeled blockchain explorers, <a href="https://www.zeeve.io/blog/what-are-cross-chain-bridges-a-detailed-guide/">cross-chain bridges</a>, advanced wallets, data indexers, scalable nodes. <a href="https://www.zeeve.io/">Zeeve</a> calls its RaaS stack modular because it supports integration for a range of rollup services such as Avail, Near DA, and Celestia for data availability, Biconomy and Halliday for Account Abstraction (AA), Chainlink for decentralized oracles, Espresso and Radius for Decentralized Sequencer, <a href="https://www.zeeve.io/subgraphs/">Subgraph</a> for data indexers, and LayerZero and Router Protocol for interoperability layer.&nbsp;</p>
<p><a href="https://www.zeeve.io/">Zeeve</a> currently offers Polygon CDK sandbox—a one-click deployment tool for launching custom CDK chains. The sandbox tool is absolutely free to use, which allows you to try and test your <a href="https://www.zeeve.io/rollups/">rollup chain</a> multiple times unless it is ready for production. Soon, Zeeve will offer a similar RaaS stack for launching <a href="https://www.zeeve.io/blockchain-protocols/deploy-zksync-era-node/">zkSync era</a>, <a href="https://www.zeeve.io/appchains/zksync-hyperchains-zkrollups/">Hyperchains</a> and Arbitrum Orbit. These are just a snapshot of what <a href="https://www.zeeve.io/">Zeeve</a> can offer, the list is vast, and its expanding with each passing day.&nbsp;</p>
<p>For more information about <a href="https://www.zeeve.io/">Zeeve</a> and its comprehensive stack, feel free to <a href="https://www.zeeve.io/talk-to-an-expert/">connect with our experts</a> or schedule a one-to-one call for a detailed discussion.</p>