Hacker News new | ask | show | jobs
by haddr 4411 days ago
this in general leads to an even worse practice: creating one huge standalone app instead of several specialized web apps. when you develop a service with an embedded server, your endpoint will have an unique port (as each app will have to allocate its own unique port number) and all the idea of restful URI gets broken.
1 comments

You lost me. How does embedding the app server break URIs?
in the embedded mode you have one application server per app, so you have one app at port 80, another at 81, etc... so you can't just have a nice URL pattern for your applications, becase each one will have different port number. Unless you set up additional reverse proxy...
you put nginx in front of it, which you should do anyways for most things.
Yep agreed, it's called reverse proxying, I do this with Tomcat as well.

http://en.wikipedia.org/wiki/Reverse_proxy