0

我正在尝试构建一个需要实时推送(可能是 websockets)的 Web 应用程序,但我受到内存的限制,并希望避免使用 servlet 容器。所以说我的应用程序将仅部署在 Web 服务器上(没有接口应用程序服务器)并且应该能够与服务通信(最好是基于 Java)我的选择是什么 - Web UI 库(我喜欢使用 GWT但不确定这有多可行) - 服务后端 - 实时推送

4

1 回答 1

0

You want to build a light weight push notification system that runs on webserver only. Try Atmosphere Framework http://async-io.org.

To answer your question related to Memory constraint
1) Decouple and create a seperate push-server based on atmosphere
2) Whenever your application services is ready with data to push, Push it to the decoupled push server. Pushing it can be acieved through either JMS or Asynchttpclient
3) Your browser client will always listen to the de-coupled push server.

Let me know if you need more help.

于 2014-04-08T11:45:47.097 回答