-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: [shards] Sharded Application Architecture in Social Networks
PostPosted: Mon Apr 07, 2008 11:04 pm 
Newbie

Joined: Mon Apr 07, 2008 10:06 pm
Posts: 1
I'm doing a technology assessment of using hibernate shards to implement a social network (eg: facebook-like web application).

Hibernate shards seems to work best if the application can be cleanly split into shards.
But a user on a social network will live in one shard and have many friends on many different shards.
Loading those friend objects from all those different shards seems to defeat the purpose and benefits of shards.
Any advice on using hibernate shards to implement a scalable social network architecture?

It seems like the architecture for a sharded social network application will have limited copies of the global user base in each shard. This way, each shard can access all 'friends' inside the shard. But this would mean storing and updating all that friend data in each shard. Any other suggestions?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 09, 2008 11:44 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
I would not map the association and only store the friend ids. You can then load friends manually.

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.