My Week 4 @ Polygon Fellowship: IPFS & Graph

ยท

3 min read

Okay we are halfway through the fellowship, and in this week's post, we will go through IPFS and Graph. Again, we will start with the study material and then the assignments and lastly through the sessions.

Week 4 : Study material ๐Ÿ“”

Decentralized Storage

So, apparantly, blockchains can't be used to store huge data, cause that will result in high network fees. To solve this problem we have decentralized storage. A decentralized storage works on a peer to peer network where each peer acts as a file storage as well as a provider. The study material this time has refered tons of documents, so I am refering them here:

What is IPFS

The InterPlanetary File System (IPFS) is a protocol started by Protocol Labs to create a new way to server information on the web. It's decentralized and works on content addressing. If you want to add any file to IPFS, you need access to a node, these nodes may store some data, but most importantly, they work as a file provider to other nodes. So, consider node A is closest to node B and node C has a files, considering C is also close to B, the file will follow the path C -> B -> A. You can even use your laptop to make an IPFS node.
I spent a lot of time learning about IPFS, cause I found this idea amazing, so I will link to all the docs I refered down:

What is Filecoin

Filecoin is protocol developed as an incentive layer for the Interplanetary File System (IPFS). Filecoin allows anyone to store and retrieve data on the internet. Built-in economic incentives ensure that files are stored and retrieved reliably and continuously for however long a user specifies. Filecoin has one of the coolest web pages I have seen so far, filecoin.io. To learn about Filecoin and how it can be utilized, you can checkout this video here:

Also I would suggest to go through this course that will teach you everything about filecoin.

Learning about Fleek

Fleekโ€™s hosting solution is like Netlify for the open web, enabling developers to deploy websites to the Internet Computer in mere minutes. You can check more about them here. You can check more about it, and how to use it here.

The study material briefly introduced us to Sia, Storj, Swarm and Arweave

Querying Blockchain & The Graph

Reading data from blockchain is slow, so a lot of organizers index the entire blockchain and serves it's data. However, this is againt decentralization. Thus we have graph, The Graph is a decentralized protocol for indexing and querying blockchain data. It uses GraphQuery language to query indexed chains.

Firstly to understand how graph works, you can check their official docs here.

To learn how to query using graph you can check this doc here.

To make your own graphs, look here:

Week 4: Assignments

Uploading an Image on IPFS.

This one is pretty easy, you can follow along the IPFS Docs to work on this one.

Creating a subgraph

This one took some time, cause graph is new to me, but again, the resources are great.

Building Social Media DApp

This one took a LOT OF TIME. We were supposed to create a social media DApp that allows us to post and view images. You can look at my solution here.

Did you find this article valuable?

Support Rakshit Arora by becoming a sponsor. Any amount is appreciated!

ย