ethereum-org-website icon indicating copy to clipboard operation
ethereum-org-website copied to clipboard

Article: Blockchain data storage strategies

Open qbzzt opened this issue 3 years ago • 11 comments

.

Tutorial title

Blockchain data storage strategies

Tutorial description

There are several ways in which data from external sources can be stored using the Blockchain. Here they are in order of increasing cost.

  1. Calldata
  2. Contract code
  3. Events
  4. EVM storage

This article will compare the different strategies, their costs and tradeoffs, and demonstrate the necessary code to use each one, as well as the requirements to use it safely.

Tag your tutorial

Storage, Data availability

Publication

Not written yet

Skill level

Beginner

Hosted on Ethereum.org or hosted elsewhere?

I hope to host it on ethereum.org when written.

qbzzt avatar May 28 '22 00:05 qbzzt

@qbzzt I want to work on this issue. Kindly tell me about the word limit and the length of article. Also if you want to add any reference article please do that.

I will write the article and tag the link here. Please assign the task to me.

meowyx avatar Jun 12 '22 08:06 meowyx

I don't assign tasks. I wrote the issue because I wanted the people who run the site (@minimalsm) to approve it before I write. However, if you want to write the article I'll be happy to support you.

There isn't a prescribed word limit. Whatever works for covering the subject.

The way I'd write it (you can choose a different way) is for each method to:

  1. Explain what it is
  2. List advantages and disadvantages A. Is the information available to code on chain? Off chain? B. How easy is it to find? C. How much would it cost?
  3. Show a short example of code that uses it.

qbzzt avatar Jun 13 '22 22:06 qbzzt

Articles are typically written in markdown, and submitted as a PR to this repository (under https://github.com/ethereum/ethereum-org-website/tree/dev/src/content/developers/tutorials).

qbzzt avatar Jun 13 '22 22:06 qbzzt

@qbzzt Thank you very much for clarifying and giving me more instruction. I understand and I will wait for @minimalsm 's approval before I submit the PR.

I will write the article with very easy to understand language and will break down to the understanding of the points you mentioned above. Also yes, I plan to use graphics/images and short easy to understand code examples for the article.

I will submit a PR to the section you mentioned as markdown after I get approved to write the article, thank you again.

meowyx avatar Jun 14 '22 08:06 meowyx

This issue is stale because it has been open 45 days with no activity.

github-actions[bot] avatar Jul 30 '22 08:07 github-actions[bot]

Hey folks! Disappointed that this fell through the crack, as I do believe this topic would be great to have. Especially with blob data entering the mix soon, I think this would be nice to have.

@qbzzt I know you've contributed several well-written articles to the site in the past, and as the original poster I'd like to offer this to you to first, but @meowyx I don't want to ignore your gracious offering to help on this as well. Much time has passed, so if either of you are still interested please reply (do me a favor and @ me here if you do).

Thanks!

wackerow avatar Jan 08 '24 18:01 wackerow

@meowyx, are you interested in doing this article? If so, please tell me by end of the January. If not, I'll do it.

@wackerow, FYI.

qbzzt avatar Jan 11 '24 18:01 qbzzt

@qbzzt I am presently unable to allocate time for this task, so please feel free to take it.

meowyx avatar Jan 11 '24 18:01 meowyx

It's mine! Mine! I'll probably do it in February, though. Life's busy.

qbzzt avatar Jan 15 '24 16:01 qbzzt

I'll start writing this article, but I don't think it should be published before Dencun because Dencun adds EIP-4844, which is very relevant to this topic - and I can't give an example cost until it's actually out.

qbzzt avatar Jan 22 '24 22:01 qbzzt