На Wed, 25 Jan 2012 04:27:49 +0600
Nick Knutov <[email protected]> записано:

> Hello all,
> 
> the question may be not about Dancer itself, but what should I know to 
> write Dancer' plugins and applications compatible with EV- and 
> threads-based servers?

You just need to understand that EV-bases application is actually
a single process, thus all the IO should be event-driven as well,
including database requests.

If you accidentally block in a route handler for noticeable amount of time
your server will simply stop answering other queries.

That's why message queues arise -- to offload lasting tasks to a separate
process(es).

-- 
С уважением,
        Роман Галеев,
        +7 347 2-900-145
        www.ncom-ufa.ru
_______________________________________________
Dancer-users mailing list
[email protected]
http://www.backup-manager.org/cgi-bin/listinfo/dancer-users

Reply via email to