我打算打电话异步版本火&忘记方案例如1.在Azure表存储中写入日志2.将消息推送到服务总线。Async Web API是否适合任何实际用途?
我不打算阻止或等待外部API调用。然而网络API抛出以下错误:
似乎IIS请求线程必须保持活跃。即使我们不阻止api电话。
Is there any way we could let the external API continue its operation, using Async/Await?
我打算打电话异步版本火&忘记方案例如1.在Azure表存储中写入日志2.将消息推送到服务总线。Async Web API是否适合任何实际用途?
我不打算阻止或等待外部API调用。然而网络API抛出以下错误:
似乎IIS请求线程必须保持活跃。即使我们不阻止api电话。
Is there any way we could let the external API continue its operation, using Async/Await?
Is Async Web API good for any practical purpose?
Is there any way we could let the external API continue its operation, using Async/Await?
That's not what async
/await
is for。你正在寻找“火与遗忘”,这是highly dangerous on ASP.NET, but it is possible。
你说你不打算等待外部API调用。为什么不? –
@JasonBoyd外部APi调用是为了记录目的,所以不在乎它是否成功。可以考虑使用服务总线主题将一些任务委派给工作角色。 – Abhijeet