Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I've worked on a similar problem, although Spring was not involved. We developed pointing against a local instance of MySQL (each developer had one on their box), and the production system was a Master/Slave replication ring. We actually went a step further and co-located the application server with the database server, so there was a four-node cluster at both the application and database level.</p> <p>Our application ran in JBoss. It was fairly light, but did have some serious clustering at the application server level. With all that, we were able to get upwards of 300 requests/second, and sometimes close to 1000 requests/second (depending on the application processing). The database was never a bottleneck - even at those rates, we rarely saw the connection pool go above 5 connections. </p> <p>In both cases (mine and yours), since the JDBC URL points to the local server, there isn't really any functional difference from the perspective of the application. I had to play some interesting configuration games with the auto-increment setup to keep data from getting stepped on; if you only have a single point of deployment (and therefore one point of access to the MySQL instance(s)), you shouldn't need to worry about any of that.</p> <p>So, no code changes, and no configuration changes. It'll just work. Under standard conditions, the fact that you're backed by a Master/Slave instance pair or a cluster won't make a difference, as you'll most likely be pointing at either the Master or the MySQL instance fronting the cluster (in MySQL, the cluster is behind one or more database servers, replicating data).</p> <p>What kinds of load are you looking to handle? MySQL has been <a href="http://blogs.oracle.com/realneel/entry/mysql_scalability_on_nehalem_systems" rel="nofollow">benchmarked</a> in the past at >1000 TPS, but the results tend to vary based on the underlying system characteristics (memory, CPU cores, processor speed), your application's responsiveness and concurrent threads.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload