Apache3.0 时代的到来!

apache3.0时代的到来,为我们的网络应用带入了全新的境界,其在配置方面,工作效率,运行机制,工作模式,协议接口等方面都产生了巨大变化。基于waka的传输协议会更加高效。
关键词:
spooning model,waka,Canned Error Responses

It’s time for Apache 3.0
One process model per common platform
no more guessing who is running how on what
no more support for platforms that suck (use 1.3.x)
if you want to run on/with something else,
you’ve got the source code
All compile-time choices are GONE
httpd and httpsd are DIFFERENT executables
APR is replaced by Moccasin
All APIs are based on Waka
get those sticky hands off my data structures!
“Kiss my ass” compatibility

Simplify Process Model
Modular Process Models
Apache 0.3
fork model
Apache 1.0
prefork model
Apache 1.3 introduced non-Unix models
prefork, win32
Apache 2.x introduced MPMs
prefork, beos, mpmt, os2, netware, threaded, winnt, worker, event
Apache 3.0 will just use the right MPM
based on whatever our own developers have tested to be
the best choice for a given platform
We call this the “ spooning model

Spooning Model


Less Configuration

Default to SAFE and SIMPLE configuration
no (default) configuration files
no compile-time settings
All settings designed for PROGRAMMER TESTING
start up using current owner and group
listen to localhost:8080
default to content/manual
all other settings must be on command-line
httpd -c configuration.txt
httpsd -C directory
Waka
A new protocol designed to match the efficiency of
well-designed Web Applications

Why “waka”?
Mäori word (pronounced “wah-kah”) for the outrigger
canoes used to travel safely on the Pacific Ocean,
across hundreds of islands, to Aotearoa (New Zealand)
Also, one of the few four-letter words suitable for a
protocol name
Deployable within an HTTP connection
via the HTTP/1.1 Upgrade header field
defined mapping to HTTP/1.1 for proxies

Unified Protocol and API
Protocols are the heart of a server
Apache 1.0: HTTP/1.0
Apache 1.2: HTTP/1.1
Apache 2.0: HTTP/1.1, POP3, ECHO
Apache 2.2: HTTP/1.1, POP2, ECHO, SMTP, FTP
Apache 3.0: waka, HTTP/1.1
The request_rec is replaced with waka_rec
waka messages are a tokenized data structure
memcopy, validate, pass by reference
coordinate using blackboard style, semaphores
no more DIY request/response construction



你可能感兴趣的:(apache,C++,unix,网络协议,网络应用)