Foundatio 13.0.0-beta4

FoundatioFoundatio

Build status NuGet Version feedz.io Discord

Pluggable foundation blocks for building loosely coupled distributed apps.

โœจ Why Choose Foundatio?

  • ๐Ÿ”Œ Pluggable implementations - Swap Redis, Azure, AWS, or in-memory with no code changes
  • ๐Ÿงช Developer friendly - In-memory implementations for fast local development and testing
  • ๐Ÿ’‰ DI native - Built for Microsoft.Extensions.DependencyInjection
  • ๐ŸŽฏ Interface-first - Code against abstractions, not implementations
  • โšก Production ready - Battle-tested in high-scale applications
  • ๐Ÿ”„ Consistent APIs - Same patterns across caching, queues, storage, and more

๐Ÿงฑ Core Building Blocks

Feature Description
Caching In-memory, Redis, and hybrid caching with automatic invalidation
Queues Reliable message queuing with Redis, Azure, AWS SQS
Locks Distributed locking and throttling
Messaging Pub/sub with Redis, RabbitMQ, Kafka, Azure Service Bus
Jobs Background job processing with queue integration
File Storage Unified file API for disk, S3, Azure Blob, and more
Resilience Retry policies, circuit breakers, and timeouts

๐Ÿš€ Quick Start

dotnet add package Foundatio
// Caching
ICacheClient cache = new InMemoryCacheClient();
await cache.SetAsync("user:123", user, TimeSpan.FromMinutes(5));
var cached = await cache.GetAsync<User>("user:123");

// Queuing
IQueue<WorkItem> queue = new InMemoryQueue<WorkItem>();
await queue.EnqueueAsync(new WorkItem { Data = "Hello" });
var entry = await queue.DequeueAsync();

// File Storage
IFileStorage storage = new InMemoryFileStorage();
await storage.SaveFileAsync("docs/readme.txt", "Hello World");

// Distributed Locks
ILockProvider locker = new CacheLockProvider(cache, messageBus);
await using var handle = await locker.AcquireAsync("resource-key");

๐Ÿ“ฆ Provider Implementations

Provider Caching Queues Messaging Storage Locks
In-Memory โœ… โœ… โœ… โœ… โœ…
Redis โœ… โœ… โœ… โœ… โœ…
Azure Storage โœ… โœ…
Azure Service Bus โœ… โœ…
AWS (S3/SQS/SNS) โœ… โœ… โœ…
RabbitMQ โœ…
Kafka โœ…
Minio โœ…
Aliyun โœ…
SFTP โœ…

๐Ÿ“š Learn More

๐Ÿ‘‰ Complete Documentation

Core Features

  • Getting Started - Installation and setup
  • Caching - In-memory, Redis, and hybrid caching with invalidation
  • Queues - FIFO message delivery with lock renewal and retry policies
  • Locks - Distributed locking with null handling patterns
  • Messaging - Pub/sub with size limits and notification patterns
  • File Storage - Unified file API across providers
  • Jobs - Background job processing and hosted service integration

Advanced Topics

๐Ÿ“ฆ CI Packages (Feedz)

Want the latest CI build before it hits NuGet? Add the Feedz source and install the pre-release version:

dotnet nuget add source https://f.feedz.io/foundatio/foundatio/nuget -n foundatio-feedz
dotnet add package Foundatio --prerelease

Or add to your NuGet.config:

<configuration>
  <packageSources>
    <add key="foundatio-feedz" value="https://f.feedz.io/foundatio/foundatio/nuget" />
  </packageSources>
  <packageSourceMapping>
    <packageSource key="foundatio-feedz">
      <package pattern="Foundatio.*" />
    </packageSource>
  </packageSourceMapping>
</configuration>

๐Ÿค Contributing

Contributions are welcome! Please feel free to submit a Pull Request. See our documentation for development guidelines.

Development Setup:

  1. Clone the repository
  2. Open Foundatio.slnx in Visual Studio or VS Code
  3. Run dotnet build to build
  4. Run dotnet test to run tests
  • Foundatio.Mediator - Blazingly fast, convention-based C# mediator powered by source generators

๐Ÿ“„ License

Apache 2.0 License

Thanks to all the people who have contributed

contributors

Showing the top 20 packages that depend on Foundatio.

Packages Downloads
Foundatio.Kafka
Pluggable foundation blocks for building distributed apps.
3
Foundatio.Kafka
Pluggable foundation blocks for building distributed apps.
4
Foundatio.Kafka
Pluggable foundation blocks for building distributed apps.
5
Foundatio.Kafka
Pluggable foundation blocks for building distributed apps.
8
Foundatio.Kafka
Pluggable foundation blocks for building distributed apps.
10
Foundatio.Kafka
Pluggable foundation blocks for building distributed apps.
16
Foundatio.Kafka
Pluggable foundation blocks for building distributed apps.
18
Foundatio.Kafka
Pluggable foundation blocks for building distributed apps.
20
Foundatio.Kafka
Pluggable foundation blocks for building distributed apps.
23
Foundatio.Kafka
Pluggable foundation blocks for building distributed apps.
24
Foundatio.Kafka
Pluggable foundation blocks for building distributed apps.
25
Foundatio.Kafka
Pluggable foundation blocks for building distributed apps.
26

https://github.com/FoundatioFx/Foundatio/releases

Version Downloads Last updated
13.0.2 8 06/26/2026
13.0.1 9 05/16/2026
13.0.0 13 04/26/2026
13.0.0-beta6 9 04/22/2026
13.0.0-beta5 10 04/16/2026
13.0.0-beta4 11 04/15/2026
13.0.0-beta3 9 02/16/2026
13.0.0-beta2 14 02/17/2026
13.0.0-beta1 16 01/17/2026
12.0.0 20 08/26/2025
11.1.0 22 05/17/2025
11.0.8 25 03/01/2025
11.0.7 27 03/01/2025
11.0.6 28 01/19/2025
11.0.5 25 01/19/2025
11.0.4 26 01/19/2025
11.0.3 25 01/19/2025
11.0.2 26 01/18/2025
11.0.1 23 01/18/2025
11.0.0 25 01/19/2025
10.7.1 25 01/19/2025
10.7.0 29 03/12/2024
10.6.1 29 03/01/2024
10.6.0 26 08/18/2023
10.5.0 24 03/01/2024
10.4.0 29 03/16/2024
10.3.1 27 03/12/2024
10.3.0 26 03/12/2024
10.2.5 25 03/12/2024
10.2.4 25 03/01/2024
10.2.3 32 03/12/2024
10.2.2 27 01/04/2024
10.2.1 32 02/08/2024
10.2.0 29 03/02/2024
10.1.4 25 03/01/2024
10.1.3 31 03/13/2024
10.1.2 28 12/13/2023
10.1.1 24 03/01/2024
10.1.0 28 03/12/2024
10.0.2 29 03/13/2024
10.0.1 31 03/13/2024
10.0.0 25 03/13/2024
10.0.0-beta9 26 03/16/2024
10.0.0-beta8 28 03/16/2024
10.0.0-beta7 30 03/17/2024
10.0.0-beta6 25 03/17/2024
10.0.0-beta5 29 03/17/2024
10.0.0-beta3 30 03/03/2024
10.0.0-beta2 25 03/16/2024
10.0.0-beta10 24 03/17/2024
10.0.0-beta1 30 02/27/2024
10.0.0-alpha3 29 03/22/2024
10.0.0-alpha2 25 03/17/2024
10.0.0-alpha1 27 03/17/2024
9.1.1 30 03/13/2024
9.1.0 26 01/26/2024
9.0.0 24 03/13/2024
8.1.2126 32 03/02/2024
8.1.2058 23 03/15/2024
8.1.2027 22 03/16/2024
8.0.1965 28 03/18/2024
8.0.1948 21 03/17/2024
7.1.1845 31 03/03/2024
7.1.1841 23 03/02/2024
7.1.1837 31 03/03/2024
7.1.1833 25 03/03/2024
7.0.1831 21 03/13/2024
7.0.1818 26 03/13/2024
7.0.1738 24 03/13/2024
7.0.1706 23 03/14/2024
6.0.1586 19 01/19/2025
5.1.1562 22 03/02/2024
5.1.1521 28 03/16/2024
5.1.1515 28 03/16/2024
5.1.1501 25 03/16/2024
5.1.1498 23 03/16/2024
5.1.1492 29 03/16/2024
5.1.1490 30 03/16/2024
5.1.1474 23 03/16/2024
5.1.1470 26 03/16/2024
5.1.1457 26 03/16/2024
5.1.1448 27 03/17/2024
5.1.1443 23 03/17/2024
5.0.1336 28 03/14/2024
5.0.1334 22 03/22/2024
5.0.1331 25 03/16/2024
5.0.1329-pre 21 03/02/2024
5.0.1328-pre 21 03/02/2024
5.0.1327-pre 23 03/16/2024
5.0.1326-pre 27 03/02/2024
5.0.1324-pre 21 03/06/2024
4.3.1323-pre 24 03/03/2024
4.3.1319 26 03/17/2024
4.3.1317 30 03/17/2024
4.3.1316 27 03/16/2024
4.3.1315 30 03/17/2024
4.3.1314 26 03/02/2024
4.3.1312 30 03/17/2024
4.3.1311-pre 24 03/03/2024
4.3.1307 25 03/03/2024
4.3.1306 25 03/16/2024
4.3.1305 25 03/17/2024
4.3.1304-pre 30 03/18/2024
4.3.1303-pre 20 03/19/2024
4.3.1301 23 03/16/2024
4.3.1299 28 03/17/2024
4.3.1297 21 03/16/2024
4.3.1293 27 03/16/2024
4.3.1292 26 03/16/2024
4.3.1291 28 03/17/2024
4.3.1290 30 03/17/2024
4.3.1289 29 03/16/2024
4.3.1288 25 03/16/2024
4.3.1286 24 03/17/2024
4.3.1282 29 03/14/2024
4.3.1281 23 03/16/2024
4.3.1280 28 03/16/2024
4.3.1276-pre 29 03/02/2024
4.3.1177-pre 25 03/17/2024
4.3.1164-pre 26 02/27/2024
4.2.1205-pre 23 03/18/2024
4.2.1183 21 03/16/2024
4.2.1179 27 03/17/2024
4.2.1176 28 01/19/2025
4.2.1172 27 03/03/2024
4.2.1171-pre 28 03/17/2024
4.2.1169 23 01/19/2025
4.2.1167-pre 25 03/18/2024
4.2.1166-pre 29 03/03/2024
4.2.1161 26 03/16/2024
4.2.1156-pre 22 03/18/2024
4.2.1155 27 03/16/2024
4.2.1150 28 03/16/2024
4.2.1149-pre 29 03/17/2024
4.2.1148-pre 24 03/03/2024
4.2.1147-pre 22 03/18/2024
4.2.1146-pre 23 03/17/2024
4.2.1137 23 03/17/2024
4.2.1129-pre 19 03/02/2024
4.2.1128-pre 26 03/03/2024
4.2.1127-pre 23 03/18/2024
4.2.1126-pre 21 03/02/2024
4.2.1125-pre 23 03/03/2024
4.2.1123-pre 26 03/03/2024
4.2.1119-pre 27 03/02/2024
4.2.1113-pre 30 03/18/2024
4.2.1108-pre 28 03/02/2024
4.2.1107-pre 26 03/18/2024
4.2.1104-pre 20 03/03/2024
4.2.1099-pre 22 03/17/2024
4.2.1098-pre 20 03/16/2024
4.2.1093-pre 25 03/03/2024
4.2.1091-pre 22 03/02/2024
4.2.1090-pre 21 03/05/2024
4.2.1089-pre 29 03/18/2024
4.2.1087-pre 27 03/17/2024
4.2.1083-pre 23 03/05/2024
4.2.1082-pre 23 03/02/2024
4.2.1081-pre 21 03/17/2024
4.2.1079-pre 21 03/18/2024
4.2.1078-pre 26 03/03/2024
4.2.1073-pre 19 03/17/2024
4.2.1070-pre 24 03/02/2024
4.2.1069-pre 21 03/18/2024
4.2.1059-pre 23 03/02/2024
4.2.1046-pre 24 03/02/2024
4.2.1031-pre 27 03/03/2024
4.2.1028-pre 21 03/02/2024
4.2.1027-pre 23 03/17/2024
4.1.1009 23 03/03/2024
4.1.1002-pre 20 03/16/2024
4.1.995-pre 30 03/03/2024
4.1.989-pre 28 03/05/2024
4.1.983-pre 29 03/02/2024
4.1.982-pre 18 03/02/2024
4.1.978-pre 29 03/02/2024
4.1.977-pre 25 03/05/2024
4.1.975-pre 23 03/02/2024
4.0.958 19 03/17/2024
4.0.957 20 03/17/2024
4.0.956 27 03/17/2024
4.0.955 22 03/16/2024
4.0.941 24 03/18/2024
4.0.940 24 03/16/2024
4.0.925 28 03/16/2024
4.0.922 24 03/16/2024
4.0.909 30 03/17/2024
4.0.880 21 03/17/2024
4.0.869 22 03/16/2024
4.0.864 29 03/17/2024
4.0.861 22 03/17/2024
4.0.860 20 03/17/2024
4.0.857 21 03/16/2024
4.0.855 19 03/03/2024
4.0.846 24 03/18/2024
4.0.842 22 03/17/2024
4.0.836 22 03/17/2024
4.0.835 21 01/19/2025
4.0.834 26 03/18/2024
4.0.832 22 03/18/2024
4.0.831 23 01/19/2025
4.0.829 23 03/17/2024
4.0.828 25 03/22/2024
4.0.827 21 03/17/2024
4.0.826 21 03/17/2024
4.0.825 23 03/17/2024
4.0.821 20 03/17/2024
4.0.819 26 03/17/2024
4.0.818 20 03/16/2024
4.0.816 22 03/17/2024
4.0.815 26 03/17/2024
4.0.814 27 03/22/2024
4.0.813 27 03/03/2024
4.0.812 22 03/16/2024
4.0.811 24 03/17/2024
4.0.810 20 03/16/2024
4.0.809 29 03/17/2024
4.0.805 28 03/03/2024
4.0.797 29 03/17/2024
4.0.796 17 03/16/2024
4.0.794 28 03/17/2024
4.0.793 28 03/16/2024
4.0.792 20 03/16/2024
4.0.791 20 03/17/2024
4.0.790 26 03/16/2024
4.0.788 21 03/17/2024
4.0.774 20 03/03/2024
4.0.773 22 03/22/2024
4.0.772 24 03/16/2024
4.0.770 22 03/17/2024
4.0.769 27 03/27/2024
4.0.762 26 03/16/2024
4.0.761 28 03/17/2024
4.0.760 23 03/16/2024
4.0.759 26 03/17/2024
4.0.758 25 03/16/2024
4.0.757 25 03/17/2024
4.0.756 23 03/17/2024
4.0.755 27 03/22/2024
4.0.754 20 03/16/2024
4.0.753 28 03/17/2024
4.0.752 25 03/17/2024
4.0.750 29 03/17/2024
4.0.749 20 03/22/2024
4.0.747 26 03/17/2024
4.0.746 20 03/17/2024
4.0.744 20 03/16/2024
4.0.743 19 03/17/2024
4.0.742 24 03/17/2024
4.0.741 22 03/17/2024
4.0.739 19 03/16/2024
4.0.738 22 03/14/2024
4.0.734 20 03/16/2024
4.0.733-beta 30 03/17/2024
4.0.672 23 03/17/2024
4.0.669 21 03/17/2024
4.0.668 21 03/17/2024
3.0.654 20 03/13/2024
3.0.646 24 03/13/2024
3.0.645 32 03/12/2024
3.0.644 27 03/12/2024
3.0.639 19 03/13/2024
3.0.638 24 03/13/2024
3.0.637 25 03/13/2024
3.0.635 24 03/13/2024
3.0.633 26 03/13/2024
3.0.632 22 03/03/2024
3.0.629 22 03/13/2024
3.0.626 21 03/13/2024
3.0.625 20 03/13/2024
3.0.624 28 03/13/2024
3.0.623 25 03/02/2024
3.0.622 23 03/13/2024
3.0.621 29 03/12/2024
3.0.620 26 03/22/2024
3.0.613 25 03/13/2024
3.0.611 24 03/02/2024
3.0.610 18 03/12/2024
3.0.606 24 03/13/2024
3.0.605 23 03/02/2024
3.0.603 26 03/13/2024
3.0.601 21 03/13/2024
3.0.600 26 03/13/2024
3.0.599 23 03/22/2024
3.0.598 21 03/13/2024
3.0.592 25 03/13/2024
3.0.589 31 03/13/2024
3.0.588 23 03/02/2024
3.0.586 27 03/13/2024
3.0.584 20 03/13/2024
3.0.583 26 03/13/2024
3.0.581 24 03/13/2024
3.0.579 23 03/13/2024
3.0.576 26 03/12/2024
3.0.575 26 03/12/2024
3.0.574 20 03/13/2024
3.0.569 19 03/13/2024
3.0.568 27 03/02/2024
3.0.566 28 03/12/2024
3.0.548 23 03/13/2024
3.0.545 30 03/12/2024
3.0.538 23 03/13/2024
3.0.537 19 03/12/2024
3.0.536 22 01/18/2025
3.0.534 22 03/13/2024
3.0.532 26 03/13/2024
3.0.531 26 01/19/2025
3.0.524 22 03/13/2024
3.0.523 28 03/13/2024
3.0.522 26 03/12/2024
3.0.520 21 03/13/2024
3.0.519 31 03/13/2024
3.0.518 25 03/02/2024
3.0.517 23 03/13/2024
3.0.516 20 03/13/2024
3.0.514 26 03/12/2024
3.0.513 22 03/13/2024
3.0.512 20 03/22/2024
3.0.509 21 03/13/2024
3.0.507 22 03/12/2024
3.0.505 21 03/13/2024
3.0.503 27 03/16/2024
3.0.502 18 03/13/2024
3.0.479 21 03/13/2024
3.0.476 28 03/13/2024
3.0.471 22 03/13/2024
3.0.470 20 03/13/2024
3.0.469 22 03/13/2024
3.0.468 29 03/13/2024
3.0.467 22 03/13/2024
3.0.465 20 03/13/2024
3.0.459 20 03/13/2024
3.0.456 21 03/12/2024
3.0.455 29 03/12/2024
3.0.454 30 03/12/2024
3.0.453 21 03/13/2024
3.0.452 22 03/13/2024
3.0.451 25 03/13/2024
3.0.450 23 03/13/2024
3.0.447 23 03/13/2024
2.0.378 18 03/16/2024
2.0.372 22 03/15/2024
2.0.370 25 03/14/2024
2.0.368 27 03/14/2024
2.0.365 23 03/12/2024
2.0.363 26 03/14/2024
2.0.361 20 03/14/2024
1.0.360 22 03/02/2024
1.0.359 25 02/29/2024
1.0.358 24 03/02/2024
1.0.356 27 03/13/2024
1.0.355 23 03/13/2024
1.0.354 18 03/22/2024
1.0.305 23 01/31/2025
1.0.299 26 03/16/2024
1.0.293 28 03/17/2024
1.0.292 22 03/16/2024
1.0.289 23 03/22/2024
1.0.288 25 03/26/2024
1.0.286 22 03/17/2024
1.0.285 30 03/16/2024
1.0.284 22 03/02/2024
1.0.282 24 03/16/2024
1.0.281 29 03/16/2024
1.0.279 25 03/16/2024
1.0.277 24 03/16/2024
1.0.276 20 03/16/2024
1.0.275 26 03/22/2024
1.0.274 26 03/16/2024
1.0.272 29 02/27/2024
1.0.269 29 03/16/2024
1.0.268 27 03/03/2024
1.0.266 21 03/03/2024
1.0.263 24 03/22/2024
1.0.258 20 03/03/2024
1.0.257 22 02/28/2024
1.0.256 23 03/18/2024
1.0.254 28 03/16/2024
1.0.253 22 03/19/2024
1.0.250 32 03/16/2024
1.0.249 26 03/17/2024
1.0.248 17 03/03/2024
1.0.245 24 03/02/2024
1.0.241 28 03/17/2024
1.0.240 24 03/18/2024
1.0.237 28 03/17/2024
1.0.234 25 03/03/2024
1.0.233 25 03/17/2024
1.0.231 24 03/16/2024
1.0.230 22 03/16/2024
1.0.229 21 01/19/2025
1.0.226 21 03/16/2024
1.0.217 18 03/16/2024
1.0.215 24 03/02/2024
1.0.213 25 03/03/2024
1.0.210 19 03/16/2024
1.0.209 28 03/16/2024
1.0.202 21 03/16/2024
1.0.201 30 02/28/2024
1.0.198 21 03/16/2024
1.0.197 24 03/22/2024
1.0.196 23 03/02/2024
1.0.195 26 03/03/2024
1.0.194 24 03/16/2024
1.0.193 24 03/03/2024
1.0.192 25 03/01/2025
1.0.191 24 03/17/2024
1.0.189 25 03/03/2024
1.0.187 24 03/02/2024
1.0.186 31 03/02/2024
1.0.185 25 03/03/2024
1.0.183 24 03/18/2024
1.0.181 26 03/16/2024
1.0.180 21 03/17/2024
1.0.178 22 02/28/2024
1.0.177 31 03/16/2024
1.0.175 21 03/17/2024
1.0.171 21 03/17/2024
1.0.170 20 01/18/2025
1.0.168 24 03/14/2024
1.0.164 25 03/02/2024
1.0.162 19 03/16/2024
1.0.160 29 03/17/2024
1.0.159 27 03/16/2024
1.0.157 28 03/03/2024
1.0.156 24 02/28/2024
1.0.154 21 03/16/2024
1.0.152 19 03/16/2024
1.0.151 24 03/17/2024
1.0.150 23 03/17/2024
1.0.149 25 03/03/2024
1.0.148 23 03/16/2024
1.0.147 25 03/17/2024
1.0.146 25 03/22/2024
1.0.145 21 03/17/2024
1.0.143 17 03/16/2024
1.0.142 21 03/17/2024
1.0.141 20 03/16/2024
1.0.140 20 03/17/2024
1.0.139 29 03/16/2024
1.0.138 18 02/28/2024
1.0.137 20 01/19/2025
1.0.134 25 03/16/2024
1.0.129 19 03/16/2024
1.0.128 22 03/15/2024
1.0.125 28 03/16/2024
1.0.124 24 01/19/2025
1.0.122 23 03/16/2024
1.0.119 24 03/03/2024
1.0.117 19 03/16/2024
1.0.115 30 03/03/2024
1.0.114 22 03/14/2024
1.0.113 24 03/16/2024
1.0.112 18 03/16/2024
1.0.111 20 02/28/2024
1.0.110 24 03/16/2024
1.0.109 21 01/19/2025
1.0.108 25 03/15/2024
1.0.103 28 03/16/2024
1.0.37 28 03/12/2024
1.0.36 30 03/12/2024
1.0.35 25 03/02/2024
1.0.34 22 03/13/2024
1.0.33 24 03/02/2024
1.0.32 22 03/13/2024
1.0.31 29 03/12/2024
1.0.30 29 03/12/2024
1.0.28 26 03/13/2024
1.0.27 22 03/14/2024
1.0.26 22 01/19/2025
1.0.25 30 03/13/2024
1.0.24 26 03/16/2024
1.0.23 26 03/22/2024
1.0.0 26 03/14/2024