Delphi Web 和 Delphi 目前的选择是什么?网络服务开发

发布于 2024-10-06 09:18:05 字数 528 浏览 13 评论 0原文

我正在玩弄德尔福。我的大部分桌面开发都是用 .Net 完成的,嵌入式系统则用 C 完成。我在 RoR 和 RoR 中完成了一些 Web 开发。 Python(Django、CherryPy) 我有兴趣尝试一个具有本机客户端和 Web 客户端的 Web 服务(REST 或 SOAP)项目。

因为我最近重新受到学习 Delphi 的启发,所以我很好奇使用 Delphi 构建 Web 服务和 Web 客户端的选项是什么。大多数 Delphi 文档都有点过时,但到目前为止我发现了以下选择:

  • DataSnap
  • WebSnap
  • WebBroker
  • IntraWeb
  • Data Abstract 和 RemObjects 的 RemObjects SDK

我的印象是 WebSnap 已经死了,但其他技术仍在开发中。对于研究哪种技术有任何指导吗?

ps 我意识到 Delphi 并不是 Web 开发的一个广泛流行的选择,但我很想尝试一下,因为我一直在享受学习 VCL 的乐趣。

I'm toying around with Delphi. Most of my desktop development is done in .Net, and embedded systems with C. I've done some web development in RoR & Python (Django, CherryPy) I am interested in taking a crack at a project that would be a web service (REST or SOAP) with a native client and a web client.

Because I've recently been re-inspired to learn Delphi, I'm curious what the options are to build the web service and web client with Delphi. Most of the Delphi documentation is a little dated but so far I've found these choices:

  • DataSnap
  • WebSnap
  • WebBroker
  • IntraWeb
  • Data Abstract and RemObjects SDK from RemObjects

I get the impression that WebSnap is dead, but the other technologies are still being developed. Is there any guidance about which technology to investigate?

p.s. I realize that Delphi isn't a wildly popular choice for web development, but I'm curious to try since I've been having fun learning the VCL.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(9

追星践月 2024-10-13 09:18:05

您也许可以将我们的 Synopse SQLite3 Framework 添加到您的列表中。

有一些有趣的功能:

  • 在服务器端和客户端上使用 ORM 方法来管理数据(即像常规 Delphi 类一样定义和访问数据)——类似于 RoR 中的 ActiveRecord ;) ;
  • 多-分层架构
  • 无需部署数据库或 dll(使用嵌入式 SQLite,无需任何外部 dll) - 您甚至可以不使用 SQLite,而是使用纯 Delphi 编写的简单快速的内存数据库(我已经开始了 Zeos 的分支,与数据库无关);
  • 非常优化的 HTTP/1.1 多线程服务器(但您可以通过其他协议进行通信,甚至可以在同一进程内纯粹本地通信,无需任何客户端/服务器);
  • 数据传输使用标准JSON,因此您可以在Delphi客户端、AJAX客户端中接收相同的数据;
  • 客户端/服务器是 RESTful 的,并用非常优化的 Delphi 代码编写(某些部分甚至在分析后用 asm 编写,以提高速度和减少内存使用);
  • 还可以用于定义类似 DataSnap 的 客户端-服务器 JSON RESTful 服务,如果RESTful 方法对你来说还不够;
  • 完全开源,可从 Delphi 6 到 XE 进行编译和工作(对所有版本都提供完整的 Unicode 支持,因为它基于引擎核心的 UTF-8)。

You could perhaps add our Synopse SQLite3 Framework to your list.

There is some interresting features:

  • ORM approach to manage your data (i.e. define and access your data as regular Delphi classes), on both Server and Client Side - similar to ActiveRecord in RoR ;) ;
  • Multi-tier architectured;
  • no database or dll to deploy (uses embedded SQLite, without any external dll) - you can even not use SQLite, but a simple and fast in-memory database written in pure Delphi (I've begun a fork of Zeos, to be database independent);
  • Very optimized HTTP/1.1 multi-threaded Server (but you can communicate via other protocols, or even purely locally within the same process, without any Client/Server);
  • Data transmission uses standard JSON, so you can receive the same data in either a Delphi client, either an AJAX client;
  • Client/Server is RESTful and written in very optimized Delphi code (some part were even written in asm after profiling, for speed and low memory use);
  • Can also be used to define DataSnap-like Client-Server JSON RESTful Services, if the RESTful approach is not enough for you;
  • Full Open Source, compiles and work from Delphi 6 up to XE (with full Unicode support for all versions, because it's based on UTF-8 from the engine core).
樱花落人离去 2024-10-13 09:18:05

Web Service Toolkit 是 FPC、Lazarus 和 Delphi 的 Web 服务包; “Web 服务工具包”旨在简化 FPC、Lazarus 和 Delphi 用户的 Web 服务使用和创建。最好从 svn 中查看,因为 0.5 版本实际上已经过时了。

Web Service Toolkit is a web services package for FPC, Lazarus and Delphi; “Web Service Toolkit” is meant to ease web services consumption and creation by FPC, Lazarus and Delphi users. Better check out from svn as the 0.5 release is actualy outdated.

调妓 2024-10-13 09:18:05

RESTful 服务器端方法调用托管为 ISAPI dll,或者仅使用 Indy HTTP Server 组件。这确实是一种非常简单而强大的方法,可以让您快速入门,而无需很大的学习曲线。

RESTful server side method calls hosted as an ISAPI dll or just use the Indy HTTP Server component. It's really a quite simple and powerful approach and lets you get started quickly without a big learning curve.

涙—继续流 2024-10-13 09:18:05

DelphiMVCFramework 是一个强大的 RESTful 框架,也用于网站开发
https://github.com/danieleteti/delphimvcframework

DMVCFramework 功能

  • RESTful (RMM Level 3) 兼容
  • Fancy URL,带有参数映射
  • 使用 Mustache 模板的服务器端生成页面
  • 使用 STOMP 和 Apache ActiveMQ 或 Apache Apollo(测试版)的消息扩展
  • 可在使用 Redis 或 MySQL 作为状态服务器的负载平衡环境中使用
  • 集成 RESTClient
  • 与 DelphiXE3 或更高版本一起使用
  • 集成日志系统
  • 使用起来非常简单。您可以在几分钟内提高工作效率!

这是DMVCFramework 开发人员指南
https://danieleteti.gitbooks.io/delphimvcframework/content/

如果您需要支持,可以在是拥有 600 多名用户的官方 Facebook 群组 https://www.facebook.com/groups/delphimvcframework/

我是主要开发人员,但有超过 6 个活跃贡献者。

DelphiMVCFramework is a powerful RESTful framework used also for website development
https://github.com/danieleteti/delphimvcframework

DMVCFramework features

  • RESTful (RMM Level 3) compliant
  • Fancy URL with parameter mappings
  • Server side generated pages using Mustache templates
  • Messaging extension using STOMP and Apache ActiveMQ or Apache Apollo (beta)
  • Can be used in load balanced environment using Redis or MySQL as state server
  • Integrated RESTClient
  • Works with DelphiXE3 or better
  • Integrated Logging System
  • It is really simple to use. You can be productive in minutes!

Here's the DMVCFramework Developers Guide
https://danieleteti.gitbooks.io/delphimvcframework/content/

If you need support, there is the official facebook group with more than 600 users https://www.facebook.com/groups/delphimvcframework/

I'm the main developer but there are more than 6 active contributors.

我不吻晚风 2024-10-13 09:18:05

WebHub 是另一个成熟但鲜为人知的第三方 Delphi Web 框架。

WebHub is another well established, though lesser known third party Delphi web framework.

删除会话 2024-10-13 09:18:05

下面是可用于构建 Web 服务服务器的其他选择,有点类似于 datasnap 或 remobjects/dataabstract。几年前我用 kbmMW 做了一些工作,它是一个可靠的库。我认为 kbmMW 和 RealThinCLient 都有免费和/或开源版本:

RealThinClient

kbmMW

Couple other choices that can be used to build a webservices server, somewhat simlar to datasnap or remobjects/dataabstract, are below. I did some work years ago with kbmMW and it's a solid library. I think both kbmMW and RealThinCLient have free and/or open source versions:

RealThinClient

kbmMW

冷了相思 2024-10-13 09:18:05

我们有一个用 Delphi Prism/ASP.NET 编写的 Delphi 服务器应用程序的 Web 前端。它运行良好,使我们能够在 .NET 环境中利用我们的 Delphi 语言技能。

We have a web front end for our Delphi server app written in Delphi Prism/ASP.NET. It works great and allows us to leverage our Delphi language skills in a .NET environment.

埖埖迣鎅 2024-10-13 09:18:05

这个很老了,但是很多事情都发生了变化,我自己已经离开了Intraweb,去了UNIGUI,因为它基于EXTJS并生成单页应用程序。

This one is very old,but a lot of things have changed,I myself had left Intraweb and gone to UNIGUI,since its based on EXTJS and produces single page applications.

蘑菇王子 2024-10-13 09:18:05

自从我在这个帖子上留下最后一条消息以来已经过去两年了,
虽然uniGUI仍然是唯一已经在Delphi中创建SPA的解决方案,但看来IW17将是真正的前沿,Delphi历史上的分水岭。客户端渲染无需服务器通信,Wordpress集成,无需编写像其他框架、Websockets、Fibers、我们的“Delphi React”一样,JavaScript 中的一行。

Well Its been two years since I left my last message on this posts,
although uniGUI is still the only solution already made for creating SPA in Delphi,it seems that IW17 will be a real cutting edge,an waters divisor in the history of Delphi.Client side rendering without needing server communication,Wordpress integration,no need to write a single line in javascript like other frameworks,websockets,fibers,our "Delphi React".

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文