I am currently working with a GWT app that has one large RPC service. It has over 100 methods, all of which do different things. What kind of performance benefit / hindrance would I get if I split this into multiple RPC services? I believe I’d have to make a new servlet for each one.
So my main questions are:
Does GWT create a new RPC servlet for each running client?
Would GWT have two servlets for one App if I have two RPC services?
Would having two RPC services cause any performance issues. currently (10-15 concurrent users on one tomcat instance)
I believe it’d change nothing in this respect.
Not necessarily. You could have a single
RemoteServiceServletimplementing severalRemoteServiceinterfaces. You’d have to set the same@RemoteServiceRelativePathon all your interfaces for the client to use the same URL, but you could also map that same servlet to several distinct URLs (severalservlet-mappingwith the sameservlet-name).GWT doesn’t create a new RPC servlet, if you host your web app in Tomcat, then Tomcat odes create servlet instances (generally a single instance per class).