Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the hot switch of big data report?

2025-01-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

Big data report hot switch is what, in view of this problem, this article introduces in detail the corresponding analysis and answers, hoping to help more partners who want to solve this problem to find a more simple and easy way.

Hot switching (Hot Swap) refers to the replacement of system parts without downtime, while in the reporting business, it refers to the maintenance (add, modify, delete) of the report without restarting the report and related applications, while cold switching is just the opposite.

The report business is very unstable, and more query and statistical requirements will be stimulated in the process of business development. If you have to wait for the system to be idle (often during non-working hours) before the modified report can take effect, it will have a great impact on business use (delay). Therefore, in the reporting business where requirements often change, hot exchange is particularly important.

In fact, it is not difficult to achieve hot switching in the report business, as long as you choose the appropriate technical means when developing the report and avoid using compiled languages such as JAVA (although rewriting class loaders can achieve thermal loading in disguise, it is too cumbersome and does not fundamentally solve the problem).

However, in the practical application, we see a large number of JAVA to develop reports, resulting in the situation that there is no hot switch. Why is this?

The report business has two characteristics, one is that the report business is very complex. Report is a task responsible for comprehensive statistics, it takes a long way to process the original data into the report form needed by the business, not only the data processing logic is tedious, the report presentation style is also strange, the so-called Chinese-style complex report.

Another feature is embedded use. Reports are often embedded in the system as part of the application system (module).

Now the problem of report presentation format has been basically solved. A batch of domestic software dominated by domestic mature report tools can well solve the problem of Chinese-style complex report presentation, and most of these tools use interpretation and execution mechanism. the modified report template can take effect in real time.

However, the problem of data preparation phase has not been solved, complex data processing and business logic control so that developers can not use hard-coding means to achieve. As most of the application systems are developed with JAVA, since the report is a part of the system and the business logic is so complex, the first choice for hard coding is JAVA. This is the reason why the heavy use of JAVA in reports leads to a lack of hot switching.

So how to solve this problem?

The data preparation of the report is also instrumented!

In the early days, when report development relied entirely on hard coding, people generally used JAVA to "draw" reports, which is bound to be unable to hot switch, and later report tools appeared to solve the problem of hot switching of presentation templates. Therefore, in order to completely realize the hot switching of reports, it is a feasible direction to instrumentalize the data preparation.

However, the use of different tools in the two stages of report data preparation and report presentation will cause problems in report development and maintenance. therefore, the best way is to enhance the computing power of the report tool itself. integrate the two stages into the report template that can be interpreted and executed, so as to completely realize the hot switching of the report.

We know that the report tool itself has certain computing power, and we can write expressions such as grouping, summation, ratio and so on in the cells that present the template, but it is difficult to deal with complex data logic because of the limitation of the grid, which is why we need JAVA/SQL to prepare the data in the report.

A feasible way is to add an interpretable calculation script (module) to the report tool for data preparation, so that any complex data processing logic can be realized in the calculation module. At the same time, the script for interpretation and execution is built into the report template to achieve hot switching.

The report calculation module (script) should have the following capabilities:

1. Interpretive execution

This is the basic ability to achieve hot switching. Data preparation and report presentation are built into a report template and run with an interpretive execution mechanism.

two。 The calculation system is perfect

Can achieve all the data processing tasks, the original report data preparation calculation in JAVA should be completed in the script, with rich collection operation class library

3. Easy to develop and maintain

The implementation should be simple enough so that report developers can directly handle data preparation and report rendering without relying on other professional programmers; and it is easier to maintain in a report template.

The answer to the question about big data report hot switch is shared here. I hope the above content can be of some help to everyone. If you still have a lot of doubts to be solved, you can follow the industry information channel to learn more about it.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report