微服务在电力交易系统中的应用研究Research on Application of Micro Service in Power Transaction System
承林;王海宁;高春成;
摘要(Abstract):
电力改革的推进促使电力交易的用户规模不断增长,传统基于单体结构的电力交易系统已经不能满足业务快速变化和系统性能方面的要求。利用微服务技术架构对电力交易系统进行了改造,并通过微服务的实施,将单体结构的系统转换为分布式系统,以增强系统的负载性能和伸缩性;分离服务使系统获得逻辑上的解耦,以便能够快速应对业务模式的变化和更便捷的升级维护。在分析电力交易业务与电力交易系统现状的基础上,提出了较为可行的系统架构设计方案,对关键技术的解决给出说明,并通过实验,验证了采用所提出的技术方案可以使电力交易系统的吞吐量、容错性、可维护性和可扩展性都得到较大的提高。
关键词(KeyWords): 微服务;电力交易系统;分布式
基金项目(Foundation):
作者(Author): 承林;王海宁;高春成;
Email:
DOI: 10.13335/j.1000-3673.pst.2017.2009
参考文献(References):
- [1]王海宁,王兴,刘广一,等.火电厂特性曲线整编及经济调度软件包的开发与研究[J].电网技术,1995,19(9):41-44.Wang Haining,Wang Xing,Liu Guangyi,et a1.Studies of plant performance curve determination and economic dispatch[J].Power System Technology,1995,19(9):41-44(in Chinese).
- [2]周海明,王海宁,史述红,等.电力市场仿真系统的开发及应用[J].电网技术,2010,34(1):117-121.Zhou Haiming,Wang Haining,Shi Shuhong,et a1.Development of electricity market simulation system and its application[J].Power System Technology,2010,34(1):117-121(in Chinese).
- [3]杨争林,宋燕敏,沈利华.基于J2EE的电力市场技术支持系统研究[J].电力系统自动化,2004,28(8):35-39.Yang Zhenglin,Song Yanmin,Shen Lihua.Application of J2EE architecture in power market operation system[J].Automation of Electric Power Systems,2004,28(8):35-39(in Chinese).
- [4]苏凯,姚星安,张德亮,等.广东电力市场交易系统设计与实现[J].南方电网技术,2015,9(8):52-56,70.Su Kai,Yao Xing’an,Zhang Deliang,et a1.Design and implementation of Guangdong electric power market trading system[J].Southern Power System Technology,2015,9(8):52-56,70(in Chinese).
- [5]张显,郑亚先,耿建,等.支持全业务运作的电力用户与发电企业直接交易平台设计[J].电力系统自动化,2016,40(3):122-128.Zhang Xian,Zheng Yaxian,Geng Jian,et a1.Design of direct trading platform for electricity users and power generation enterprises supporting whole business procedure[J].Automation of Electric Power Systems,2016,40(3):122-128(in Chinese).
- [6]赵博石,严宇,刘永辉,等.基于区域发电成本核准的跨区跨省电力交易偏差电量定价方法[J].电网技术,2016,40(11):3334-3341.Zhao Boshi,Yan Yu,Liu Yonghui,et a1.Pricing method of deviation electric quantity based on regional generation cost of cross-regional and cross-province electricity transaction[J].Power System Technology,2016,40(11):3334-3341(in Chinese).
- [7]尚金成,张显,高春成,等.电力用户与发电企业直接交易平台的设计与实现[J].电网技术,2011,35(9):199-204.Shang Jincheng,Zhang Xian,Gao Chuncheng,et a1.Business analysis and design of platform for direct transactions between large power consumers and generation enterprises[J].Power System Technology,2011,35(9):199-204(in Chinese).
- [8]张显,王锡凡.基于分段电力合同的发电商优化合同电量[J].中国电机工程学报,2006,26(8):12-17.Zhang Xian,Wang Xifan.Generator’s optimal electricity volume based on block electricity contracts[J].Proceedings of the CSEE,2006,26(8):12-17(in Chinese).
- [9]龙苏岩,张显,杨争林,等.基于构件库的柔性电能结算方法[J].电力系统自动化,2013,37(14):89-94.Long Suyan,Zhang Xian,Yang Zhenglin,et a1.A component library based flexible electricity settlement method[J].Automation of Electric Power Systems,2013,37(14):89-94(in Chinese).
- [10]龙苏岩,徐亮,徐骏,等.基于元数据组扩展技术的电能结算方法研究与应用[J].电网技术,2016,40(11):3328-3333.Long Suyan,Xu Liang,Xu Jun,et a1.Research and application of electricity settlement method based on metadata group expansion technology[J].Power System Technology,2016,40(11):3328-3333(in Chinese).
- [11]Fowler M,Lewis J.Microservices-a definition of this new architectural term[EB/OL].(2014-03-25)[2017-06-18].http://martinfowler.com/articles/microservices.html.
- [12]冯新扬,沈建京,REST和RPC:两种Web服务架构风格比较分析[J].小型微型计算机系统,2010,7(7):1393-1395.Feng Xinyang,Shen Jianjing.REST and RPC:Comparative analysis of two web services architectural style[J].Journal of Chinese Mini-Micro Computer Systems,2010,7(7):1393-1395(in Chinese).
- [13]王伟,余利华.RPCI:面向互联网的RPC框架[J].计算机工程与应用,2013,49(21):106-110.Wang Wei,Yu Lihua.RPCI:RPC for internet applications[J].Computer Engineering And Applications,2013,49(21):106-110(in Chinese).
- [14]Slee M,Agarwal A,Kwiatkowski M.Thrift:scalable cross-language services implementation[J].Facebook White Paper,2007(5):8.
- [15]Patrick H,Mahadev K,Flavio P J.Zoo Keeper:wait-free coordination for internet-scale systems[C]//In Proceedings of the 2010 USENIX conference on USENIX annual technical conference(USENIXATC'10).Berkeley,CA,USA:USENIX Association,2010:11.
- [16]倪超.从Paxos到Zookeeper:分布式一致性原理与实践[M].北京:电子工业出版社,2015:17-27.
- [17]薛军,李增智,王云岚,负载均衡技术的发展[J].小型微型计算机系统,2003,24(12):2100-2103.Xue Jun,Li Zengzhi,Wang Yunlan.Development of technology of load balancing[J].Journal of Chinese Mini-Micro Computer Systems,2003,24(12):2100-2103(in Chinese).
- [18]孔祥瑞,李鹏,严正,等,售电侧放开环境下的电力市场压力测试分析[J].电网技术,2016,40(11):3279-3286.Kong Xiangrui,Li Peng,Yan Zheng,et a1.Stress testing on electricity market with retail transactions opened[J].Power System Technology,2016,40(11):3279-3286(in Chinese).