Closed edo888 closed 4 years ago
which can break it @edo888 can you describe it in detail?
I'm not sure, I'm asking your opinion about it. Can this approach handle thousands of concurrent requests without causing issues? Can you see any pitfalls or disadvantages?
Thanks!
@edo888 It should works fine in production。 one thing we can improve is to limit the max concurrency connections to the MySQL server, but it depends on this TODO: https://github.com/openresty/lua-resty-mysql/issues/100
even without this TODO, it should be ok.
Thank you for your input! :)
Hi,
I have implemented a basic setup for connection pooling with resty mysql for php and I would like to know your opinion about it. May be I'm missing an important part, which can break it while using in production.
Nginx is configured to listen to unix socket as follows:
mysql-multiplexing.lua looks like this:
php script to run mysql query:
Thanks!