摘要
针对传统的3层结构对基于分布式的多个应用服务器、多个数据库的应用还有一些局限性的问题,提出了一个通用的C/S(Client/Server)框架,该框架采用4层架构——客户端、分发服务器、应用服务器、数据库。客户端通过广播的方式动态建立与分发服务器的通信,分发服务器将客户端传过来的消息包动态转发到相应的应用服务器,从而使程序编制更加灵活;通过在客户端采用守护线程以及在应用服务器端采用回调线程的方式引进了消息回调的机制,使得分布式的各个客户端、应用服务器之间的同步更加方便。
Considering traditional three-tier has some deficie ncy in several app lication server and several database server, an application framework is propose d which introduce four-tier framework-client,distribute server,application se r ver,database server and callback mechanism. Client dynamic communi cate to distribute server by broadcast, distribute server dynamic transmit the m essage package of client to corresponding application server, thus making the pr ogramming more agility. The framework introduce the message callback mechanism b y adopting daemon thread in client and callback thread in application server, ma king the synchronization more agility and facility between the distributing ever y client and application server.
出处
《吉林大学学报(信息科学版)》
CAS
2003年第2期172-177,共6页
Journal of Jilin University(Information Science Edition)
关键词
软件重用
消息回调
客户/服务器
同步
多线程
Framework
Multi-tier
Message callback
Client/Server
Synchronization
Multithreading