《唐刚 - Use Rust to Develop the Decentralized Open Data Application - RustChinaConf2023.pptx》由会员分享,可在线阅读,更多相关《唐刚 - Use Rust to Develop the Decentralized Open Data Application - RustChinaConf2023.pptx(30页珍藏版)》请在三个皮匠报告上搜索。
1、第三届中国第三届中国Rust开发者大会开发者大会Use Rust to Develop the Decentralized Open Data ApplicationMike Tang daogangtang2023-06-08 裁员 互联网格局定型 平台倒闭,数据丢失这是一个什么时代?互联网的终局创业-种子-天使-A-B-C-IPO创业的目的是?赚钱盈利。建立一个好的平台,尽量粘住用户代码:可能开源,可能不开源,绝大部分不开源。数据?完全封闭。数据是护城河,是信息时代的石油。互联网企业的发展模式Web3?So-called Web3?Where is the Next Stage Block
2、chain Decentralized Ledger Storage:MPT(Merkle Patricia Tree)K-V database Smart Contract ServerlessThe Weapons Web3 UtilizesFor mainstream tech stack,e.g.Ethereum A world-wide unified network to provide a serverless layerA single-core CPU machineIs serverless really the next stage of Internet?Or just
3、 a gimmick by cloud platform Wants to extend the financial computation/storage model to general casesLimites of On-chain VM computationLimites of MPTLimites of K-V dbProblems of Web3:Technical ViewpointFinancial Model:Account=Balance Relatively closed dataset,linear increasement against account set
4、One dimensionInternet Model:Any Open dataset,data will increase quickly on any dimension.Multiple dimensionsDataset Models What is open data?Build an internet platform,but open its data to everyone.Why we need open data?The business of the closed data model has been at the end.A New Proposal:Open Da
5、ta ApplicationThe Road to Open Web From the user side,it looks like just the traditional Internet app But everyone have the chance to download/sync all open data from this platform On the server side,it is a network,consisting of some/many nodes Every node has a blockchain node in itWhat An Open Dat
6、a App Feels Like?“EightFish is a development framework(maybe the first one)for the Open Data Application(ODA),implementing the Open Data Application Model(ODAM).The theory of the ODA and ODAM is located here.In short description:EightFish powers ODAs,ODAs constitute the Open Web.”https:/ intends to
7、develop the Data-kind Decentralized Application.You can use the traditional Web development coding style to develop a ODA.How to develop Open Data ApplicationThe EightFish Application ComponentsThe EightFish Application Network TopologyHow to Write LogicHow to Write LogicHow to Write Logic Docker co
8、mpose,yaml configure file One command to boot up and deploy 5 fixed EightFish services+1 your customized app servicesHow to Test and Deploysubnodesubxt proxyhttp gatepostgresredisapp biz+=ODA Rust WebAssembly Substrate Wasmtime Spin Redis PostgresqlThe EightFish Tech StackOne EightFish network hosts
9、 one protocol,different protocols sit on different networks.(like appchains)One EightFish Network Hosts One Protocolnode1node2node3node4nodeProtocol 1node1node2node3node4nodeProtocol 2One Protocol Supports Multiple Applicationsnode1node2node3node4nodeProtocol 1app 1app 2app 3app nEvery app has its o
10、wn backend and frontend implementations.General User Text Persistence protocolhttps:/ Case:GUTPMeBlog is a blog platform for users with the features of open-data and ownership.https:/ Case:Meblog Connected to GUTPAll Open Data Apps Constitute the Open WebODA vs Web2 appWeb2 AppOpen Data AppCentraliz
11、ationCentralizedDecentralizedPerformanceHighHigh,less than Web2Query CapabilityPowerfulPowerful,less than Web2Open Source CodeOpen or Not,mostly NOTOpenData ResiliencyNormalHighData OpennessClosedOpenTrustlessnessNoYesODA vs Web3 DAppWeb3 DAppOpen Data AppCentralizationDecentralizedDecentralizedUnde
12、rlying NodesManyFewPerformanceLowHighQuery CapabilityLowHighOpen Source CodeOpenOpenHot Data CapacityLowHighData ResiliencyHighHighData OpennessOpenOpenTrustlessnessYesYesWeb3 DApp focuses on TOKEN and tokenizing other thingsODA focuses on DATA and the OPENNESS of the dataCore Difference Between ODA
13、 and Web3 DAppIf I opened my database to others,how would I get profits from my efforts,how should I run my business?How to attract more parties to run steady and persistent nodes for this platform?Two Major Problems End user drives,no security(or token fund)drives.Network is like a living creature,
14、it will evolve grow or die.The needs of the end users is the force to drive this network to evolve.So what we should keep doing is to develop the scale of the end users.More users,more data,more meanings.The incoming depends on consumer traffics,not directly on users data.More users,more incomings.T
15、he decentralization could probably reduce the cost,so you may get more profits.More profits,more network nodes coming.They can share the profits of the overall network.An Initial Scheme Open Data give EVERYONE the rights/chance to train your own AI model,by collecting the raw data source easily!The rights of Raw Data Equality The AI age requires Open Data/Open Web for people to counter the Giant Techs.Idea:Open Data for Everyones AIThank you!