Memcached and Sharding
I'm new to both memcached & sharding.
I gone though some articles on both. I need to implement both in my applica开发者_如何转开发tion.
Articles I'd gone through were good but none of them gave me how to use these technologies.
Anyone who can suggest me the links from which I can actually configure them and run the samples.
I want to implement memcached first, then sharding and then both of them together.
Thanks for your help.
Your memcached client will do all of the sharding for you. The harder part is knowing what you should cache so it will actually be beneficial to your application.
In general, you don't want to cache things like database queries. You do want to cache things that you build from database queries that represent higher-level objects in your application.
Having a good API for storage and retrieval of your applications is a good start. You might find the story of memcached a good introduction.
You can below link, hope it will help to get started....
http://sacharya.com/using-memcached-with-java/
http://www.javascool.com/2010/08/31/using-memcached-with-java-applications/
精彩评论