Giter Site home page Giter Site logo

twiggy's Introduction

NAME
    Twiggy - AnyEvent HTTP server for PSGI (like Thin)

SYNOPSIS
      twiggy --listen :8080

    See "twiggy -h" for more details.

      use Twiggy::Server;

      my $server = Twiggy::Server->new(
          host => $host,
          port => $port,
      );
      $server->register_service($app);

      AE::cv->recv;

DESCRIPTION
    Twiggy is a lightweight and fast HTTP server with unique features such
    as:

    PSGI
        Can run any PSGI applications. Fully supports *psgi.nonblocking* and
        *psgi.streaming* interfaces.

    AnyEvent
        This server uses AnyEvent and runs in a non-blocking event loop, so
        it's best to run event-driven web applications that runs I/O bound
        jobs or delayed responses such as long-poll, WebSocket or streaming
        content (server push).

        This software used to be called Plack::Server::AnyEvent but was
        renamed to Twiggy. See "NAMING" for details.

    Fast header parser
        Uses XS/C based HTTP header parser for the best performance.
        (optional)

    Lightweight and Fast
        The memory required to run twiggy is 6MB and it can serve more than
        4500 req/s with a single process on Perl 5.10 with MacBook Pro 13"
        late 2009.

    Superdaemon aware
        Supports Server::Starter for hot deploy and graceful restarts.

NAMING
  Twiggy?
    Because it is like Thin <http://code.macournoyer.com/thin/>, Ruby's Rack
    web server using EventMachine. You know, Twiggy is thin :)

  Why the cute name instead of more descriptive namespace? Are you on drugs?
    I'm sick of naming Perl software like
    HTTP::Server::PSGI::How::Its::Written::With::What::Module and people
    call it HSPHIWWWM on IRC. It's hard to say on speeches and newbies would
    ask questions what they stand for every day. That's crazy.

    This module actually includes the longer alias and an empty subclass
    AnyEvent::Server::PSGI for those who like to type more ::'s. It would
    actually help you find this software by searching for *PSGI Server
    AnyEvent* on CPAN, which i believe is a good thing.

    Yes, maybe I'm on drugs. We'll see.

LICENSE
    This module is licensed under the same terms as Perl itself.

AUTHOR
    Tatsuhiko Miyagawa

    Tokuhiro Matsuno

    Yuval Kogman

    Hideki Yamamura

    Daisuke Maki

SEE ALSO
    Plack AnyEvent Tatsumaki

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.