Visual Studio 2012 不断提示我进行 SQL Server 连接(反复),这很烦人。当我打开我的解决方案时(甚至在我运行它之前)就会发生这种情况。
我的同事没有从 TFS 源代码控制中获得相同的解决方案。
我已经尝试搜索显示的服务器/数据库的所有文件,但没有任何返回。
这阻碍了我做任何工作的努力。

我使用以下方法开发了一个javascript聊天(后端的php):
1) long-polling to get new messages for the receiver
2) sessionStorage to store the counter of messages
3) setInterval to read new messages and if sessionStorageCounter < setIntervalCounter then the last message is shown to receiver.
4) javascript to create,update and write the chat dialogues
Run Code Online (Sandbox Code Playgroud)
该模块工作正常,但当用户快速聊天时,接收者的前端会收到两到三条相同的消息,(计数器都不会失败,查询也不会提供双重插入).
代码似乎是正确的(这就是我不提供代码的原因),因此间隔延迟可能是原因(在减少间隔延迟时,没有任何变化).
您是否认为上述架构是一种不好的做法,您认为哪种架构可以消除错误?