my question similar this stackoverflow question.
i have spring application runs under tomcat on port 80. restfull service , web application.
now new requirment comes in use native android clients (1000+) exchange messages (events) android app server, not android-to-android. i'm not going use same tomcat server use http messaging pipeline because,
- many android clients
- many messages/events there
- need lighter protocol http
i though better have nio socket server (ex: using websockets) such netty handle mobile client's messaging pipeline. these mobile clients use restfull service well.
message/event flows android clients
android ----> netty ----> spring app all other request/response
android ----> tomcat ----> spring app web ----> tomcat ----> spring app they suppose share same authentication mechanism or separate mechanisms. have't though yet since no netty there.
i appreciate if can give me directions, advice or sample configurations.
you may embed tomcat , netty spring application, making them listen on different ports. have @ spring-boot project.
tomcat supports websockets, may don't need netty. netty supports http codec, maybe don't need tomcat:)
Comments
Post a Comment