[英]Decision making in distributed applications
With a distributed application, where you have lots of clients and one main server, should you: 对于具有许多客户端和一个主服务器的分布式应用程序,您应该:
Additional info: 附加信息:
You should do as much client-side processing as possible. 您应该尽可能多地进行客户端处理。 This will enable your application to scale better than doing processing server-side.
这将使您的应用程序比在服务器端进行处理更好地扩展。 To solve your temperamental user problem, you could look into making your client processes run at a very low priority so there's no noticeable decrease in performance on the part of the user.
为了解决您的脾气暴躁的用户问题,您可以考虑使客户端进程以非常低的优先级运行,因此用户方面的性能不会显着下降。
In a client-server setting, if you care about security, you should always program on the assumption that the client may have been compromised. 在客户端-服务器设置中,如果您关心安全性,则应始终在假定客户端可能已受到威胁的情况下进行编程。 Even if it hasn't, there is always the risk of somebody using an old version of the client, using a competing or modified version of the client, or just of the net connection being a bit screwy.
即使没有,也总是存在有人使用旧版本的客户端,使用竞争版本或修改版本的客户端,或者只是网络连接有点麻烦的风险。
So while you do as much work on the client as possible, processing and marshalling information into the right form, the server then needs to do a thorough sanity check on anything the client gives it. 因此,当您在客户端上进行尽可能多的工作,将信息处理和整理为正确的形式时,服务器随后需要对客户端提供的所有内容进行彻底的完整性检查。
So the answer I guess is "both". 所以我猜答案是“两者”。
The server must analyze all of this info to determine the health of these computers
服务器必须分析所有这些信息以确定这些计算机的运行状况
That is probably the biggest clue so far explaning what your application is kinda about. 到目前为止,这可能是解释您的应用程序的最大线索。 Are you able to provide a more elaborate briefing on what this application is seeking to achieve in this distributed environment?
您是否能够提供有关此应用程序在此分布式环境中要实现的目标的详细说明? We do not even know if the client-side processing is disk I/O or processor intensive.
我们甚至不知道客户端处理是磁盘I / O还是处理器密集型。 How you design the solution is dependent on the nature of what needs to be done to help the users/business accomplish their jobs and objectives.
解决方案的设计方式取决于需要采取何种措施来帮助用户/企业完成其工作和目标。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.