简体   繁体   English

Web应用程序中仪表板的体系结构(基于Java)

[英]Architecture for Dashboard in Web Application (Java based)

I have the requirement for building an Activity Dashboard for users when they log into the web application. 我要求在用户登录Web应用程序时为其构建活动仪表板。 The Dashboard will show various “portlets” of business transactions which have taken place since they last logged in, etc. 仪表板将显示自上次登录以来发生的各种业务交易“ Portlet”等。

I was wondering what the ideal architecture for such a system should be? 我想知道这种系统的理想架构应该是什么? If the dashboard is to have 7-10 different portlets of data, should each portlet do a DB call on the specific individual table to get the latest transactions? 如果仪表板要具有7-10个不同的数据Portlet,则每个Portlet是否应在特定的单个表上执行DB调用以获取最新的事务? Or should there be a common activity table where when a business transaction executes it dumps data (who, what, where) into this common table (synchronous or via a messaging queue) and then this is the only table which is then queried by the dashboard? 还是应该有一个公共活动表,在该表中执行业务交易时,它将数据(谁,什么,在哪里)转储到该公共表中(同步或通过消息队列),然后这是仪表板唯一查询的表?

Which solution would be better for high performance and scalability? 哪种解决方案对高性能和可伸缩性更好?

Thanks in advance for your input. 预先感谢您的输入。

SP SP

答案取决于应用程序生成的事件等的数量。但是我会针对不同的Portlet使用不同的活动表,并具有适当的索引。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM