Message Validation
Validation ensures that the received message contains all the required information and that the information is properly formatted (when applicable). The validation can finish with success, warning, or failure.
'Success' means that all the data associated with the feed message is present and as expected (from the point what sdk could check)
'Warning' means that some data is malformed but the message can still be safely processed (missing/additional specifiers) and produces a warning in the SDK logs. when a warning is logged, it is just to inform the user of discrepancies like market specifier mismatch between what is received in the feed message and what is expected based on the market description. In this case, the message is still fully processed and dispatched to the user code.
'Failure' indicates that the message data is corrupted to the point that it cannot be safely processed. In such cases, the "unparsable message received" session event/callback is called.
Examples of Validation Logs
15:04:55,184 [WARN ] [uf-sdk-22020-22] [uf-sdk-22020-22-amqp-t-2] [c.s.u.s.i.r.OddsFeedSessionImpl] - Problems were detected while validating message odds_change, but the message is still eligible for further processing. ProducerId:5, EventId:'sr:match:40932447'
Last updated
Was this helpful?