我在 Azure 中托管了一个 Azure 服务总线中继,它公开了类似于以下的端点: https://myTestSB.servicebus.windows.net/MyService/LogIn()
有趣的是,当我调用此服务总线时,它会进行 4 次调用,如下所示。这导致响应缓慢。
有人可以澄清每次通话中发生的事情吗?第一次调用#1 是否必须等待 2、3 和 4?
1(需要很长时间)
GET https://myTestSB.servicebus.windows.net/MyService/LogIn()?$filter=UserID eq '1234' and Password eq 'secret'
User-Agent: Microsoft ADO.NET Data Services
.....
Status Code: OK 200
...
2
CONNECT https://myTest-sb.accesscontrol.windows.net/WRAPv0.9/
Status Code: OK 200
Connection: Keep-Alive
Proxy-Connection: Keep-Alive
3
POST https://TestSB-sb.accesscontrol.windows.net/WRAPv0.9/
Content-Type: application/x-www-form-urlencoded
Host: TestSB-sb.accesscontrol.windows.net
Content-Length: 307
Expect: 100-continue
Connection: Keep-Alive
Status Code: OK 200
.......
4
CONNECT https://myTestSB.servicebus.windows.net/MyService/LogIn()?$filter=UserID eq '1234' and Password eq 'secret'
Status Code: OK 200
Connection: Keep-Alive
Proxy-Connection: Keep-Alive
登录服务总线需要 5-10 秒,而在本地环境中只需不到一秒。不确定服务总线为何以及如何增加延迟。