cta-wave / common-media-client-data

A repository to collect discussion and feedback on the Common Media Client Data proposal.
29 stars 0 forks source link

Add control mechanisms for third-party endpoints in CMCD response and state-interval modes to handle overload and cost efficiency #149

Open nicolaslevy opened 1 day ago

nicolaslevy commented 1 day ago

The CDN is prepared to scale with an increasing number of requests per second. If it receives CMCD via the request mode, it can decide whether to store the information or discard it.

On the other hand, the new modes (Response Mode and State-Interval Mode) are designed so that third parties can receive the information and decide what to do with it—whether to process it, store it, or discard it.

To give a control mechanism to these third-party endpoints in case of overload and to enable sub-sampling if needed to control costs, it is proposed to define a response that includes at least the following information:

Example of a response for State-Interval Mode:

Response Code: 200 OK
Body:
{
    "sendOnStateChange": true,
    "setIntervalTime": 120
}

Also, an Ad tracking system that uses CMCD, could ask the player increase the "CMCD resolution" when an interstitial is detected ('int' key)

We could also explore using CMSD for this...

nicolaslevy commented 1 day ago

Also, an Ad tracking system that uses CMCD, could ask the player increase the "CMCD resolution" when an interstitial is detected ('int' key). See https://github.com/cta-wave/common-media-client-data/issues/142