Is there any way to count concurrent WATCHING (streaming) users by MediaPackage, MediaLive or CloudFront? Yes, Lambda@Edge+Cloudfront would be a solution for a self created measurement tool ... but is there no way to count concurrent users?
The dimensions you mention measure different things.
An end user on your stream (ie: someone who is playing back a URL that ends at CloudFront) can only be measured from CloudFront data. CloudFront is the only place where you would be able to get data around how many people are WATCHING your stream.
Only some of the hits you get on CloudFront will pass through to MediaPackage. Others will be served content from CloudFront cache and therefor will not register with MediaPackage. MediaPackage exposes the hits it receives to CloudWatch. You can read more about which metrics are published here: https://docs.aws.amazon.com/mediapackage/latest/ug/metrics.html. The metric you are looking for is called "EgressRequestCount". Note that those are only the requests that aren't being served by CloudFront directly.
MediaLive has no concept of "players connected to your stream". Since MediaLive only encodes and "pushes" content out.
I hope this helps. Please let us know if you have any further questions!
thanks for your helpful answer. So you are suggesting tracking infos directly in CloudFront and do that over the logs (not really real-time) or the Lambda@Edge functions (real-time), correct?
Thanks so much, Andreas
Yes, you should either parse the logs that cloudfront can provide you. Like you said, this would not be real-time. The alternative is to run a lambda@edge every time a request comes by to log whichever details you are most interested in.
I hope this helps! Please reach out if there are any followup questions you might have!
Thanks for helping out!
CloudFront Live Streaming - Active ViewersAccepted Answerasked 2 years ago
Max concurrent percentage=100 does not translate to Maximum concurrent accounts=100asked 20 days ago
Vod MediaPackage with cloudfrontasked 6 months ago
Number of concurrent AWS console usersAccepted Answerasked 4 months ago
Customer with Multiple Users Needs Concurrent Access to Application and DatabaseAccepted Answerasked 2 years ago
Count concurrent usersasked 4 years ago
Is there a way to pull a list of users who have access to each folder and file under a parent folder?asked 3 months ago
Streaming multiple independent streams through a single channel?asked 3 months ago
Lambda limits for concurrent executionsasked 2 years ago
IVS or Live Streaming?asked 2 years ago