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