0

I am working on a creating video platform and in that, I used Twilio service. It is working fine for me but Video Room creation takes around 10-15 seconds. How to optimize video room creation?

I followed the same code format as they provided on their docs. I implemented this code in Python.

account_sid = os.environ['TWILIO_ACCOUNT_SID']
auth_token = os.environ['TWILIO_AUTH_TOKEN']
client = Client(account_sid, auth_token)

room = client.video.rooms.create(unique_name='DailyStandup')
philnash
  • 70,667
  • 10
  • 60
  • 88
Suhel
  • 1
  • 3
  • It should not take that long to create a room with the API. Is there anything else you are doing at the same time? – philnash Apr 21 '22 at 02:00
  • For me, creating a twilio room takes about less than 500ms, so you probably are doing something else or the issue is related to another thing. Also, check if you are using the default region (you can explicitly define a preferred region). – Luciano Apr 21 '22 at 02:07

0 Answers0