We are currently working on a web project design, and for this we need to use the java stack.
To begin with, we could use a single database (PostgreSQL in our case), given the limited load. In this case, ORM, like Hibernate, will be a good solution, because we know that the problem of object-relational relations is always one of the most costly and costly, this is the reason to use ORM tools - cheap, saves a lot of time.
But the problem with this is that we are expecting sharding and master / slave (read / write) replication in the database layer, which is a real problem for ORM (at least as far as I know).
Please correct me if I am wrong, and there is a good ORM tool for the Java stack that we could use.
I know that there is a project called Hibernate Shards that could solve the problem, but it never transmitted a beta version, and its development stopped during the year 2007, according to the link.
Using regular Hibernate with a distributed level 2 cache, we could use the number of nodes
with business logic, but this will not solve the problem with the scalability of the database, and we could use only one database for the application.
Bottom line: is there an ORMS for open source / free suitable for our case (java stack), or should we implement it ourselves, even at a significant cost, in order to subsequently provide database scalability and, possibly, other advantages.
Thanks!