Limit Http Requests

Limit Http Requests

melanie.ernst
Participant Participant
658 Views
4 Replies
Message 1 of 5

Limit Http Requests

melanie.ernst
Participant
Participant

Hi all,

 

I've read a couple of months ago that there is a limit regarding the http requests. Which means the user is only allowed to send e.g. 500 requests a day.

Is this true? Is there really a limit?

0 Likes
Accepted solutions (1)
659 Views
4 Replies
Replies (4)
Message 2 of 5

jeremy_tammik
Alumni
Alumni

It would help a lot if you mentioned what you are talking about. Your question does not make much sense in the context of the desktop Revit API, which is the one and only topic of this discussion forum. Maybe you are referring to the Autodesk Platform Services, formerly known as Forge. In that case, please direct your question to the official APS help channels:

  

https://forge.autodesk.com/en/support/get-help

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 3 of 5

melanie.ernst
Participant
Participant

Hey, sorry for the short question! 😅

 

So basically what I am trying to do, is to create a plugin in Revit that gets some information from a server via http request. E.g. the user needs to log in via the plugin and types in username/password. this will be sent to the server for authentication via http.

 

So my question: how many http request can a user send? is there any limitation?

0 Likes
Message 4 of 5

jeremy_tammik
Alumni
Alumni

I am not aware of any such limit, and I doubt that Revit or its API impose any such thing either.

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 5 of 5

Kennan.Chen
Advocate
Advocate
Accepted solution

I think it depends on your physical environment.

.NET sends http requests by ThreadPool which has a max thread count. You can check this capacity by using ThreadPool.GetAvailableThreads(Int32, Int32) Method or ThreadPool.GetMaxThreads(Int32, Int32) Method .

ThreadPool has a queue internally which means your can spawn as many requests as you can within the limitation of the OS and hardware and the ThreadPool will consume them when there are available threads anytime.

Detailed material about ThreadPool 

0 Likes