[transfer-dev] Re: Architecting for scalability

2009-06-29 Thread Mark Mandel
> > I don't even want to get into database sharding and I suppose if the > application grows to need sharding, it may also grow past an ORM. > If you start going that far, you may want to look at the Hibernate Sharding project: https://www.hibernate.org/414.html At which point, you may also want

[transfer-dev] Re: Architecting for scalability

2009-06-29 Thread Dan Wilson
That JDBC load balancing option is pretty cool. I hadn't found that option yet and it looks like that may be a viable option for what I'm doing. Maybe this type of configuration really belongs in the JDBC level rather than the Transfer (ORM) level. Based on the options on the table, having a single

[transfer-dev] Re: Architecting for scalability

2009-06-29 Thread Elliott Sprehn
On Jun 29, 2:28 am, Mark Mandel wrote: > > And in that, when doing reads, it would round robin through the read-only > datasources, and then when doing writes, it would simply go to the default > datasource. > ... This is much better, but you can't round-robin except at the end of each request.

[transfer-dev] Re: Architecting for scalability

2009-06-29 Thread Mark Mandel
Doing some more reading... There are some interesting ways to do this at a JDBC level: http://gabrito.com/post/load-balancing-across-mysql-servers-using-jdbc But reading up on this stuff, I stand by my position that having a simple 'read' and 'write' option is just not enough for a framework to c

[transfer-dev] Re: Cache is empty?

2009-06-29 Thread whostheJBoss
It's weird that the IoC hits to the cache keep going up. On Jun 28, 11:53 pm, Mark Mandel wrote: > It * sounds * like Transfer is being loaded on every request... I would put > some statements in TransferFactory's init() function, and see if > that is the case. > > Mark > > On Mon, Jun 29, 2009

[transfer-dev] Re: cascadeDelete()

2009-06-29 Thread whostheJBoss
I am hitting a bit of a logical snag in the composition structure, it seems a little hack-ish, but here... You could do it as I have done below, I'm guessing you just want to know what the arguments would be, so here it is as a structure: deleteThis = instance.Transfer.get("users

[transfer-dev] Re: Architecting for scalability

2009-06-29 Thread Elliott Sprehn
On Jun 28, 5:47 pm, Mark Mandel wrote: > On Sun, Jun 28, 2009 at 6:39 PM, Elliott Sprehn wrote: > > ... > > And a mechanism, to be able to switch between the credentials as neccessary, > which is far more flexibly than just 'read', and 'write'. > The complexity is more than necessary and requir

[transfer-dev] Re: Cache is empty?

2009-06-29 Thread whostheJBoss
When you say being loaded, do you mean reloaded? I'll go set up the logging now, any idea what might be causing this? On Jun 28, 11:53 pm, Mark Mandel wrote: > It * sounds * like Transfer is being loaded on every request... I would put > some statements in TransferFactory's init() function, and