what happened when you enter www.google.com

  • DNS -> IP
  • 你的浏览器然后向该IP发送http/https请求

  • 服务器(Web Server)收到请求,将请求递交给正在80端口监听的HTTP Server

  • 比较常用的HTTP Server有Apache, Unicorn, Gunicorn, Uwsgi
  • HTTP Server将请求转发给Web Application
    • 最火的三大Web Application Framework: Django, Ruby on Rails, NodeJS
  • Web Application处理请求
    • 根据当前路径“/”找到对应的逻辑处理模块
    • 根据用户请求参数(GET+POST)决定如何获取/存放数据
    • 从数据存储服务(数据库或者文件系统)中读取数据
    • 组织数据成一张html网页作为返回结果
  • 浏览器得到结果,展示给用户

results matching ""

    No results matching ""