Jump to content
  • 0

Ant Media Server costs calculation considerations for 1-1 peering style architecture


Mike Shackleford
 Share

Question

Using the And Media cost calculator (https://antmedia.io/cost-calculator/) and referring to the section on "standalone" server estimates towards the bottom of the page, the table indicates that:

   A c2-standard-16 (in Google Compute Engine terms, 16 vCPU) can handle ~200 concurrent publishers. 

Our model is a 1 <-- --> 1 WebRTC peering model where for every (1) broadcast there will be (1) viewer. Think of a "Doorbell cam" or "Baby Monitor" type product design. In most cases, Ant Media will serve as a signaling server, except for those cases where we cannot create a direct peer <--> peer connection and must pass bytes through the cloud (either through Ant or through Coturn). There's no expectation for server side recording or adaptive bitrates. 

My question is, given that in ~80% of the cases (we hope) Ant will only act as a signaling server and not relay the audio/video or do any transcoding, does that alter the estimate? My expectation would be that Ant could handle higher numbers of "publisher/subscriber" pairs if the audio and video are not being sent through the cloud or transcoded, but I'm not sure. 

Is there any guidance on that, or will I have to wait until I can set up a proper load testing environment with the tooling provided? Thanks for any help. 

Screen Shot 2022-06-30 at 1.43.40 PM.png

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0
19 hours ago, Mike Shackleford said:

Using the And Media cost calculator (https://antmedia.io/cost-calculator/) and referring to the section on "standalone" server estimates towards the bottom of the page, the table indicates that:

   A c2-standard-16 (in Google Compute Engine terms, 16 vCPU) can handle ~200 concurrent publishers. 

Our model is a 1 <-- --> 1 WebRTC peering model where for every (1) broadcast there will be (1) viewer. Think of a "Doorbell cam" or "Baby Monitor" type product design. In most cases, Ant Media will serve as a signaling server, except for those cases where we cannot create a direct peer <--> peer connection and must pass bytes through the cloud (either through Ant or through Coturn). There's no expectation for server side recording or adaptive bitrates. 

My question is, given that in ~80% of the cases (we hope) Ant will only act as a signaling server and not relay the audio/video or do any transcoding, does that alter the estimate? My expectation would be that Ant could handle higher numbers of "publisher/subscriber" pairs if the audio and video are not being sent through the cloud or transcoded, but I'm not sure. 

Is there any guidance on that, or will I have to wait until I can set up a proper load testing environment with the tooling provided? Thanks for any help. 

Screen Shot 2022-06-30 at 1.43.40 PM.png

Hi Mike,

How are you?

Thank you for explaining your use case in detail.

Yes you are right since in your use case it's just being used a signalling server and not for transmitting the audio and video data it can support a large number of streams maybe in thousands.

 

Reagrds,

Mohit Dubey 

Link to comment
Share on other sites

  • 0
On 7/1/2022 at 2:24 AM, Mike Shackleford said:

Using the And Media cost calculator (https://antmedia.io/cost-calculator/) and referring to the section on "standalone" server estimates towards the bottom of the page, the table indicates that:

   A c2-standard-16 (in Google Compute Engine terms, 16 vCPU) can handle ~200 concurrent publishers. 

Our model is a 1 <-- --> 1 WebRTC peering model where for every (1) broadcast there will be (1) viewer. Think of a "Doorbell cam" or "Baby Monitor" type product design. In most cases, Ant Media will serve as a signaling server, except for those cases where we cannot create a direct peer <--> peer connection and must pass bytes through the cloud (either through Ant or through Coturn). There's no expectation for server side recording or adaptive bitrates. 

My question is, given that in ~80% of the cases (we hope) Ant will only act as a signaling server and not relay the audio/video or do any transcoding, does that alter the estimate? My expectation would be that Ant could handle higher numbers of "publisher/subscriber" pairs if the audio and video are not being sent through the cloud or transcoded, but I'm not sure. 

Is there any guidance on that, or will I have to wait until I can set up a proper load testing environment with the tooling provided? Thanks for any help. 

Screen Shot 2022-06-30 at 1.43.40 PM.png

 

Link to comment
Share on other sites

  • 0

You can also consider using something like nodejs along side rest of the system when it comes to just signalling using websockets or so. For anything other than one to one use AMS.that will be a more efficient structure.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...