Dancer2-Plugin-DBIC-Async
view release on metacpan or search on metacpan
lib/Dancer2/Plugin/DBIC/Async.pm view on Meta::CPAN
=head1 BENEFITS
The primary benefit of this plugin is B<Concurrency Throughput>. Unlike traditional
database plugins that block your Dancer2 worker during a query, this plugin
delegates I/O to a background worker pool.
=head2 Non-Blocking I/O (Concurrency)
In a traditional sync app, if a database query takes B<500ms>, that L<Dancer2>
worker is B<"busy"> and cannot accept any other incoming requests for that
B<half a second>.
=over 4
=item Sync
B<10 workers> can handle exactly B<10 simultaneous long-running queries>. The
11th user must wait in the B<TCP queue>.
=item Async
( run in 1.192 second using v1.01-cache-2.11-cpan-39bf76dae61 )