Case Study: Arweave Gateway

Use Meson Network to help Arweave Gateway alleviate the Retrieval bottleneck under high concurrent requests.

Challenge

❓ Arweave has a lot of pressure from NFT retrieval

This is because NFT files are usually very small image files. Every time a user accesses an NFT, they need to make a request to the Gateway. The Gateway retrieves the NFT and returns it to the user.

❓ Gateway encountered a physical bottleneck

When the NFT Marketplace access surges at a certain point in time, these high concurrent requests may cause the server to run out of resources, causing the Gateway node to reach the CPU, I/O, Memory and Bandwidth Bound in the physical environment (you can learn from Brendan Gregg's Systems Performanceopen in new window Learn more in the book).

❓ Files need to be cached closer to the user to shorten the request speed of the user from the original site

Using an origin server without a CDN means that each Internet request must return to the physical location of that Gateway server, regardless of where in the world it resides.

Solution

βœ… Meson dCDN store (cache) Arweave in strategic locations in order to take the load off of Arweave Gateway

By moving static assets like images, videos and audio (and potentially other content) as close as possible to the requesting meson node, a meson node cache is able to reduce the amount of time it takes for an Arweave resource to load.

βœ… Ability to easily retrieve Arweave content

Customers can easily access content on the Arweave network without having to deploy and secure their own Arweave nodes. Meson’s gateway leverages Arweave nodes on its own resilient and security-hardened network to retrieve Arweave content. Meson Arweave gateway can be viewed as a cache in front of Arweave. The Meson Arweave Gateway cannot be used to modify or remove content from the Arweave network.

βœ… Ability to serve Arweave content through subdomain names

A Gateway needs an SSL certificate in order to keep user data secure, prevent attackers from creating a fake version of the Gateway, and gain user trust.

βœ… Leverage dCDN for Arweave content (caching, performance, reliability)

When using the Meson Arweave gateway, customers get the additional benefit of using the Meson CDN, which can cache Arweave content close to users, increasing overall performance.

Example

Change the Arweave Gateway into the Meson Gateway. Read Moreopen in new window

https://arweave.net/-ZW0S2kqxYSRUHQW5AbBp046gLILFCZmxf37HoP1K4k
=>
https://{your_pull_zone}.meson.network/-ZW0S2kqxYSRUHQW5AbBp046gLILFCZmxf37HoP1K4k

Meson enhance Arweave Demoopen in new window

Results

Traffic distributed by Meson Network for Arweave(GB)

The Meson Gateway for Arweave has withstood high concurrent Retrieval requests from Arweave, and has been running stably for 500 days with 100% online rate, which support 4072.77 TB Arweave files to be retrieved. (As of August 5, 2022).

open in new window

Extended Reading