We use RemObjects SDK for our services, and we are very happy with the quality!
You can use TCP + Binary messages (for high speed), with optional encryption and compression. But also HTTP + SOAP (or XML or whatever) is possible, or TCP + SOAP etc.
It is very easy to use, and worth the price (it is not very expensive)!
BTW: Data Abstract is based on the SDK, both are from RemObjects.com.
另一种选择是像 Data Abstract 这样的第三方库,它可能具有更好的开箱即用支持多层,但您可能会将自己更多地锁定在某项技术上。
话虽如此:我在生产方面没有丰富的经验。
SOAP or REST WebServices are widely supported and are (SOAP almost always, REST definitely always) HTTP based so are firewall friendly and could be encrypted using SSL. Delphi 7 does SOAP, but doing your own REST isn't that difficult either.
The other option would be a 3rd party library like Data Abstract which might have better out of the box support for Multi-Tier, but you might lock yourself into a technology more.
That having said: I don't have extensive experience either of these in production.
The ORM will be used for both the Data layer and at Business logic layer: you can use objects to map your database, and also create if necessary your own business objects, which will be exposed in a RESTful approach over the Internet, via JSON;
User Interface will use some objects on the Client side (there are dedicated units for Delphi UI generation, but you could be able also to write an AJAX application, using JSON for its communication);
A lot of other features, including any other DB back-end (native Oracle/OleDB/MSSQL...) in the (very) near future.
Take a look at the documentation, which can be downloaded as pdf files. There are some pages highlighting all those architecture aspects, in the first part of the SAD document:
MVC and Multi-Tier architecture;
Why an ORM (with advanced RTTI) - why it is not only a layer over the DB;
Why a Client/Server ORM;
Writing RESTful Services in a SOA approach;
ORM and SQL (via SQLite3 virtual tables, custom functions to access BLOB).
It's Open Source, working from Delphi 6 up to XE, full Unicode (even on Delphi 7, since it uses internally UTF-8 encoding, like JSON). So when you'll upgrade to a newer Delphi version, your code will still be valid. Could be useful.
发布评论
评论(3)
我们使用 RemObjects SDK 来提供服务,我们对质量非常满意!
您可以使用 TCP + 二进制消息(用于高速),并可选择加密和压缩。而且 HTTP + SOAP(或 XML 或其他)也是可能的,或者 TCP + SOAP 等。
它非常容易使用,而且物有所值(不是很贵)!
BTW:Data Abstract 是基于 SDK 的,两者均来自 RemObjects.com。
We use RemObjects SDK for our services, and we are very happy with the quality!
You can use TCP + Binary messages (for high speed), with optional encryption and compression. But also HTTP + SOAP (or XML or whatever) is possible, or TCP + SOAP etc.
It is very easy to use, and worth the price (it is not very expensive)!
BTW: Data Abstract is based on the SDK, both are from RemObjects.com.
SOAP 或 REST Web 服务受到广泛支持,并且(SOAP 几乎总是,REST 肯定总是)基于 HTTP,因此防火墙友好,并且可以使用 SSL 加密。 Delphi 7 执行 SOAP,但执行您自己的 REST 也不是那么困难。
另一种选择是像 Data Abstract 这样的第三方库,它可能具有更好的开箱即用支持多层,但您可能会将自己更多地锁定在某项技术上。
话虽如此:我在生产方面没有丰富的经验。
SOAP or REST WebServices are widely supported and are (SOAP almost always, REST definitely always) HTTP based so are firewall friendly and could be encrypted using SSL. Delphi 7 does SOAP, but doing your own REST isn't that difficult either.
The other option would be a 3rd party library like Data Abstract which might have better out of the box support for Multi-Tier, but you might lock yourself into a technology more.
That having said: I don't have extensive experience either of these in production.
您可以看一下我们的 ORM 框架,它通过多种协议(包括 HTTP/1.1)实现了 n 层客户端-服务器架构。
因此,它可以帮助您使用 ORM 方法和 n 层/SOA 架构通过 Internet 构建客户端-服务器应用程序。
可以使用SOA(面向服务的架构)在 ORM 客户端-服务器方法中:
查看文档,可以下载 pdf 文件。在 SAD 文档的第一部分中,有一些页面强调了所有这些架构方面:
它是开源的,从 Delphi 6 到 XE,完整的 Unicode(甚至在 Delphi 7 上也是如此,因为它内部使用 UTF-8 编码,如 JSON)。因此,当您升级到较新的 Delphi 版本时,您的代码仍然有效。可能有用。
You could take a look at our ORM framework, which implements an n-Tier Client-Server architecture over several protocols, including HTTP/1.1.
So it could help you build Client-Server applications over the Internet, using an ORM approach, and a n-Tier/SOA architecture.
The SOA (Service Oriented Architecture) can be used in an ORM Client-Server approach:
Take a look at the documentation, which can be downloaded as pdf files. There are some pages highlighting all those architecture aspects, in the first part of the SAD document:
It's Open Source, working from Delphi 6 up to XE, full Unicode (even on Delphi 7, since it uses internally UTF-8 encoding, like JSON). So when you'll upgrade to a newer Delphi version, your code will still be valid. Could be useful.