Web Server 與 Application Server 的差別


圖片來源: https://media.amazonwebservices.com/architecturecenter/AWS_ac_ra_web_01.pdf

看到 AWS 關於 web application 的 architecture 這張圖之後,不太懂為何 server 要分為兩層,於是就google 了一下,找到一篇不錯的文章這邊配合AWS的圖做個簡短的summary:

  • Application Server: 專門用來處理 business logic 的,較常見的用法是接受 web server 的 request,執行完 business logic (過程中視需要去 access DB tier)之後把 result 回給 web server
  • Web Server: 專門只處理 HTTP request 與 response,當收到 HTTP request 之後,需要 business logic 的部分就從 application server 取,最後把 result 轉為 HTTP response

評論

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×