德尔福技术的使用? [英] Which Delphi technology to use?

查看:151
本文介绍了德尔福技术的使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经写了德尔福的客户机/服务器应用程序。基本上所有的应用程序正在做的是一个服务器应用程序和连接的客户机之间传输的XML数据流。我目前使用的印TIdTCPServer组件。但是在服务器端应用程序保持崩溃的我的一些分期付款。它一直到调试极为困难。所以,我想知道是否有一些结构应该是我利用它做所有的TCP / IP连接管理和数据库连接池,让我专注于业务逻辑。

I have a Client/Server application written Delphi. Essentially all the application is doing is transferring xml data streams between a server application and connected clients. I am currently using the Indy TIdTCPServer component. But the server side application keeps crashing on some of my installments. And it has been extremely difficult to debug. So I am wondering if there is some "architecture" I should be utilizing which does all the tcp/ip connection management and database connection pooling, allowing me to concentrate on the business logic.

下面是详细信息:


  • 客户必须保持一个老大难的连接。有些时候,服务器必须通知并将数据发送到所有连接的客户端。

  • 客户正在使用无线aircards笔记本电脑连接。因此,网络滴是常见的pretty。

  • 后端数据库是SqlServer的。

  • 可以有向上的同时同时连接100台电脑。
    当服务器获得一个新的连接(TCPServer.OnConnect)我实例包含它自己的SQLSERVER数据库连接我自己的对象。当TCP连接被丢弃我又释放这些对象(以及相关的数据库连接)。

  • 客户端应用程序都内置了他们的TTimer。他们经常心跳发送到服务器。如果他们水滴/输一旦网络又回来了它们的连接会自动建立新的连接。

任何人有最好的方法/架构在这里有什么建议?结果
我presume印地部分的工作,但同时觉得我重新发明轮子关于管理连接。

Anyone have any suggestions on the best approach/architecture here?
I presume the Indy component would work, but at the same time feel I am "reinventing the wheel" with respect to managing the connections.

推荐答案

三个组件集我所知道的,将采取一些本质的关怀客户端服务器应用程序坚韧不拔技术方面你:

Three component sets I am aware of that will take care of the nitty gritty technical aspects of client server applications for you:

  • kbmMW: http://components4developers.com/
  • Asta: http://www.astatech.com/index.asp
  • RemObjects: http://www.remobjects.com/

您可能不得不重新编写应用程序,以充分利用这些组件集的工作方式,但假设你已经正确分离层应该不会太麻烦,并会买你的优势以及测试和广泛的应用code为您的客户端服务器的工作。

You may have to rework your applications to take advantage of the way these component sets work, but assuming you have properly separated layers that shouldn't be too much of a hassle and will buy you the advantage of well tested and widely used code for your client server work.

这篇关于德尔福技术的使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆