能源市场中NoSQL的评估与GraphQL优化
Evaluation of NoSQL in the Energy Marketplace with GraphQL Optimization
AI总结:
本研究针对电动汽车充电需求下的能源市场存储问题,对比Google Cloud Firestore(NoSQL)与Cloud SQL MySQL(SQL)的查询延迟、扩展性和成本,验证Firestore能否满足需求及GraphQL中间件能否弥补其缺陷。
摘要:
美国电动汽车的日益普及需要不断扩大商用直流快充站的基础设施规模。美国能源部估计,截至2023年9月,全美共有33355个公共直流快充站。里程焦虑是阻碍电动汽车普及的重要因素,在该国服务不足的地区这一问题更为突出。点对点能源市场通过允许私人住宅和小型企业主出租其240伏的2级充电设施,帮助填补了这一需求缺口。现有的公共插座都配备了联网云的微控制器,用于管理安全和充电会话。这些微控制器作为边缘设备与云消息代理通信,而买卖双方用户都通过基于网页的用户界面与该框架交互。能源市场框架使用的数据库存储是开发成本和影响用户体验的性能两方面的关键组成部分。传统的存储解决方案是SQL数据库。然而,跨多节点扩展的难度以及基于服务器的计算成本,导致过去20年出现了向其他NoSQL无服务器方案发展的趋势。在本研究中,我们通过对比Google Cloud Firestore和Cloud SQL MySQL产品,评估了NoSQL与SQL解决方案的优劣。该对比将Google的无服务器、文档模型、非关系型NoSQL服务与基于服务器、表模型、关系型SQL服务进行对标。评估基于查询延迟、灵活性/可扩展性和成本三项标准。通过基准测试和架构分析,我们确定了Firestore是否能够满足能源市场的存储需求,以及引入GraphQL中间件层是否能够弥补其不足。
英文摘要:
The growing popularity of electric vehicles in the United States requires an ever-expanding infrastructure of commercial DC fast charging stations. The U.S. Department of Energy estimates 33,355 publicly available DC fast charging stations as of September 2023. Range anxiety is an important impediment to the adoption of electric vehicles and is even more relevant in underserved regions in the country. The peer-to-peer energy marketplace helps fill the demand by allowing private home and small business owners to rent their 240 Volt, level-2 charging facilities. The existing, publicly accessible outlets are wrapped with a Cloud-connected microcontroller managing security and charging sessions. These microcontrollers act as Edge devices communicating with a Cloud message broker, while both buyer and seller users interact with the framework via a web-based user interface. The database storage used by the marketplace framework is a key component in both the cost of development and the performance that contributes to the user experience. A traditional storage solution is the SQL database. However, difficulty in scaling across multiple nodes and cost of its server-based compute have resulted in a trend in the last 20 years towards other NoSQL, serverless approaches. In this study, we evaluate the NoSQL vs. SQL solutions through a comparison of Google Cloud Firestore and Cloud SQL MySQL offerings. The comparison pits Google's serverless, document-model, non-relational, NoSQL against the server-base, table-model, relational, SQL service. The evaluation is based on query latency, flexibility/scalability, and cost criteria. Through benchmarking and analysis of the architecture, we determine whether Firestore can support the energy marketplace storage needs and if the introduction of a GraphQL middleware layer can overcome its deficiencies.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。