Performance question
Posted: Tue 14 Nov 2006 04:02
Hi there,
in my current project I am looking at a UDP server which is spawning a thread for each incoming request. This would probably peak at around 50 requests per second.
My question is whether I shall open/close a connection to mySQL within each thread or whether I should create a producer/consumer relationship where the UDP threads would lock a list and queue the request (with callback info) and I would have one mySQL thread working those requests and calling back the individual threads with the results.
Or maybe you suggest a completely different approach?
Thanks for your support!
Best regards,
Tillman
P.S. I remember that I once saw an exception stating that I have reached the maximum open connection pool size - what kind of limit is imposed and is that adjustable?
in my current project I am looking at a UDP server which is spawning a thread for each incoming request. This would probably peak at around 50 requests per second.
My question is whether I shall open/close a connection to mySQL within each thread or whether I should create a producer/consumer relationship where the UDP threads would lock a list and queue the request (with callback info) and I would have one mySQL thread working those requests and calling back the individual threads with the results.
Or maybe you suggest a completely different approach?
Thanks for your support!
Best regards,
Tillman
P.S. I remember that I once saw an exception stating that I have reached the maximum open connection pool size - what kind of limit is imposed and is that adjustable?