26 Jan
2012
26 Jan
'12
7:24 a.m.
На Wed, 25 Jan 2012 04:27:49 +0600 Nick Knutov <mail@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 process(es). -- С уважением, Роман Галеев, +7 347 2-900-145 www.ncom-ufa.ru