Boost logo

Boost :

Subject: Re: [boost] ASIO Query
From: Olaf van der Spek (ml_at_[hidden])
Date: 2011-12-21 11:07:21

On Wed, Dec 21, 2011 at 3:27 PM, james_at_[hidden]
<james_at_[hidden]> wrote:
> I'm hoping for opinions on using an io_service per core against a single
> io_service with multiple threads (similar to HTTP Server examples 2 & 3). The
> application is a TCP authentication / proxy server, intended to use all
> available cores.
> - The TCP streams consist of small messages (usually a few hundred bytes) which
> can individually be processed quickly.
> - Connections themselves are fairly long lasting - average around 4 hours,
> although occasionally up to 10-12 hours.
> We're looking for a 'shared nothing' design between threads - database queries
> can be made per-thread (using TLS), for example.

Are database queries blocking or non-blocking? If they're blocking,
won't this also block other connections handled by the same thread?


Boost list run by bdawes at, gregod at, cpdaniel at, john at