News for hackers. Stuff that matters.
Re:SSL Performance Overhead in MySQL by falcolas on Thursday October 10, 2013 @12:49PM (#6528679)
> If you are connection pooling. Which you should be.

Plain MySQL connections are exceptionally quick to set up - much more so than many other DB options. For this reason, many people have written code that does not use connection pooling (coughPHPcough), and instead create new connections at whim. This is why it's worth pointing the differences out.

As a point of contrast about the side effects of this connection speed: The standard Python MySQL library does not even offer connection pooling - you would have to write your own or use a ORM that provides pooling. On the other hand, the most oft used PostgreSQL Python library offers connection pooling for free.

Not saying one method is better than the other, but it's quite possible to write a performant solution using MySQL that doesn't pool connections.

Re:SSL Performance Overhead in MySQL by HarrisonFisk on Thursday October 10, 2013 @02:18PM (#6529243)
In addition, when you are dealing with many thousand application servers and many hundred database connections, the database will not end up happy having to maintain > 10k connections.

So you will end up needing to add a proxy or connect every time. As you indicated, since MySQL connections are so cheap (ie. you can do > 50k per second), it is faster and easier to create a new connection each time.

Re:SSL Performance Overhead in MySQL by falcolas on Thursday October 10, 2013 @02:26PM (#6529279)
Not just the database, at those quantities of connections, the OS itself starts to have problems.

One frequently implemented solution is to kill off old idle connections, but you may be surprised at how many pooling solutions don't deal with killed connections well (or force the handling on the application at the wrong layer of abstraction).

Re:SSL Performance Overhead in MySQL by jrochkind1 on Thursday October 10, 2013 @10:32PM (#6531161)
> it is faster and easier to create a new connection each time.

Unless you're creating an SSL connection, right?

Did you guys read the same OP I read?

Re:SSL Performance Overhead in MySQL by jrochkind1 on Thursday October 10, 2013 @10:31PM (#6531159)
Oh yeah, I didn't mean to imply it's not worth pointing out.

Only that this is more reminder that if you are using SSL, you are going to lose a lot of performance UNLESS you connection pool. Worth pointing out because a lot of people forget or don't realize, but not really MySQL specific (which is fine).

You say it's possible to write a performant solution using MySQL that doesn't pool connections -- sure, if you don't use SSL, right?