{"id":22538388,"url":"https://github.com/shuttle/shuttle.esb.throttle","last_synced_at":"2026-02-14T11:07:06.479Z","repository":{"id":235468646,"uuid":"754709398","full_name":"Shuttle/Shuttle.Esb.Throttle","owner":"Shuttle","description":"The Throttle extension aborts pipeline processing when the CPU usage exceeds given percentage.","archived":false,"fork":false,"pushed_at":"2025-03-02T14:12:32.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T22:14:18.207Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Shuttle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-08T16:11:16.000Z","updated_at":"2025-03-02T14:12:35.000Z","dependencies_parsed_at":"2024-04-23T13:55:37.193Z","dependency_job_id":"cb6ab8b2-781c-4335-8744-e879d85054c7","html_url":"https://github.com/Shuttle/Shuttle.Esb.Throttle","commit_stats":null,"previous_names":["shuttle/shuttle.esb.throttle"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shuttle%2FShuttle.Esb.Throttle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shuttle%2FShuttle.Esb.Throttle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shuttle%2FShuttle.Esb.Throttle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shuttle%2FShuttle.Esb.Throttle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Shuttle","download_url":"https://codeload.github.com/Shuttle/Shuttle.Esb.Throttle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248104782,"owners_count":21048403,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-07T11:11:51.032Z","updated_at":"2026-02-14T11:07:01.451Z","avatar_url":"https://github.com/Shuttle.png","language":"C#","readme":"# Throttle\n\n```\nPM\u003e Install-Package Shuttle.Esb.Throttle\n```\n\nThe Throttle module for Shuttle.Esb aborts pipeline processing when the CPU usage exceeds given percentage.\n\nThe module will attach the `ThrottleObserver` to the `OnPipelineStarting` event of the `InboxMessagePipeline` and abort the pipeline if the CPU usage exceeds the given percentage.\n\n## Configuration\n\n```c#\nservices.AddThrottle(builder =\u003e \n{\n\tbuilder.Options.CpuUsagePercentage = 65;\n\tbuilder.Options.AbortCycleCount = 5;\n\tbuilder.Options.DurationToSleepOnAbort = new List\u003cTimeSpan\u003e { TimeSpan.FromSeconds(1) };\n})\n```\n\n## Options\n\n| Option | Default \t| Description\t| \n| --- | --- | --- | \n| `CpuUsagePercentage` | 65 | The CPU usage percentage threshold to start throttling. |\n| `AbortCycleCount` | 5 | The number of times a pipeline will be aborted before running at least once. |\n| `DurationToSleepOnAbort`\t| \"00:00:01\" | The duration(s) to sleep when aborting a pipeline.  Can be incremented for each abort. |\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshuttle%2Fshuttle.esb.throttle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshuttle%2Fshuttle.esb.throttle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshuttle%2Fshuttle.esb.throttle/lists"}