What happened when you visit www.google.com?
Type URL
in browser: www.google.com(domain
)
Find the nearest DNS server
(Domain Name Service)
Send http/https request to the IP
address
Web Server got the request and deliver it to HTTP server (port 80)
HTTP server resend the request to Django, Rails, NodeJS based Web Application
Web Application processes the request
https://www.djangoproject.com...
HTTP server: Apache, Unicorn, Unicorn, Uwsgi
Design Tiny URL
bit.ly
Google url shortener
Scenario
bit.ly: transform Long URL --> Short URL
user: use short URL --> bit.ly
bit.ly: return Long URL --> user
user: request Long URL to redirect to the website
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。