一种分布式架构下的实时消息同步机制的设计与实现

2018-06-08 10:03:40陈鑫
科技视界 2018年8期
关键词:数据库

陈鑫

【摘 要】由于笔者工作中经常面临如何快速、准确的实现多终端之间基于Client/Server架构下实施消息同步的问题。于是,通过引用数据库中的Service Broker技术和WCF消息框架,开发并实现了一套分布式架构下的实时消息同步中间件。本文以此为契机,介绍了这种分布式架构下的实时消息同步机制的设计与实现方法。本文先对这种消息同步机制的架构进行了介绍,给出了其实现框架,进而介绍了如何在此框架下有效的构建消息传递的机制,并对其性能進行了分析。本套解决方案已经成功应用在空中交通管制专业中,实现了面向空中交通管制的消息实施传递,并对其他行业有轻量级实时消息传递需求的应用有一定参考作用。

【关键词】消息实时同步;空中交通管制

中图分类号: TP277 文献标识码: A 文章编号: 2095-2457(2018)08-0234-002

Design and implementation of a real-time message synchronization mechanism under a distributed architecture

CHEN Xin

(China Civil Aviation Air Traffic Management Bureau, Guangzhou, Guangdong 510000, China)

【Abstract】Since my work is often faced with how to quickly and accurately implement the problem of implementing message synchronization between multiple terminals based on Client/Server architecture. Therefore, a set of real-time message synchronization middleware under a distributed architecture is developed and implemented by referring to the Service Broker technology and WCF message framework in the database. This article takes this opportunity to introduce the design and implementation of a real-time message synchronization mechanism under this distributed architecture.

This paper first introduces the architecture of this message synchronization mechanism, gives its implementation framework, and then introduces how to build a message delivery mechanism effectively under this framework and analyzes its performance. This set of solutions has been successfully applied in the air traffic control professional, realized the implementation of message transmission for air traffic control, and has certain reference effect on the application of lightweight real-time messaging needs in other industries.

【Key words】Real-time synchronization of messages; Air traffic control

如何让数据库中不断变化的航班数据无延时的送给管制员一直是困扰开发人员的一个课题。在以往的系统中,大部分采用的技术是定时的查询数据库,获得数据库中变化的数据或者获取整个数据库中最新的快照,然后通过处理之后再前台展现出来。这样的方法就存在数据更新不及时,并发访问时突发数据量大,容易发生数据库死锁等问题。不仅在用户感受上,也在系统稳定性上处于不利状态。如果在管制员对航班进行管制的时候,能获得实时的航班数据将大大提高管制的效率和安全性,不仅如此,这样的方式也避免了高频率的整表轮询,隔离了数据库和前台应用程序,从技术上大大提高了系统的稳定性。……

登录APP查看全文

猜你喜欢
数据库
数据库
财经(2017年15期)2017-07-03 22:40:49
数据库
财经(2017年2期)2017-03-10 14:35:35
数据库
财经(2016年15期)2016-06-03 07:38:02
数据库
财经(2016年3期)2016-03-07 07:44:46
数据库
财经(2016年6期)2016-02-24 07:41:51
数据库
财经(2015年3期)2015-06-09 17:41:31
数据库
财经(2014年21期)2014-08-18 01:50:18
数据库
财经(2014年6期)2014-03-12 08:28:19
数据库
财经(2013年6期)2013-04-29 17:59:30
数据库
财经(2010年20期)2010-10-19 01:48:32