Foundatio 13.0.0-beta1

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) โœ… โœ…
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.
1
Foundatio.Kafka
Pluggable foundation blocks for building distributed apps.
12
Foundatio.Kafka
Pluggable foundation blocks for building distributed apps.
15
Foundatio.Kafka
Pluggable foundation blocks for building distributed apps.
16
Foundatio.Kafka
Pluggable foundation blocks for building distributed apps.
17
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.
21

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

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