Path: csiph.com!aioe.org!.POSTED!not-for-mail From: =?UTF-8?Q?Arne_Vajh=c3=b8j?= Newsgroups: comp.lang.java.programmer Subject: Re: Is it necessary to have both an application server AND a web server? Date: Thu, 7 Jul 2016 22:31:42 -0400 Organization: Aioe.org NNTP Server Lines: 32 Message-ID: References: NNTP-Posting-Host: 7SK6yTFfqwlIPNBLl3l7Qg.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.java.programmer:34781 On 6/15/2016 4:58 PM, Qu0ll wrote: > On 11/06/2016 08:48, Qu0ll wrote: >> DISCLAIMER: Server-side Java is not my forte. >> >> I have often noticed that in many places where I have worked, the >> companies have both a full application server such as JBoss/Wildfly AND >> a web server (typically Apache) installed and both seem to work together. >> >> 1) Is this necessary and if so, why? >> 2) What does a web server "provide" that an application server doesn't? >> 3) What is the nature of the relationship or interaction between both >> applications? >> > > Thanks to everyone who replied to my question in such a helpful manner. > > It seems clear that there are distinct reasons to have both a dedicated > web server and application server as part of your infrastructure. > > It seems though that nginx may be a more modern alternative to httpd but > I will need to do more research to decide which is better for my precise > needs. nginx vs Apache is a complex topic. But an oversimplified (!) answer is: - nginx is best to serve static content - Apache is best to do all sorts of things via modules Arne