Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Prepare applications for Azure deployment by generating infrastructure code, Dockerfiles, and config files.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/architecture.md
1# Architecture Planning23Select hosting stack and map components to Azure services.45## Stack Selection67| Stack | Best For | Azure Services |8| --------------- | ------------------------------------------------------ | --------------------------------- |9| **Containers** | Docker experience, complex dependencies, microservices | Container Apps, AKS, ACR |10| **Serverless** | Event-driven, variable traffic, cost optimization | Functions, Logic Apps, Event Grid |11| **App Service** | Traditional web apps, PaaS preference | App Service, Static Web Apps |1213### Decision Factors1415| Factor | Containers | Serverless | App Service |16| ------------------------ | :--------: | :--------------------------: | :---------: |17| Docker experience | ✓✓ | | |18| Event-driven | ✓ | ✓✓ | |19| Variable traffic | | ✓✓ | ✓ |20| Complex dependencies | ✓✓ | | ✓ |21| Long-running processes | ✓✓ | ✓ (Durable Functions) | ✓ |22| Workflow / orchestration | | ✓✓ (Durable Functions + DTS) | |23| Minimal ops overhead | | ✓✓ | ✓ |2425### Container Hosting: Container Apps vs AKS2627| Factor | Container Apps | AKS |28| ------------------------- | :-------------------------: | :---------------------------------: |29| **Scale to zero** | ✓✓ | |30| **Kubernetes API access** | | ✓✓ |31| **Custom operators/CRDs** | | ✓✓ |32| **Service mesh** | Dapr (built-in) | Istio |33| **Networking/dataplane** | Managed platform defaults | Azure CNI powered by Cilium |34| **GPU workloads** | | ✓✓ |35| **Best for** | Microservices, event-driven | Full K8s control, complex workloads |3637#### When to Use Container Apps3839- Microservices without Kubernetes complexity40- Event-driven workloads (KEDA built-in)41- Need scale-to-zero for cost optimization42- Teams without Kubernetes expertise4344#### When to Use AKS4546- Need Kubernetes API/kubectl access47- Require custom operators or CRDs48- Service mesh requirements (Istio, Linkerd)49- GPU/ML workloads50- Complex networking or multi-tenant architectures5152> **AKS Planning:** For AKS SKU selection (Automatic vs Standard), networking, identity, scaling, and security configuration, invoke the **azure-kubernetes** skill.5354## Service Mapping5556### Hosting5758| Component Type | Primary Service | Alternatives |59| ------------------------ | ----------------- | ------------------------------------------------ |60| SPA Frontend | Static Web Apps | Blob + CDN |61| SSR Web App | Container Apps | App Service, AKS |62| REST/GraphQL API | Container Apps | App Service, Functions, AKS |63| Background Worker | Container Apps | Functions, AKS |64| Scheduled Task | Functions (Timer) | Container Apps Jobs, Kubernetes CronJob (on AKS) |65| Event Processor | Functions | Container Apps, AKS + KEDA |66| Microservices (full K8s) | AKS | Container Apps |67| GPU/ML Workloads | AKS | Azure ML |6869### Data7071| Need | Primary | Reference | Alternatives |72| ---------- | ------------ | ----------------------------------------------- | ----------------- |73| Relational | Azure SQL | [SQL Database](services/sql-database/README.md) | PostgreSQL, MySQL |74| Document | Cosmos DB | [Cosmos DB](services/cosmos-db/README.md) | MongoDB |75| Cache | Redis Cache | | |76| Files | Blob Storage | [Storage](services/storage/README.md) | Files Storage |77| Search | AI Search | | |7879### Integration8081| Need | Service |82| ------------- | ----------- |83| Message Queue | Service Bus |84| Pub/Sub | Event Grid |85| Streaming | Event Hubs |8687### Workflow & Orchestration8889| Need | Service | Notes |90| ----------------------------------- | ---------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |91| Multi-step workflow / orchestration | **Durable Functions + Durable Task Scheduler** | DTS is the **required** managed backend for Durable Functions. Do NOT use Azure Storage or MSSQL backends. See [durable.md](services/functions/durable.md). |92| Low-code / visual workflow | Logic Apps | For integration-heavy, low-code scenarios |9394### Supporting (Always Include)9596| Service | Purpose |97| -------------------- | ----------------------- |98| Log Analytics | Centralized logging |99| Application Insights | Monitoring, APM |100| Key Vault | Secrets management |101| Managed Identity | Service-to-service auth |102103---104105## Document Architecture106107Record selections in `.azure/deployment-plan.md` with rationale for each choice.108