Skip to content

Foundry

As forge shapes metal, the foundry casts and molds prototypes.

The Foundry contains sample projects and experimental implementations for exploring new technologies, prototyping features, and demonstrating integration patterns across the Forge platform.

๐Ÿ“‹ Purpose

Use Case Description
๐Ÿงช Experimentation Test new libraries, frameworks, or architectural patterns
๐Ÿ—๏ธ Prototyping Build proof-of-concepts before implementing in main codebase
๐Ÿ“š Learning Explore new technologies in a sandboxed environment
๐Ÿ”— Integration Testing Test interactions between different platform components

๐Ÿ“‚ Structure

foundry/
โ”œโ”€โ”€ dotnet/                    # .NET examples and experiments
โ”‚   โ”œโ”€โ”€ aspire-blobstorage/    # Azure Blob Storage file upload with Aspire
โ”‚   โ”œโ”€โ”€ aspire-config/         # Aspire publish-time configuration generation
โ”‚   โ”œโ”€โ”€ aspire-playwright/     # Playwright integration testing with Aspire
โ”‚   โ”œโ”€โ”€ aspire-wiremockcli/    # WireMock CLI with Aspire & Kiota
โ”‚   โ”œโ”€โ”€ devtunnels-simple-webhook/  # DevTunnels webhook receiver
โ”‚   โ”œโ”€โ”€ event-orchestration/   # Saga pattern with Durable Functions
โ”‚   โ””โ”€โ”€ events-with-cosmos/    # Event-driven architecture with Cosmos DB
โ””โ”€โ”€ terraform/                 # Terraform examples
    โ””โ”€โ”€ azure-apim-policy/     # API Management policy patterns

๐ŸŽฏ Examples

.NET Examples

Example Status Description Key Technologies
Aspire Blob Storage Preview File upload with Azure Blob Storage Aspire 13, Azure Storage, React, .NET 10
Aspire Config Preview Publish-time security configuration Aspire 13, Security Extensions, .NET 10
Aspire Playwright Preview Browser-based integration testing Aspire 13, Playwright, React, Kiota
Aspire WireMock CLI Preview API mocking with Kiota client generation Aspire, WireMock CLI, Kiota
DevTunnels Webhook Preview Public webhook receiver with DevTunnels Aspire, DevTunnels, React
Event Orchestration Preview Saga pattern for distributed transactions Durable Functions, Service Bus, Cosmos DB
Events with Cosmos Preview Event-driven architecture patterns Azure Functions, Service Bus, Cosmos DB

Terraform Examples

Example Status Description Key Technologies
Azure APIM Policy Preview API Management policy patterns Terraform, Azure APIM

โš ๏ธ Guidelines

Foundry Experiments

Code in foundry is temporary and experimental. These examples demonstrate patterns and possibilities, not production-ready implementations.

Key rules:

  • No production dependencies on foundry code
  • Clean up experiments when completed
  • Use descriptive folder names for experiments
  • Document the purpose and learnings

๐Ÿš€ Getting Started

To create a new experiment:

mkdir foundry/{domain}/{experiment-name}
cd foundry/{domain}/{experiment-name}
# Start your experiment

๐Ÿ“ Code Location

All Foundry code lives at the repository root under /foundry/. This documentation provides overviews and guidance, while the actual implementations are in the source directories.

Documentation Source Code
docs/foundry/ foundry/dotnet/ and foundry/terraform/