跨不同编程语言共享通用业务逻辑的策略

发布于 2024-07-19 08:13:51 字数 329 浏览 4 评论 0原文

在 Visual Dataflex 中实现具有复杂业务逻辑的整体业务应用程序后,我们面临着跨编程语言维护业务逻辑的挑战,因为某些功能是用其他编程语言(主要是 .NET)编写的。

因此,我正在寻找跨不同编程语言实现“同步”业务逻辑的策略,以避免不匹配。 避免重复是一个优点,但这可以通过自动化测试来弥补。

编辑:SOA 是一个很好的建议。 但是在服务速度不够快的情况下怎么办?

编辑2:对于使用元语言有什么建议吗?

Having a monolithic business application with complex business logic implemented in Visual Dataflex, we are facing the challenge of maintaining our business logic across programming languages as certain features are written in other programming languages (mainly .NET).

So I am looking for strategies to "synchronize" business logic across different programming language implementations, in order to avoid mismatches. Avoiding duplication is a plus, but this may be compensated by automated testing.

EDIT: SOA is a great suggestion. But what about those cases where a service will not be fast enough?

EDIT 2: Any suggestions for using a metalanguage?

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

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

发布评论

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

评论(1

冰火雁神 2024-07-26 08:13:51

看起来您正在寻找面向服务的架构 (SOA)。 通过 SOA,您可以可以将您的业务逻辑定义为服务,可以从任何程序以任何语言调用。 当业务逻辑发生变化时,更改您的服务,使用它的所有内容的行为都会发生变化。 SOA 还可以最大程度地减少代码重复,因为逻辑仅出现在一个位置(服务)。

Looks like you're looking for Service Oriented Architecture (SOA). With SOA, you can define your business logic as Services, which can be called from any program, in any language. When the business logic changes, change your Service and the behavior will change in everything that uses it. SOA also minimizes code duplication, because the logic only appears in one place (the service).

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