On Mon, Mar 19, 2018 at 11:39:28AM +0000, Owen Rudge wrote:
Hi Huw,
I realise it needs to be done in a background thread. I was commenting that creating a *new* thread for each message seems expensive, but this can probably wait for later.
Ah, sorry, I misunderstood that. Yes, a thread pool would be better in the long run. Publish tends to be called once at the start of an application or service, so it's less critical in terms of performance.
Ok, if it typically only gets called once, this is less of an issue.
Thanks,
Huw.