README
1NAME
2 Corona - Coro based PSGI web server
3
4SYNOPSIS
5 corona --listen :9090 app.psgi
6
7DESCRIPTION
8 Corona is a Coro based Plack web server. It uses Net::Server::Coro under
9 the hood, which means we have coroutines (threads) for each socket,
10 active connections and a main loop.
11
12 Because it's Coro based your web application can actually block with I/O
13 wait as long as it yields when being blocked, to the other coroutine
14 either explicitly with "cede" or automatically (via Coro::* magic).
15
16 # your web application
17 use Coro::LWP;
18 my $content = LWP::Simple::get($url); # this yields to other threads when IO blocks
19
20 Corona also uses Coro::AIO (and IO::AIO) if available, to send the
21 static filehandle using sendfile(2).
22
23 The simple benchmark shows this server gives 2000 requests per second in
24 the simple Hello World app, and 300 requests to serve 2MB photo files
25 when used with AIO modules. Brilliantly fast.
26
27 This web server sets "psgi.multithread" env var on.
28
29AUTHOR
30 Tatsuhiko Miyagawa
31
32LICENSE
33 This module is licensed under the same terms as Perl itself.
34
35SEE ALSO
36 Coro Net::Server::Coro Coro::AIO
37
38