[Dancer-users] Dancer and EV/thread-based servers

Роман Галеев ip at ncom-ufa.ru
Thu Jan 26 08:24:36 CET 2012

На Wed, 25 Jan 2012 04:27:49 +0600
Nick Knutov <mail at knutov.com> записано:

> 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

С уважением,
	Роман Галеев,
	+7 347 2-900-145

More information about the Dancer-users mailing list