Foundatio 13.0.0-beta2

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.
2
Foundatio.Kafka
Pluggable foundation blocks for building distributed apps.
4
Foundatio.Kafka
Pluggable foundation blocks for building distributed apps.
13
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.
19
Foundatio.Kafka
Pluggable foundation blocks for building distributed apps.
20
Foundatio.Kafka
Pluggable foundation blocks for building distributed apps.
21
Foundatio.Kafka
Pluggable foundation blocks for building distributed apps.
22

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

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