# Using Throttling

**URL:** <https://discuss.hangfire.io/t/using-throttling/6851>\
**Category:** question\
**Created:** [November 22, 2019, 9:22pm UTC](https://discuss.hangfire.io/t/using-throttling/6851 "2019-11-22T21:22:32Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![webm0nk3y](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/webm0nk3y/32/615_2.png) [@webm0nk3y](https://discuss.hangfire.io/u/webm0nk3y)\
**Post date:** [November 22, 2019, 9:22pm UTC](https://discuss.hangfire.io/t/using-throttling/6851/1 "2019-11-22T21:22:32Z")

</div>

So I must be missing something because all of your documentation is pretty awesome. However, I am confused about how to use throttling. I want to limit a specific method so that only a limited number are ever queued within a window. However…

The examples that show throttling include an example like the one below, but do not answer where this code should be put. Should it be tied to where I configure hangfire? How does hangfire know this manager exists? What manages the lifetime of the Throttling Manager.

Is there a more code-complete example instead of just snippets of code.

IThrottlingManager manager = new ThrottlingManager();  
manager.AddOrUpdateFixedWindow(“github”, new FixedWindowOptions(5000, TimeSpan.FromHours(1)));

---

_[View the full topic](https://discuss.hangfire.io/t/using-throttling/6851)._
