Forum Discussion

nitinrahim's avatar
nitinrahim
Brass Contributor
Dec 11, 2023

Controlling an Application’s Throughput Consumption in Cosmos DB with ThroughputControlGroup

Hi Azure Cosmos Db Team,

 

Was referring to the below document link to limit the throughput consumption per requests.

 

https://the9090rule.medium.com/controlling-an-applications-throughput-consumption-in-cosmos-db-with-throughputcontrolgroup-247cc0eafa92

 

How will the application behave in case the operations in the group exceed the set throughput? Will it get throttled?

 

With Regards,

Nitin Rahim

9 Replies

  • nitinrahim's avatar
    nitinrahim
    Brass Contributor
    HI Team,

    Just following up on the same regarding throughputcontrolgroup behavior?

    With Regards,
    Nitin Rahim
    • mannu2050's avatar
      mannu2050
      Icon for Microsoft rankMicrosoft

      nitinrahim Yes, the throughput control group feature does the throttling on the client side when the target throughput or target throughput threshold is exceeded.

       

      Hope this helps!

      • nitinrahim's avatar
        nitinrahim
        Brass Contributor
        Hi Manish,
        Thanks for your response.
        What would be default client side throttling behavior if we are using JAVA SDK? What will be the error returned before hitting the cosmos db in case of client side throttling ? Will it return a status code 429 after a cumulative wait time of 30 seconds? Will it retry 9 times(default sdk times)? And other transactions which are not in the througputcontrolgroup will be unaffected during this client side throttling right if that not exceeds the RU's allocated?

        Thanks in advance.

        With Regards,
        Nitin Rahim
    • JillArmourMicrosoft's avatar
      JillArmourMicrosoft
      Icon for Community Manager rankCommunity Manager

      nitinrahim I hope someone can chime in for you as I don't know anything about this. 

       

      I can tag a few of our superstar community members, but I'm not sure if they know about what you are asking, worth a shot though! 

       

      sansbacherGreg_Lindner or MANISH_SHARMA would you know anything about this? Thank you in advance. 🙂

Resources