Best choice for Long-polling / Comet in Java or C#?

前端 未结 6 670
心在旅途
心在旅途 2021-01-03 10:18

Which native server is best, in your opinion, to implement long-polling / Comet? The first target application is chat, but there will be other implementations - we basically

相关标签:
6条回答
  • 2021-01-03 10:30

    Try netty-socketio project. It's a Java framework with long-pooling and websocket support using famous Socket.IO protocol.

    0 讨论(0)
  • 2021-01-03 10:31

    I don't think there's a significant difference in this regard.

    0 讨论(0)
  • 2021-01-03 10:35

    IIS + WebSync is a very straight-forward, scalable and extensible solution for server push. There is a free Community edition I highly recommend checking out.

    0 讨论(0)
  • 2021-01-03 10:35

    I just saw this blogpost from Scott Hanselman yesterday. It looks very promising.

    http://www.hanselman.com/blog/AsynchronousScalableWebApplicationsWithRealtimePersistentLongrunningConnectionsWithSignalR.aspx

    It features an opensource product called SignalR which is available through nuget.

    You can find an example chat application in the sources @ github

    https://github.com/SignalR/SignalR

    0 讨论(0)
  • 2021-01-03 10:38

    I know that special attention was paid to Comet support in the Grizzly engine used by Glassfish. It wasn't treated as an afterthought.

    0 讨论(0)
  • 2021-01-03 10:45

    Both Java and .NET platforms have enough capabilities to handle your needs. If you choose Java : You may start with DWR otherwise, on the .net side PokeIn library should be the choice.

    0 讨论(0)
提交回复
热议问题