为elastos社区提供具有高可用性、高稳定性、高安全性的区块链数据API服务

This website is for reading. Voting, commenting, liking and following happen in the app. Comment, like or follow in the app

Likes
0
Dislikes
0
Views
0
Like or dislike in the app

Summary

提供包括ELA主链、ID侧链、ETH侧链等在内的所有主侧链节点数据的API服务,弥补现有API服务在稳定性、安全性、可用性等方面的不足,便于开发者等社区成员及相关产品直接使用API服务,促进elastos生态发展。

Goal

  1. 提供ELA节点、DID侧链节点的RPC服务
  2. 提供ETH侧链节点的RPC、WebSocket服务
  3. 提供支持查询ETH侧链跨链交易的Oracle服务
  4. 提供支持查询ETH侧链交易记录及token列表的API-Misc服务
  5. 支持mainnet及testnet环境
  6. 为上述服务部署多个冗余后端,保证服务的稳定性及可靠性
  7. 为API服务增加https访问模式,提高服务的安全性
  8. 增加API服务及节点监控程序,在出现问题后及时报警并修复
  9. 服务运行周期不少于4个月
  10. 在本提案执行期内,收集根据社区意见并在后续提案中进行补充、完善,通过后续提案对后续API服务进行支持

Motivation

elastos已上线ELA主链、ID侧链、ETH侧链等多条主侧链,包括Identity、Assit、Wallet、feeds在内的多个dApp以及支持ETH侧链的插件钱包MetaMask均在社区内积累了很多用户,这些APP的运行都依赖于API服务,需要通过API服务读取链上数据,并与链上进行信息交互。

目前API服务由于缺少经费支持,面临缺少服务器资源、无法及时得到升级维护、安全性低等困难,存在可用性差、稳定性低、易受攻击等问题,这些问题是elastos生态的一颗定时炸弹,会在feeds、defi等各类应用用户的爆发式增长时对整个elastos生态造成非常严重的影响,制约elastos生态的发展。

在该提案的支持下,我们将使用多台服务器组成elastos节点集群,通过一定的冗余设计保证提高API服务的稳定性及可用性,保证在高访问量的情况下仍然可以提供安全、稳定、可靠的API服务,为elastos生态发展提供稳固的底层支持。

Relevance to Elastos

Some parts of this suggestion are not shown.

Plan introduction

项目启动后,大约需要1周时间完成服务器租用及配置、搭建节点、部署监控、安装调试等工作。
在相关服务稳定后,将 api.elastos.io 域名指定至新服务器,并开始为社区提供API服务。
为更好的社区项目的需求对本API服务进行升级完善,同时保证项目在一定时间内的稳定性,本项目周期为4个月,4个月后希望由后续提案为该API服务继续提供支持。

Budget introduction

本建议的经费全部用于服务器租赁,不包含任何人员薪酬,实施团队人员将无偿参与本项目。
根据mainnet与testnet访问量的不同及不同节点对服务器配置的需求,计划分别租用29台AWS t3服务器运行相关服务。

AWS t3服务器的租用价格如下

Image: image

服务器用途、配置及数量见下图:

Image: image

本项目启动后需要大约1周时间进行系统部署,部署后将持续提供4个月服务,所以AWS服务器的租用时间大约为4.25个月。
每个月服务器费用大约为1638 USD,故项目总预算为 1638*4.25=6,961.5 USD
ELA价格为火币交易所ELA的30天均线价格,为1.77 USDT/ELA,项目总预算ELA数量=6961.5/1.77≈3,933 ELA

Budget amount

3933

Plan

Milestone goalDate

项目启动,租用服务器部署相关节点

2020-11-01T13:15:59.001Z

服务部署完毕,相关服务已上线

2020-11-08T13:15:59.001Z

提供第1个月的稳定API服务

2021-12-08T13:15:59.001Z

提供第2个月的稳定API服务

2022-01-08T13:15:59.001Z

提供第3个月的稳定API服务

2022-02-08T13:15:59.001Z

提供第4个月的稳定API服务,本提案任务完成

2023-02-08T13:15:59.001Z

Budget

TypeMilestoneAmountCriteria

ADVANCE

0

231

项目启动资金

CONDITIONED

1

0

服务器部署完毕,相关服务正式上线

CONDITIONED

2

925.5

API服务在第1个月运行稳定

CONDITIONED

3

925.5

API服务在第2个月运行稳定

CONDITIONED

4

925.5

API服务在第3个月运行稳定

COMPLETION

5

925.5

API服务在第4个月运行稳定,本项目完成。

Earlier comments

Read only.

  1. Guiko

    Yes because it's a security measure to add, and being preventive of possible problems is always a good stategy.The API services will be hightly used in the futur, so it needs to be ready and running before the actual user base coming.

  2. Anupam Varshney

    Recommend using reserved instances to save costs.

  3. - -

    essential

  4. Bocheng Zhang

    Thank you for your suggestion. Based on the following reasons, we would prefer to choose On-Demand instance: 1. The shortest period of Reserved Instance is 1 year. Since the elastos ecosystem is in a period of rapid development, we cannot estimate the demand for API services for all dApps in about a year based on the current situation, so we set the project cycle to 4 months, which can ensure the stability of the service it is also possible to optimize and adjust the content of API services every 4 months. We believe that this can ensure that the service is continuously adjusted according to changes in community needs so that funds and server resources can be used to the fullest. 2. As mentioned above, the cycle of this suggestion is 4 months. After 4 months, the content of the API service will be optimized according to the needs of the community and the usage of the API service. If the server is leased for one year at a time, it will limit the flexibility of optimization and adjustment of this service, and will also cause a certain degree of waste of funds and server resources. 3. After the API service can well meet the entire elastos ecological needs and does not need to be upgraded and adjusted, we can consider adjusting the project cycle to 1 year and reducing server costs by renting Reserved Instance.

  5. 万万 万万

    服务的基础建设及维护是十分必要的。

  6. Bocheng Zhang

    因为本建议的支付节点等部分存在错误,我将重新提交一份建议并修正上述错误。 Because there are errors in the Milestones and other parts of this suggestion, I will resubmit a suggestion and correct the above errors. https://www.cyberrepublic.org/suggestion/5f905cf3d7390c00785d4739

No comments yet.