Java宏还是数据库存储过程宏?

时间:2020-04-16 08:45:31

标签: java .net architecture macros migration

我正在研究一种解决方案,我们需要使基于宏的匹配系统自动化。

我看到了两种解决方案

Solution 1

1) Read source files, many different formats (java / .net)

2) Convert it to standard format (java/.net)

3) Store the result in to database table (Java /Net)

**4) Read the table and execute the SPs which will have migrated Macros logic (Oracle / MySql etc)**

5) Store the results in result table from where UI would fetch and display results

Solution 2

1) Read source files, many different formats (java / .net)

2) Convert it to standard format  (java/.net) 

3) Store the result in to database table (Java /Net) 

**4) Read the table in another Java / .net based service and execute the (Macros to Java) migrated logic**

5) Store the results in result table from where UI would fetch and display results

两种解决方案在步骤4中不同

在解决方案1中,我们建议将宏逻辑迁移到数据库存储过程中

在解决方案2中,我们建议将宏逻辑迁移到另一个(Java / .net)模块/ Service。

我认为解决方案2最终将导致性能低下,因为Java和数据库之间的数据流过多会增加总的时间,而延迟和吞吐量会减少。

解决方案1最适合,因为大多数宏逻辑,登台逻辑和结果逻辑位于同一数据库中,因此具有良好的性能优势。

对于以上两个解决方案的以上两个解决方案的任何建议,将不胜感激。

谢谢

0 个答案:

没有答案
相关问题