azure-functions
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAzure Functions
Azure Functions
Patterns
模式
Isolated Worker Model (.NET)
隔离工作器模型(.NET)
Modern .NET execution model with process isolation
采用进程隔离的现代.NET执行模型
Node.js v4 Programming Model
Node.js v4编程模型
Modern code-centric approach for TypeScript/JavaScript
面向TypeScript/JavaScript的现代代码优先开发方式
Python v2 Programming Model
Python v2编程模型
Decorator-based approach for Python functions
基于装饰器的Python函数开发方式
Anti-Patterns
反模式
❌ Blocking Async Calls
❌ 阻塞式异步调用
❌ New HttpClient Per Request
❌ 每次请求新建HttpClient
❌ In-Process Model for New Projects
❌ 新项目使用进程内模型
⚠️ Sharp Edges
⚠️ 注意事项
| Issue | Severity | Solution |
|---|---|---|
| Issue | high | ## Use async pattern with Durable Functions |
| Issue | high | ## Use IHttpClientFactory (Recommended) |
| Issue | high | ## Always use async/await |
| Issue | medium | ## Configure maximum timeout (Consumption) |
| Issue | high | ## Use isolated worker for new projects |
| Issue | medium | ## Configure Application Insights properly |
| Issue | medium | ## Check extension bundle (most common) |
| Issue | medium | ## Add warmup trigger to initialize your code |
| 问题 | 严重程度 | 解决方案 |
|---|---|---|
| 问题 | 高 | ## 使用Durable Functions的异步模式 |
| 问题 | 高 | ## 使用IHttpClientFactory(推荐) |
| 问题 | 高 | ## 始终使用async/await |
| 问题 | 中 | ## 配置最大超时时间(消耗计划) |
| 问题 | 高 | ## 新项目始终使用隔离工作器模型 |
| 问题 | 中 | ## 正确配置Application Insights |
| 问题 | 中 | ## 检查扩展包(最常见) |
| 问题 | 中 | ## 添加预热触发器初始化代码 |