Hello,
as a question. I am integrating a couple of different feeds into one infrastrcture and a little at a loss regarding dealing with different data. With a strong programming background I went all "structs & objects" and now I have problems handling updates properly because different feeds deliver different data, possibly at different times (i.e. feed a delivers instrument infromation in 1 callback, feed b in 2).
The main issue is that it makes a lot of objects more complex because I need to merge them and track which fields have values contrary to "default values" which I ignore for an update.
I consider moving the downstream part of the infrastructure (i.e. the one for incoming / outgoing data) into a field list type of approach with a number of defined messsages that are not objects but basically contain a list of "field updates". Basically an "InstrumentUpdate" would contain the fields that determine the key (symbol, exchange, additional feed data comes from) and then have a list of fields with data. Every field has an identity field (what data) and basicalyl the data. The engine then can identify the current state (in example of the instrument) and then merge the fileds into the object. Advantage: Fields must not distinguish between "no data" and "no update" (no update = field is just missing from the list) and merging partially filled out fields.
The application would then utilize objects internally - they still may have not configured data (missing) but at that point it is a lot easier to deal with it than in the concept of an update stream.
Anyone any ideas about that? Looking for comments here
as a question. I am integrating a couple of different feeds into one infrastrcture and a little at a loss regarding dealing with different data. With a strong programming background I went all "structs & objects" and now I have problems handling updates properly because different feeds deliver different data, possibly at different times (i.e. feed a delivers instrument infromation in 1 callback, feed b in 2).
The main issue is that it makes a lot of objects more complex because I need to merge them and track which fields have values contrary to "default values" which I ignore for an update.
I consider moving the downstream part of the infrastructure (i.e. the one for incoming / outgoing data) into a field list type of approach with a number of defined messsages that are not objects but basically contain a list of "field updates". Basically an "InstrumentUpdate" would contain the fields that determine the key (symbol, exchange, additional feed data comes from) and then have a list of fields with data. Every field has an identity field (what data) and basicalyl the data. The engine then can identify the current state (in example of the instrument) and then merge the fileds into the object. Advantage: Fields must not distinguish between "no data" and "no update" (no update = field is just missing from the list) and merging partially filled out fields.
The application would then utilize objects internally - they still may have not configured data (missing) but at that point it is a lot easier to deal with it than in the concept of an update stream.
Anyone any ideas about that? Looking for comments here
