ThrottlingTroll.CounterStores.AzureTable
7.1.0
See the version list below for details.
dotnet add package ThrottlingTroll.CounterStores.AzureTable --version 7.1.0
NuGet\Install-Package ThrottlingTroll.CounterStores.AzureTable -Version 7.1.0
<PackageReference Include="ThrottlingTroll.CounterStores.AzureTable" Version="7.1.0" />
paket add ThrottlingTroll.CounterStores.AzureTable --version 7.1.0
#r "nuget: ThrottlingTroll.CounterStores.AzureTable, 7.1.0"
// Install ThrottlingTroll.CounterStores.AzureTable as a Cake Addin #addin nuget:?package=ThrottlingTroll.CounterStores.AzureTable&version=7.1.0 // Install ThrottlingTroll.CounterStores.AzureTable as a Cake Tool #tool nuget:?package=ThrottlingTroll.CounterStores.AzureTable&version=7.1.0
ThrottlingTroll.CounterStores.AzureTable
ICounterStore implementation that uses Azure Tables (or Cosmos DB with Table API).
Easiest to configure (only takes a Storage connection string), but not recommended for production workloads, because contention around the table might get very high (remember that Azure Storage Tables only support optimistic concurrency and no atomic operations).
How to use
Install package from NuGet:
dotnet add package ThrottlingTroll.CounterStores.AzureTable
EITHER put AzureTableCounterStore instance into your DI container:
builder.Services.AddSingleton<ICounterStore>( new AzureTableCounterStore("my-azure-storage-connection-string", "ThrottlingTrollCountersTable") );
OR provide an instance of it via .UseThrottlingTroll() method:
app.UseThrottlingTroll(options => { options.CounterStore = new AzureTableCounterStore("my-azure-storage-connection-string", "ThrottlingTrollCountersTable"); });
The second parameter - table name - can be anything you like. That table will be auto-created, if not exists yet.
IMPORTANT: if you use Cosmos DB, then its default consistency level should be set to either STRONG
or BOUNDED STALENESS
.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- Azure.Data.Tables (>= 12.8.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on ThrottlingTroll.CounterStores.AzureTable:
Repository | Stars |
---|---|
ThrottlingTroll/ThrottlingTroll
Rate limiting/throttling/circuit-breaking middleware for ASP.NET Core and Azure Functions. Supports Redis and many other distributed counter stores.
|
Version | Downloads | Last updated |
---|---|---|
7.3.0 | 87 | 10/14/2024 |
7.2.0 | 218 | 8/31/2024 |
7.2.0-beta1 | 80 | 8/31/2024 |
7.1.2 | 103 | 6/12/2024 |
7.1.1 | 155 | 6/3/2024 |
7.1.0 | 101 | 6/1/2024 |
7.1.0-beta1 | 69 | 6/1/2024 |
7.0.0 | 109 | 5/15/2024 |
7.0.0-beta2 | 57 | 5/10/2024 |
7.0.0-beta1 | 106 | 5/5/2024 |
6.1.2 | 191 | 4/5/2024 |
6.1.0 | 780 | 1/28/2024 |
6.0.0 | 307 | 12/4/2023 |
6.0.0-beta6 | 134 | 11/26/2023 |
6.0.0-beta5 | 104 | 11/26/2023 |
6.0.0-beta4 | 119 | 11/26/2023 |
6.0.0-beta3 | 104 | 11/26/2023 |
6.0.0-beta2 | 95 | 11/26/2023 |
6.0.0-beta1 | 110 | 11/25/2023 |
5.0.0 | 168 | 11/2/2023 |
4.0.5 | 175 | 8/27/2023 |
4.0.4 | 193 | 7/22/2023 |
1.0.0-preview2 | 132 | 7/22/2023 |
1.0.0-preview1 | 148 | 7/22/2023 |