Swarm is a native base layer service for Ethereum, which provides a distributed storage platform and content distribution service. The goal of Swarm is to provide a decentralized store of Ethereum's public records. It can store DApp code and data, or even blockchain data.
To a user, Swarm may look very similar to the internet but files are not uploaded to a specific server. The objective is to have a peer-to-peer storage and serving solution that is DDOS resistant, has zero downtime, is fault tolerant, and is censorship resistant. The system can self-sustain due to a built-in incentive system that uses peer-to-peer accounting and allows trading resources for payment.
In this recipe, you will learn to use Swarm for storing and retrieving data.