Infura Path To Scalability Ebook
Infura Path To Scalability Ebook
Scalability
The stories of 10 Web3 companies
and how they scaled with Infura.
4
Mission
15 Governance
16 Kleros
18 Security
19 OpenZeppelin
21 Energy
22 Energy Web
24 Metaverses
25 Decentraland
27 Social Media
28 Mask Network
30 Gaming
31 Cometh
35 Start Building
Accelerate Your
Blockchain Development
Since day one, the Infura mission has been to Our developer community is over 440,000
make building applications on Web3 accessible builders united and grows daily. We are grateful
to everyone. Our aim is to help developers to each and every developer using Infura, and
change the world by providing them with tools will continue to support them by making it
that simplify the developer experience and as easy as possible to build on Web3 through
maximize their creative potential. That’s why continuous product improvements and access
we’re constantly evolving Infura to be the best to Web3 education. We at Infura are honored to
platform possible for developers to focus on help developers on their journey.
what matters most - building their products,
Sincerely,
services, and communities.
EG Galano,
With Infura as their infrastructure foundation, Infura Co-Founder & General Manager
developers are free to build applications that
disrupt traditional industries and define the
future of Web3.
As the world’s largest public blockchain, Infura’s intuitive and visual dashboard is designed
Ethereum has forever shifted the paradigm for for effective account management. Operational
building software and is enabling innovation and analytics of requests, networks, and volumes
open source collaboration unlike ever before. help optimize performance, while threshold
Application programming interfaces (APIs), like notifications allow you to meet real-time demand
those enabled by Infura, help deliver information for scalability. And with Infura Transactions (ITX),
quickly between applications and blockchain you can simplify your gas fee management
networks like Ethereum. The speed and reliability and get the most reliable transactions at the
Infura offers has made it possible for many Web3 best prices.
companies to focus on building their product,
More than 440,000 developers, many of whom
instead of their infrastructure.
started on free accounts, trust Infura to build their
Infura is the number one platform for blockchain services at disruptive companies like MetaMask,
infrastructure and scaling solutions, providing a Uniswap, and Decentraland. Infura has supported
suite of high availability APIs to instantly connect their growth over the years from hundreds to now
Ethereum, IPFS, Aribitrum, Optimism, and Polygon. millions of customers. Learn how their products
Infura is committed to a multi-chain future and will and services are thriving with Infura and changing
be continuously adding support for new networks. the world.
Scalability | [email protected]
The Path to Scalability 4
DEFI
DeFi
Challenges Solution
The Uniswap interface, one of the products that Uniswap uses Infura to query information
the Uniswap team has built atop its liquidity when a user has not yet connected a wallet,
protocol, allows users to easily trade tokens, or connected to a client. To fetch data like
add liquidity, and create new pools. Behind token swap rates, token balances, and other
the scenes, Uniswap needs to pull an array information from the Uniswap smart contracts,
of information from smart contracts on the they pair Infura with web3-react. The web3-
Ethereum blockchain to feed into the interface react framework is able to connect directly to
and populate data such as pricing between Infura and pull useful information for Uniswap.
pairs, user balances, and swap rates. The Helping Uniswap meet this volume of requests
team needed an easy-to-integrate solution for and data has allowed their exchange to scale in
accessing this data that could also scale to spite of their overwhelming data demands. This
meet the growing volume of requests. is the power of the Infura’s support.
Scalability | [email protected]
The Path to Scalability 7
DEFI
Challenges Solution
The user interface of Oasis.app displays an When the users are not connected to their
array of different information about the current wallet, Oasis.app uses Infura as the default
state of users’ vaults, historical actions, settings node provider to retrieve this information to
of the Maker Protocol, and current oracle display on its user interface. Additionally, it uses
prices. The state of the blockchain has to be Infura for the cache layer of the application,
queried often in order to retrieve up-to-date which extracts and transforms the information
information. Moreover, users must be able about historical vault actions. By using Infura,
to choose to undertake various actions that Oasis.app ensures that users of the app will be
would modify the state of their vault, such as able to reliably access accurate and consistent
increasing or decreasing the current leverage data about their vaults.
of the vault, depositing additional collateral,
or paying back debt.
Scalability | [email protected]
The Path to Scalability 9
WEB3 WALLET
Web3 Wallets
Executive Summary
MetaMask was Infura’s first customer. Since the beginning, it has been crucial every
The relationship between MetaMask and infrastructure piece is built to ensure it can
Infura goes back to the beginnings of the Web3 withstand MetaMask’s user growth and has
ecosystem. When MetaMask launched in 2016, resulted in high-performance and scalable
users had to connect to their own node first in APIs, while being committed to decentralization
order to access Ethereum. This introduced a by never locking in MetaMask or its users to a
lot of friction and extra steps for users wanting single node provider. MetaMask has been able
to transact or connect to a decentralized to scale at the pace of Web3 demand due to
application (dapp). In many ways, Infura was the ongoing support and ethics of the Infura
born out of ConsenSys to resolve this friction platform, providing foundational infrastructure
and make it easier for end users to connect for reliable data access. MetaMask uses
to Ethereum. Infura to connect to Ethereum and other EVM-
networks, as backup and recovery disaster so
Today, MetaMask is the most used wallet in
users don’t experience outages, and to make
Web3 and connects over 30 million people to
it easy for users to switch and connect to their
dapps everyday. In 2021, Infura’s Ethereum API
own node or the provider of their choice.
supported 4.8 trillion in on-chain transaction
volume, most of which originated from
MetaMask. MetaMask’s significant growth over
the years would not have been possible without
Infura as one of their infrastructure providers.
Challenges Solution
The first true stress test of Infura was during the The Infura team adapted by using Geth, the
CryptoKitties explosion in 2017. CryptoKitties is command line interface for running Ethereum
a game for breeding and selling digital cats on nodes in Go Language, for off-chain indexing in
Ethereum. Upon its launch in 2017, CryptoKitties order to make pull requests quicker. The team
was the fourth smart contract ever deployed on also built more websockets to push data out to
the Ethereum mainnet and quickly rose to be the users faster.
number one game by transaction volume.
From then on, MetaMask has used Infura to
At the time of CryptoKitties’ peak in popularity, request and update blockchain state for users
MetaMask users experienced significant usability through the Ethereum and IPFS API services.
problems due to congestion on the network. In Infura is a blockchain data clearinghouse,
less than a few days, Infura went from processing ensuring the MetaMask user experience is
1 billion requests a day to over 7 billion. No one seamless and scalable through consistent
could have predicted an event like CryptoKitties and reliable data access.
triggering an uptick in transactions and Infura had
The vision of MetaMask is to transform the
to act fast to support MetaMask users.
internet and world economy to one that empowers
individuals through interactions based on consent,
privacy, and free association. Infura is a key partner
for MetaMask, because in order for the vision to be
realized, access to blockchain data must always be
available and the ability to build and scale dapps
must be simple. Infura brings data consistency and
reliability to MetaMask, to help them continue to
scale at the speed of Web3 growth.
Authenticating Web3
Users With The Torus
Wallet And Infura
Executive Summary
Web3Auth provides simple and secure self- Web3Auth uses RPC endpoints for its Torus
custodial authentication infrastructure for dapps wallet that require protection of who can view
and wallets with its native Torus Wallet and SDKs. the node endpoint. Infura provides a full suite for
Web3Auth is currently integrated with over 500 authentication options for which their team can
dapps and wallets and manages over 9 million bundle Infura connections within Web3Auth SDKs.
users who login from different parts of the world.
Web3Auth’s vision is to help onboard Web2 users
into the possibilities of Web3 in a secure, self-
custodial, and intuitive manner.
Challenges Solution
Upon launching the Torus wallet and its The team found it cost-effective for Infura
plug-and-play SDKs, the Web3Auth engineering to run their nodes so they could focus on
team tried to run their own Ethereum nodes. building their innovation and not running their
However, the cost of building and maintaining own infrastructure. Infura quickly mitigated
geographically distributed infrastructure the exposed code and improved even more
was too high. Another challenge they faced elements of their backend.
was that all RPC endpoints in their frontend
Since using Infura, the Torus wallet and all
code were public. The team knew they needed
the dapps and wallets that have integrated
the support of an external infrastructure
with the Web3Auth SDKs have high data
team to mitigate errors and ensure their
availability, low latency, high response time,
infrastructure could scale.
and consistent support for a globally distributed
customer base.
Governance
Executive Summary
Kleros is a decentralized arbitration service for Kleros began using Infura in 2017 and it has
disputes of the new economy. The Kleros mission supported their service with foundational
is to democratize access to justice in the digital infrastructure ever since. Kleros uses Infura’s
world and be the world’s first decentralized court API endpoints to access Ethereum and IPFS,
system for the Metaverse. Kleros is used by build dapps, and keep their projects and clients
businesses and Web3 protocols for arbitration in safe by closing vectors of attack and securing
their smart contracts. When a dispute is created, transactions with Infura Transactions (ITX).
Kleros randomly selects a panel of jurors and
sends back a decision. Backed by blockchain,
the whole process is secure and transparent.
Challenges Solution
Accessing the Ethereum and IPFS networks By adopting Infura’s managed APIs to access
is an on-going necessity for Kleros at every Ethereum and IPFS, Kleros has been able to
stage. Whether for their Engineering team sustain its acute focus over the years building
during development, or for the Kleros suite of the first and best-in-class arbitration protocol,
maintenance scripts during regular operations, exploring new use cases, and integrating a
or even for end-users interacting with Kleros’ dozen DeFi protocols. Infura fulfills millions of
web dapps. API calls per day for Kleros. As Kleros is gearing
up for the year of Layer 2 side-chains like
Kleros could run its own Ethereum and IPFS
Optimism, Polygon, Arbitrum and more, with
nodes for this purpose, however that would
a major upgrade, the engineering team will
mean a significant effort for their lean team
rely on Infura’s L2 APIs to access the main
of engineers. Kleros realized that operating
L2 rollup networks.
its own nodes with high and consistent levels
of reliability can easily be a full-time job that
includes many tasks. These tasks include
maintaining underlying infrastructure and the
node clients, tweaking performance, upgrading
software packages and their configurations,
monitoring the workload, and provisioning
capacity accordingly.
Security
Executive Summary
OpenZeppelin is a crypto-native software and OpenZeppelin Defender, a platform for developers
security company, bringing foundational Web3 to securely automate smart contract operations to
tooling, infrastructure, and security to builders ship faster with less risk.
and users of the decentralized economy.
OpenZeppelin chose Infura as a node provider to
OpenZeppelin provides a complete suite of ensure stable and uninterrupted functionality,
security and reliability products to build, manage, while its team focused on providing the best
and inspect all aspects of software development possible user experience.
and operations for Ethereum projects. This
includes OpenZeppelin Contracts, a standard for
Web3 security adopted by major projects across
the space and the company’s flagship product,
Challenges Solution
The team at OpenZeppelin runs its own nodes. With Infura as an infrastructure provider, the
However, using only those nodes as OpenZeppelin OpenZeppelin engineering team is able to
Defender’s sole infrastructure solution would count on an uninterrupted service through the
have resulted in unreasonable overhead. To offer suite of high availability APIs. Having Infura on
Defender users the ability to quickly spin up their the backend of Defender has allowed for the
own dapps, the company needed an infrastructure creation of a frontend UX design that accounts
provider that simplified the process for connecting for all the data required to ensure OpenZeppelin
to Ethereum, deploying contracts, reading data customers can seamlessly manage their
from the network, and sending transactions. Ethereum smart contract operations.
Without this support, Defender would not be
able to support its robust and feature-rich UX
since data availability is a key component for an
application’s user experience design.
Energy
Executive Summary
Energy Web is a Web3 company fighting climate Since 2019, Infura has been proud and grateful to
change using blockchain technology and provide Energy Web with the critical infrastructure
open source software that empower various that powers their solutions contributing to
actors across diverse energy markets. Energy decarbonization. Energy Web uses their own
Web enables market operations and network blockchain, Energy Web Chain (EWC), and an
distributions to consumers that can decrease open source bridging software that they host and
their carbon footprints. Ultimately, the Energy maintain using multiple services, one of which is
Web mission is to accelerate decarbonization of Infura’s Ethereum API for RPC access.
the global economy. The team works with large
organizations across the globe, including AEMO,
CAISO, and Elia Group to name only a few.
Micha Roon
Chief Innovation Officer at Energy Web Foundation
Challenges Solution
There are several constraints associated with Outsourcing the Ethereum RPC and the need
creating and running your own RPC node, as well for maintaining it on their own infrastructure
as hosting and maintaining a bridging solution has not only provided a secure and steadfast
in-house, something Energy Web considered connection, but saved their Engineering team
for EWC. The challenges of running bridging time and resources. Using the Infura platform has
infrastructure were conveniently simplified for allowed Energy Web to focus on building solutions
the Energy Web team thanks to the reliable usage for their clients that realize their mission of
of Infura’s Ethereum RPC that is one of the core accelerating decarbonization.
components of their bridging software.
Metaverses
Executive Summary
Infura has been supporting Decentraland, a Decentraland uses Infura for everything from
metaverse pioneer in the Web3 ecosystem since connecting to Ethereum through the API suite
2020. Decentraland is a virtual social platform and making backend calls to power their dapp’s
built on Ethereum, where millions of users enter data transfer.
everyday to socialize, attend events, play games,
Having Infura as their infrastructure provider
trade in marketplaces, engage with brands,
means Decentraland developers have had
and much more. Operating on the principles of
more time to focus on building their dapp and
decentralization, Decentraland is owned and
DAO, which consequently has contributed to
governed by the people who use it.
their ability to scale and grow at a time when
To ensure Decentraland is as decentralized as metaverses have risen to the forefront of
possible, they’ve built and programmed part of not only Web3, but popular culture with the
their backend with Infura to support multiple announcement of Facebook Inc’s rebrand to
nodes simultaneously. Meta. In 2021, Decentraland grew its users
by 3,300%.
Challenges Solution
Multi-node infrastructure means there are Infura has made the communication between
diverse inputs and outputs in the architecture Decentraland’s metaverse and the smart
of your system from diverse node providers. contracts it runs possible in a smooth and
Multi-node infrastructures are desirable because consistent manner despite its complexity as a
they increase the decentralization of your network multi-node network. Having fast and up-to-date
and make it more resilient while more data from responses has improved Decentraland’s UX.
more nodes is being exchanged and processed. Infura tooling and dashboards have made it
The challenges associated with multi-node easier to understand user behavior and what
infrastructure can include more time dedicated Decentraland needs to do in order to keep
to maintaining the network and monitoring generating value and scaling.
its functionality to ensure communication
and uptime are constant. It can also implicate
challenges to simplify the UX design of
your product.
Social Media
Executive Summary
Mask Network is to decentralize social media. Mask Network is also a founding community
Founded in 2017 by activist and technologist member of Bluesky, a protocol being designed to
Suji Yan, the Mask Network team launched their create an alternative and decentralized Twitter,
service in 2019 and have been working toward whose research will support other social media
their mission of “bridging Web2 users to Web3” networks to operate as protocols rather than
ever since. They do this with their free and open centralized platforms.
source software solution for message encryption
Infura supports the Mask Network mission of
on Web2 social media platforms like Twitter. The
decentralizing social media who have been a
solution is a browser extension and wallet anyone
customer since 2020. As their infrastructure
can download and use. Mask Network provides
provider, Infura provides a stable connection to
a layer in the tech stack which has never existed
Ethereum nodes and archive nodes for Mask
before, acting as middleware that allows people
Network to request transaction history through
to use their existing Web2 social networking
the API service. Mask Network also runs their own
accounts with the control and privacy of Web3.
nodes that use Infura as the fallback service in
case of downtime or malfunction.
Challenges Solution
Mask Network launched their token $MASK in Fortunately, with the service Infura provided as
2021 using the Initial Twitter Offering (ITO) and their backup, Mask Network successfully diverted
users were able to purchase the token directly the traffic surge they were experiencing and the
on their website. During the first round of the rescheduled ITO event was carried out smoothly.
offering, Mask Network faced challenges to keep Relying on the support Infura provided meant
their website functional due to the traffic surge Mask Network could act fast. By using Infura’s
caused by the number of people visiting the page dashboard with analytics and notifications,
to buy their token. As a result, the event had to be preparing for surges in traffic to meet demand in
postponed and rescheduled. real time and scale are easier than ever before.
Gaming
Challenges Solution
Cometh tried to build their own infrastructure, Using the Ethereum API and Infura Transactions
but the effort required to achieve a high level of ITX feature, Cometh is able to offer their users
resilience became too time consuming a redeemable experience that is seamless with
and expensive. 99.9% uptime. Cometh is also able to keep
their operation costs down by outsourcing their
There are unexpected challenges in keeping
infrastructure. Not only are they saving money, but
a well-synchronized node, especially when
using Infura saves the Cometh engineering team’s
working on multiple blockchains as Cometh
time – the most valuable resource of all – on
does. Challenges like synchronization failures,
maintaining and monitoring their infrastructure.
not having enough connected peers, or having
This is because Infura’s dashboard includes
an outdated transaction pending list made it
analytics and notifications to help the Cometh
difficult for Cometh to operate without support.
team prepare for surges in traffic to meet demand
As a blockchain game that uses NFTs, Cometh is
in real time. Without the burden of managing
running nodes on behalf of tens of thousands of
their own infrastructure, they are able to focus on
players and focuses on the layers above nodes
building innovation and their business with Infura
such as APIs specialized for NFTs.
at the base.
Deploy your code on high availability APIs Discover the full potential of Web3
with MetaMask
Infura provides critical infrastructure services
and tooling for Ethereum, IPFS, Arbitrum, Keep exploring the stack for seamless
Optimism, Polygon and a growing number of integration with Web3’s most popular
chains to meet consumer demand and scale decentralized wallet, MetaMask.
with real-time data on API requests by method,
LEARN MORE
network, and volume.
LEARN MORE
Connect With Us
And Start Building!
While this is the end of The Path to Scalability, we hope it’s
just the beginning of your journey with Infura and blockchain
development! You can learn more about our platform, team, and
community on our website at infura.io and get started building for
free at infura.io/register.
Follow Infura on