我有一个PowerShell脚本执行以下任务:在Powershell脚本中使用SQL Server Service Broker?
Loop a big database table
Generate text file
Zip the text file
FTP upload the zipped file
Write to the log table
步骤生成文本文件可能需要短期或更长的时间依赖于数据。而FTP上传时间需要一段时间。所以我想至少使这两个步骤异步。 SQL Server Service Broker是一个可行的选择吗?有没有例子?任何其他选项?