I have a conceptual problem that I want feedback on. First and foremost, the layout of my system. It contains a server, with many clients connected to it.The clients get fed data from the server at variable intervals. At the moment, this data contains: Faults, Warnings and Locations. Faults, Warnings and Locations all contain a variable for Terminal. The terminal being a PC which may have a fault or warning attached to it.Now. The admin console wishes to see how many terminals are on the system (essentially in the database) in total. Not a problem! I'm already sending information about all terminals in Locations. This number is 2 for-loops and a count away (about 7 LOC).However, here is my conundrum. Is it better to make the server do, essentially return Terminals COUNT and send it as part of the payload with Warnings, Errors and Locations, than have the client iterate through some arrays to get the information?I've been thinking for a while, and while I'm of the impression the server should carry the work, it is some data being sent that is technically unnecessary.Is this correct?
Send more data, or do client processing?
data;server;networking;client;system architecture