How can I distribute a unique database already in production?
        Posted  
        
            by 
                JVerstry
            
        on Programmers
        
        See other posts from Programmers
        
            or by JVerstry
        
        
        
        Published on 2012-09-30T15:02:17Z
        Indexed on 
            2012/10/21
            23:18 UTC
        
        
        Read the original article
        Hit count: 358
        
Let's assume a successful web Spring application running on a MySQL or PostgreSQL database. The traffic is becoming so high and the amount of data is becoming so big that a distributed database solution needs to be implemented to address scalability issue. Let's also assume this application is using Hibernate and the data access layer is cleanly separated with DAOs.
Ideally, one should be able to add or remove databases easily. A failback solution is welcome too.
What would be the best strategy to scale this database? Is it possible to minimize sharding code (Shard) in the application?
© Programmers or respective owner