Cache selection-ehcache, memcached, Redis

Source: Internet
Author: User
Tags memcached
Reason

One of the reasons for today's slow access to a project is that it is slow to read Oracle, the amount of data is small, the configuration table is ignored, and the business table is 380,000 records. One solution is to use the cache.

So the question is, which caching framework is good?

Ehcache

The project has been using it, but the version may be a bit low. It's really handy, just get a jar bag on the line. Java's preferred.

Memcached

Write in C, more trouble, to install. The data that is integrated with Java does not feel much.

Redis

Also to install, although I have not too much trouble, but compared to Ehcache still a bit of trouble.

My choice.

After reading the first article of the resources below, I decided to choose Ehcache. One familiar, this project is more urgent, tomorrow can not make the qingming may have to work overtime, so my ancestors will not agree.
Two deploy is convenient, memcached and Redis may have to find the platform of people, very troublesome. (Today I found the platform group of people in a bad mood, I did not do anything, he scolded a meal)
Third, look at the Ehcache performance is really good, and this project is actually not so much traffic.

Resources
  • Ehcache memcache Redis Three cache tenor
  • Oscache Memcached Ehcache
  • Ehcache or the choice of memcached (I.)
  • Memcached Java Simple Instance

This article originates from Ouyida3 's CSDN blog
2015.4.2

Cache selection-ehcache, memcached, Redis

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.