1
jaeyo
29d

Is web server like apache or nginx required if there’s no static resource and no need to reverse proxy?

Comments
  • 8
    you see a sign here that says "free computer help"?

    have you even considered typing that shit into google instead?
  • 1
    @molaram I absolutely googled it. but I thought that this kind of things have no only one correct answer. there's only some opinions about it. some people said it's not necessary and some of them said it still need to there because of some other factors.. I just want to know your opinions.
  • 1
    @jaeyo how else will you serve? sounds like you don't think you have static resources but thats all you would be serving if you weren't using something like apache or nginx

    see npx serve
  • 2
    @jaeyo welcome to the internet. you have to learn how to figure out things on your own.
  • 0
    @fullstackchris I omitted extra info about it by mistake. I just wanna know that is it ok to serve web service by only WAS like tomcat.
  • 4
    Strictly speaking: No, a "frontend" server isn't really required. It will work, as long as your application server speaks http (which most do, or they can be configured to do so).

    The other question is - does it make sense?

    You do plan to grow, right? So a load balancer might be required in the future - why not add one now?
    Will there be static resources in the future? Do you need caching, HTTPS (with a decent performance) or other feature you would otherwise need to write in you application, but a webserver offer already?
  • 1
    It helps a lot. Layers help a lot
  • 5
    @molaram Wow, damn, why such a harsh response?
    Searching for something on Google or whatever fucking search engine you use doesn't always get you the needed results with questions like these and even if you get some good ones, asking a question about it in a place like this should be perfectly fine, there is a question tag/section after all!

    @fullstackchris I don't entirely get your point. I've used static sites with nginx, apache, nodejs and PHP (yes, literally webservers in all cases) and it really depends on the case for me but mostly nginx with a normal virtual host. (cc @jaeyo)
  • 3
    @molaram For example, I recently saw a question about what best to use for websockets with Node and people where responding exactly like this but it took me personally multiple motherfucking weeks to find this out with an insane amount of search engining. It's not always as simple as "just search engine it".
  • 2
    @jaeyo also, welcome man!
  • 1
    @linuxxx thanks for your thoughtful response.
Add Comment