Matic Network's Great Reddit Scaling Bake-Off submission

https://www.reddit.com/r/ethereum/comments/i07h1g/matic_networks_great_reddit_scaling_bakeoff/

created by jdkanani on 29/07/2020 at 19:57 UTC*

266 upvotes, 25 top-level comments (showing 25)

The Matic team has put together a Proof-of-Concept for the Reddit Scaling Bake-Off. We think Matic is the most apt solution for the scaling requirements of Reddit, keeping in mind it’s current and future needs.

We believe that the Matic Layer 2 platform is the most complete solution out there in terms of the features and fits right in with what Reddit requires:

***TL;DR:*** *The Matic sidechain processed 3mn transactions over 12 hours with total gas fees of USD 3.52 as part of the Great Reddit Scaling Bake-Off PoC.*

The PoC used a few addresses only for the purpose of the demo, and the total throughput with millions of user addresses can go up to 7200 TPS per sidechain and these 3mn transactions could've been completed in a matter of 10-11mins.

The PoC touches upon various aspects of the solution required – scalability that will need to meet Reddit’s requirements over time (more subreddits using Community Points), faster transaction times, inexpensive minting of Community Points, decentralization, accessible developer tooling, use of meta-transactions to pay for gas on behalf of users, open-source code, extensibility, ability to exit back to Ethereum, if needed and more.

Matic Network is a Layer 2 scaling solution for Ethereum that provides hybrid Proof-of-Stake and Plasma-enabled sidechains. We just released version 1 of our mainnet in May 2020 – https://blog.matic.network/the-matic-network-mainnet-is-now-live/[1][2].

1: https://blog.matic.network/the-matic-network-mainnet-is-now-live/

2: https://blog.matic.network/the-matic-network-mainnet-is-now-live/

Matic implements an account-based variant of MoreVP (More Viable Plasma[3]), with support for custom Plasma predicates[4]. The Plasma framework with predicates is used to guarantee the security of assets and specific smart contracts using Plasma predicates, while arbitrary smart contracts are secured by a Proof-of-Stake network, with validators staking Matic tokens on Ethereum. Matic sidechains are essentially EVM-enabled chains and are conducive to ready deployment of Solidity smart contracts, essentially making it an easy tool for Ethereum developers to use it for scaling their DApps/Protocols.

3: https://ethresear.ch/t/account-based-plasma-morevp/5480

4: https://plasma.build/t/predicates-in-matic-plasma/86

More details on the submission can be found on our blog post on this: https://blog.matic.network/matic-goes-to-the-great-reddit-scaling-bakeoff/[53][54].

5: https://www.youtube.com/watch?v=r9efkWDwnY8&feature=youtu.be

6: https://github.com/maticnetwork/reddit-bakeoff-poc

7: https://github.com/maticnetwork/reddit-bakeoff-poc

8: https://github.com/maticnetwork/reddit-bakeoff-poc/blob/develop/README.md

9: https://github.com/maticnetwork/reddit-bakeoff-poc/blob/develop/README.md

10: https://mumbai-explorer.matic.today/

11: https://mumbai-explorer.matic.today/address/0xc4f93FeF8086c452134B0F15a5AE963ACe6A7748/transactions

12: https://mumbai-explorer.matic.today/address/0xd7ab2634121e7afCE48b2A8Ea5db908869158D3E/transactions

13: https://mumbai-explorer.matic.today/address/0x94B8f2A9a36Be215F2D4211DFee523f204f0a897/transactions

14: https://github.com/maticnetwork/reddit-bakeoff-poc/blob/develop/README.md#workflows

15: https://github.com/maticnetwork/reddit-bakeoff-poc/blob/develop/README.md#workflows

16: https://github.com/maticnetwork/reddit-bakeoff-poc/wiki

17: https://github.com/maticnetwork/reddit-bakeoff-poc/wiki

18: https://github.com/maticnetwork/reddit-bakeoff-poc/tree/develop/scripts

19: https://github.com/maticnetwork/reddit-bakeoff-poc/tree/develop/scripts

20: https://www.opengsn.org/

21: https://github.com/maticnetwork/reddit-bakeoff-poc/tree/gsn

22: https://github.com/maticnetwork/reddit-bakeoff-poc/tree/gsn

23: https://github.com/maticnetwork/reddit-bakeoff-poc/tree/reddit%5C_benchmark

24: https://github.com/maticnetwork/reddit-bakeoff-poc/tree/reddit_benchmark

25: https://drive.google.com/%E2%80%A6/1r1X0RNTIpE0w4MY599t9TO8PHvdQXqqz

26: https://drive.google.com/drive/folders/1r1X0RNTIpE0w4MY599t9TO8PHvdQXqqz

27: https://www.notion.so/maticnetwork/Reddit-PoC-bulk-transaction-script-results-5aac772b3c0b424b93c7700ad53dc30c

28: https://www.notion.so/maticnetwork/Reddit-PoC-bulk-transaction-script-results-5aac772b3c0b424b93c7700ad53dc30c

29: https://github.com/maticnetwork/monitoring-tools/tree/master/benchmarking

30: https://github.com/maticnetwork

31: https://docs.matic.network/

32: https://docs.matic.network/docs/contribute/matic-architecture

33: https://web3js.readthedocs.io/

34: https://docs.portis.io/#/configuration?id=network

35: https://docs.tor.us/torus-wallet/developing-with-torus-wallet/networklist

36: https://docs.fortmatic.com/web3-integration/network-configuration#switch-network-to-custom-node

37: https://metamask.io/

38: https://docs.matic.network/docs/develop/getting-started

39: https://docs.matic.network/docs/integrate/quickstart

40: https://docs.matic.network/docs/contribute/contracts/plasma_contracts/account_based_plasma

41: https://docs.matic.network/docs/contribute/contracts/plasma_contracts/predicates

42: https://docs.matic.network/docs/contribute/contracts/stakingmanager

43: https://www.opengsn.org/

44: https://biconomy.io/

45: https://blog.matic.network/faster-plasma-exits-with-nuo/

46: https://medium.com/matic-network/enabling-faster-plasma-exits-3ca5a936f215

47: https://medium.com/matic-network/enabling-faster-plasma-exits-3ca5a936f215

48: https://github.com/maticnetwork/reddit-bakeoff-poc/wiki/Withdraw:-How-to-exit-from-Matic-chain

49: https://github.com/maticnetwork/reddit-bakeoff-poc/wiki/Withdraw:-How-to-exit-from-Matic-chain

50: https://explorer.matic.network/

51: https://ethresear.ch/t/account-based-plasma-morevp/5480

52: https://github.com/maticnetwork/reddit-bakeoff-poc/blob/develop/contracts/root/predicate/MintableERC20Predicate.sol

53: https://blog.matic.network/matic-goes-to-the-great-reddit-scaling-bakeoff/

54: https://blog.matic.network/matic-goes-to-the-great-reddit-scaling-bakeoff/

Looking forward to what's in store!

Comments

Comment by jdkanani at 29/07/2020 at 20:02 UTC

63 upvotes, 0 direct replies

Hi u/jarins[1] and u/EvanVanNess[2]

1: https://www.reddit.com/u/jarins/

2: https://www.reddit.com/u/EvanVanNess/

Here is Matic's proposal to scale Reddit on Ethereum.

​

Hello Ethereum community,

Happy to answer any questions you might have.

Comment by bohendo at 30/07/2020 at 06:54 UTC

18 upvotes, 1 direct replies

Great work, very impressive numbers

Proof-of-Stake based decentralized multi-operator Plasma construction which mitigates mass exit occurrence

How many operators were running during these benchmarks?

How many ought to run for the side-chain to be secure?

Extremely high scalability with each sidechain (multiple sidechains in future, hence suitable for the scale of Reddit)

If you were designing a Matic-Reddit integration, would you consider running a separate side chain for each subreddit vs one side-chain for all subreddits?

Comment by Cryptolexicon at 29/07/2020 at 22:20 UTC

12 upvotes, 0 direct replies

Wow, superb

Comment by lifemademe at 29/07/2020 at 20:40 UTC

29 upvotes, 0 direct replies

An awesome proposal. Good luck $Matic.

Comment by ta3ty_tac0s_eth at 30/07/2020 at 00:09 UTC

12 upvotes, 0 direct replies

Nice write up too!

Comment by cryptoBull90 at 29/07/2020 at 21:00 UTC

16 upvotes, 0 direct replies

Extraordinary Proposal by #MaticNetwork. Keep up the good work guys and Good Luck!!

Comment by Bob-Rossi at 30/07/2020 at 01:56 UTC

16 upvotes, 0 direct replies

And to think quality work just simply gets the 100 upvotes without brigading

Comment by Tidsdilatation at 29/07/2020 at 21:52 UTC

22 upvotes, 0 direct replies

Good luck! This is the first applicant that I’ve used in my day to day crypto life.

Comment by commonwealthsynth at 29/07/2020 at 23:40 UTC

11 upvotes, 0 direct replies

I love it. 3.52. Wow.

Comment by Halperwire at 30/07/2020 at 03:30 UTC

21 upvotes, 1 direct replies

There is something about this that I like. It isn't giving me that scum bag astroturfing vibe. Also isn't named something stupid like shark are dragon for example.

Comment by nikhil7814 at 29/07/2020 at 22:06 UTC

13 upvotes, 0 direct replies

Matic proving to be the most scalable, usable and secure solution that Reddit requires. Hats off to the team who put together this PoC.

Comment by arunphilips at 30/07/2020 at 04:24 UTC

14 upvotes, 0 direct replies

Crisp and precise explanation unlike certain others.

1285$ per year for more than 1B transactions.

If I did this on Ethereum right now, I’d be 1B$ poorer. Good thing I don’t have 1B 😂

Thanks Matic for giving me an opportunity to do things only billionaires can do <3

Comment by CryptoRocky at 30/07/2020 at 18:10 UTC

8 upvotes, 0 direct replies

I'll put in my vote for Matic. They have the tech needed to solve this. No question about it. They utilize the security and decentralization of Ethereum, with the speed and scalability of Plasma.

I see Matic being as successful and helpful to Ethereum as Lightning Network for Bitcoin.

Comment by Dr_Cosmos2020 at 29/07/2020 at 21:44 UTC

6 upvotes, 0 direct replies

That’s fckn Awesome 😎 Congratulations

Comment by vamp-x at 29/07/2020 at 23:59 UTC

6 upvotes, 0 direct replies

👏🏻👏🏻 great proposal

Comment by lechuck88 at 30/07/2020 at 14:17 UTC

4 upvotes, 1 direct replies

this is good! the only thing that let me think is , you calculate the price of using your L2 system with matic tokens(you used 179 tokens in this example) but what if the price of the token will skyrocket during a bull run-like it will go 20x that in crypto isn't to far fetched- will the price of the L2 skyrocket too?

Comment by nrios05 at 30/07/2020 at 01:28 UTC

6 upvotes, 0 direct replies

Nice project..

Comment by mEtherium at 30/07/2020 at 08:15 UTC

6 upvotes, 0 direct replies

I love it when the work speaks for itself. Impressive numbers in this current fee climate. Dare I say, undeniable.

Comment by jokoto93 at 30/07/2020 at 12:33 UTC

7 upvotes, 0 direct replies

very professionnal and interesting submission. The results should be enough for Reddit !

Comment by blackfrogphotos at 30/07/2020 at 00:55 UTC

6 upvotes, 0 direct replies

Already validating on the Matic Network! Woot!

Comment by Urkuund at 01/08/2020 at 06:52 UTC

4 upvotes, 0 direct replies

Amazing project and precise submission ! All the best to the team, u killing it

Comment by GbhoyDownUnder at 30/07/2020 at 07:07 UTC

6 upvotes, 0 direct replies

Reddit have found their scaling solution here in Matic Network. This submission is absolutely stunning. The numbers are so impressive. Honestly, $3.52 for 3m transactions, Ethereum can only dream of that.

Matic Network, I tip my hat to your team for this excellent work and I'm extremely confident you guys will get the gig.

Comment by FractalSound at 30/07/2020 at 02:04 UTC

4 upvotes, 0 direct replies

Impressive. Love to see projects take this seriously! 🤘

Comment by Brinker59 at 30/07/2020 at 08:27 UTC

-6 upvotes, 0 direct replies

This all sounds sounds good, but there is one major problem. You guys relies on Ethereum and it can be good

Comment by [deleted] at 30/07/2020 at 07:36 UTC

-4 upvotes, 1 direct replies

[deleted]