Strategies for sharing common business logic in different programming languages

Having a monolithic business application with complex business logic implemented in Visual Dataflex, we are faced with the task of supporting our business logic in all programming languages, since some functions are written in other programming languages ​​(mainly .NET).

So, I'm looking for strategies to β€œsynchronize” business logic in different implementations of a programming language to avoid inconsistencies. Duplication prevention is a plus, but this can be offset by automated testing.

EDIT: SOA is a great offer. But what about when the service is not fast enough?

EDIT 2: Any suggestions on using metalanguage ?

+3
source share
1 answer

It looks like you're looking for a service oriented architecture (SOA). Using SOA, you can define your business logic as Services that can be called from any program in any language. When the business logic changes, change your Service, and the behavior changes in everything that uses it. SOA also minimizes code duplication, as logic appears in only one place (service).

+3
source

Source: https://habr.com/ru/post/1707682/


All Articles