posted 7 years ago
Hey, I'm using servlet technology in conjunction with spring security and hibernate to put together the back-end for my mobile application and I'm wondering if anyone has tips on making things as modular as possible. At the moment I basically have an authentication servlet which logs the user in and dispatches requests to one of three other servlets. (depending on what kind of activity my user is looking to do) For my application to be useful it will need to support a large number of users so I'll have to learn how to cluster Tomcat at somepoint and write another layer on top of what I already have. But for now assuming I'm just running on one server, whats the best way to structure servlet heirarchy (is more better, is it dependent on what kind of application your running, etc...) to ensure I get the most bang for my buck while keeping it easy to read for other developers of the program(this is more of a resume builder for me, I'm a college student trying to learn some web-dev over the summer).