首页 | 本学科首页   官方微博 | 高级检索  
     

Redis缓存技术在自动气象站资料调用中的优化应用
引用本文:詹利群,程海林,任晓炜. Redis缓存技术在自动气象站资料调用中的优化应用[J]. 计算机系统应用, 2019, 28(5): 77-83
作者姓名:詹利群  程海林  任晓炜
作者单位:广西壮族自治区气象信息中心,南宁,530022;成都信息工程大学,成都,610225
基金项目:广西科技重点研发计划项目(桂科AB16380267);国家档案局科技项目(2016-X-06)
摘    要:为了提高气象自动站资料的检索查询效率,采用基于内存Key-Value结构的Redis数据库技术,通过搭建Redis数据库集群,把数据缓存在内存中并实现主从复制,提出一种适合气象自动站数据特性的数据存储结构模型,使得高频次访问的气象自动站数据能够直接从内存中读取,有效地减少数据查询响应的时间.本文分析了逐小时自动气象站观测资料的调用情况和到报时间特性,并基于Redis分别从业务库、索引库和时间库对逐小时自动站资料进行存储设计和具体实现,最后通过实验比对,得出采用Redis缓存逐小时自动气象站观测资料的检索效率比直接访问CIMISS检索效率高,该方法也可以应用到其它资料的检索调用业务场景中,具有较好的推广应用价值.

关 键 词:Redis  缓存技术  自动气象站资料  优化应用
收稿时间:2018-11-04
修稿时间:2018-11-23

Optimized Application of Redis Caching Technology in Automatic Weather Station Data Call
ZHAN Li-Qun,CHENG Hai-Lin and REN Xiao-Wei. Optimized Application of Redis Caching Technology in Automatic Weather Station Data Call[J]. Computer Systems& Applications, 2019, 28(5): 77-83
Authors:ZHAN Li-Qun  CHENG Hai-Lin  REN Xiao-Wei
Affiliation:Meteorological Information Center, Guangxi Zhuang Autonomous Region, Nanning 530022, China,Chengdu University of Information Technology, Chengdu 610225, China and Meteorological Information Center, Guangxi Zhuang Autonomous Region, Nanning 530022, China
Abstract:In order to improve the efficiency of retrieval and query of meteorological automatic station data, Redis database technology based on memory key-value structure is adopted. By building a Redis database cluster, the data are cached in memory and the master-slave replication is realized. A data storage structure model suitable for the characteristics of meteorological automatic station data is proposed, which makes high frequency access possible. Meteorological automatic station data can be read directly from memory, effectively reducing the time of data query response. In this study, the hourly automatic weather station observation data transfer and reporting time characteristics are analyzed. Based on Redis, the hourly automatic weather station data are stored and designed from business database, index database, and time database respectively. Finally, through experimental comparison, it is concluded that the hourly automatic weather station observation data are cached by Redis, and the retrieval efficiency of proposed method is higher than that of CIMISS. This method can also be applied to other information retrieval and invocation business scenarios, and has a good application value.
Keywords:Redis  cache technology  automatic weather station data  optimized application
本文献已被 万方数据 等数据库收录!
点击此处可从《计算机系统应用》浏览原始摘要信息
点击此处可从《计算机系统应用》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号