-
-
28 Mar 2010 21:52:08 UTC
- Distribution: Corona
- Module version: 0.1004
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues
- Testers (1088 / 33 / 0)
- Kwalitee
Bus factor: 1- 90.00% Coverage
- License: perl_5
- Perl: v5.8.1
- Activity
24 month- Tools
- Download (20.62KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Coro
- Net::Server::Coro
- Plack
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Corona - Coro based PSGI web server
SYNOPSIS
corona --listen :9090 app.psgi
DESCRIPTION
Corona is a Coro based Plack web server. It uses Net::Server::Coro under the hood, which means we have coroutines (threads) for each socket, active connections and a main loop.
Because it's Coro based your web application can actually block with I/O wait as long as it yields when being blocked, to the other coroutine either explicitly with
cede
or automatically (via Coro::* magic).# your web application use Coro::LWP; my $content = LWP::Simple::get($url); # this yields to other threads when IO blocks
Corona also uses Coro::AIO (and IO::AIO) if available, to send the static filehandle using sendfile(2).
The simple benchmark shows this server gives 2000 requests per second in the simple Hello World app, and 300 requests to serve 2MB photo files when used with AIO modules. Brilliantly fast.
This web server sets
psgi.multithread
env var on.AUTHOR
Tatsuhiko Miyagawa
LICENSE
This module is licensed under the same terms as Perl itself.
SEE ALSO
Module Install Instructions
To install Corona, copy and paste the appropriate command in to your terminal.
cpanm Corona
perl -MCPAN -e shell install Corona
For more information on module installation, please visit the detailed CPAN module installation guide.