• 首页
  • 期刊简介
  • 编委会
  • 投稿指南
  • 收录情况
  • 杂志订阅
  • 联系我们
引用本文:【点击复制】
【打印本页】   【下载PDF全文】   【查看/发表评论】  【下载PDF阅读器】  
←前一篇|后一篇→ 过刊浏览
分享到: 微信 更多
基于Elasticsearch的业务系统存储重构
赵志成
广州软件学院
摘 要: 随着移动互联网时代数年的发展,数据的量级不断增长,业务不断的迭代进而软件系统出现性能瓶颈,系统程序复杂度随时间呈指数式增长,开发效率直线下降,在微服务架构中默认占据主导地位的数据库MySQL发生业务发展不匹配,慢查询爆发等问题时变更传统软件架构设计,替换数据库是否可以彻底解决根本问题?本文从一次实际业务系统Elasticsearch替换传统MySQL数据库的重构出发,通过问题、解决方案、实现细节的方式详细描述Elasticsearch的数据实时性问题,增量及存量数据的处理、灰度、对数以及如何通过两级缓存机制同时解决Elasticsearch数据实时性以及开发效率的问题。
关键词: Elasticsearch实时性  两级缓存  重构
中图分类号:     文献标识码: 
Business System DataBase Refactoring Based on Elasticsearch
zhao zhi cheng
Guangzhou University of Software
Abstract: With the development of the mobile internet era over the past few years, data volume has continued to grow, and as businesses iterate, software systems have encountered performance bottlenecks. The complexity of system programs has increased exponentially over time, leading to a sharp decline in development efficiency. In the microservices architecture, MySQL, which is the default dominant database, faces issues such as business development mismatches and a surge in slow queries. When these problems arise, is replacing the database to address traditional software architecture design changes enough to fundamentally solve the core issues? This article starts from a real-world business system where Elasticsearch replaces the traditional MySQL database. It provides a detailed description of the data synchronization issues in Elasticsearch, how to handle incremental and historical data, gray release and logarithmic problems, and how a two-level cache mechanism can simultaneously solve the issues of data real-time performance and development efficiency in Elasticsearch.
Keywords: Elasticsearch  Two-level cache  Refactoring


版权所有:软件工程杂志社
地址:辽宁省沈阳市浑南区新秀街2号 邮政编码:110179
电话:0411-84767887 传真:0411-84835089 Email:semagazine@neusoft.edu.cn
备案号:辽ICP备17007376号-1
技术支持:北京勤云科技发展有限公司

用微信扫一扫

用微信扫一扫