Gabe
Gabe

Reputation: 670

Best approach to an extendible statistics system

Ok so - I need to implement a statistics/data-points/data-sources system.

I basically want to pass data periodically to the 'root' and have it process and update the relevant properties for access throughout the application - as data sources for graphing, labels, status checks etc.

I was wondering if there were some real world examples of this from users that have handled something like this in the past. I googled the hell out of this and I keep getting a mixed bag of results as to what I should do and I hate just programming and 'letting the pieces fall in place'. I need a direction.

Edit for clarity: The data sources will be:

Types of subsystems (limited list, just for illustrative purposes):

As I said, a lot of these sources can be used in collaboration to update segments of data, should the need arise (which it likely will). One piece of information can be used across multiple systems, but there will be times when a fetch will be very specific for one point.

I hope that made it a little bit clearer... maybe. I would like to handle all the data processing in one area if possible. It'll be easier to work with as the flow increases over time.

I wrote down some thoughts on it as brainstormed the idea.

Is this logic sound or should I be looking at it a different way. I do need this to be extendable and scalable as the system could potentially be handling 'large' volumes.

Thoughts? Tried to be specific but remain on topic.

Upvotes: 4

Views: 93

Answers (1)

Gabe
Gabe

Reputation: 670

I ended out going with a combination of observer and strategy with a few customs events thrown in. Funny how that works. It actually works very well - lightweight, extendable and scalable on testing with 'large' (5-7gigs) of input. Desired results every time. Although assistance didn't happen I thought I would share the fact that the observer/strategy combination actually worked well.

Upvotes: 2

Related Questions