NoSQL vs Ehcache caching advise for speeding up read only mysql Database
Posted
by paddydub
on Stack Overflow
See other posts from Stack Overflow
or by paddydub
Published on 2010-05-19T01:53:35Z
Indexed on
2010/05/19
2:20 UTC
Read the original article
Hit count: 845
I'm building a Route Planner Webapp using Spring/Hibernate/Tomcat and a mysql database, I have a database containing read only data, such as Bus Stop Coordinates, Bus times which is never updated. I'm trying to make the app run faster, each time the application is run it will preform approx 1000 reads to the database to calculate a route.
I have setup a Ehcache which greatly improves the read from database times. I'm now setting terracotta + Ehcache distributed caching to share the cache with multiple Tomcat JVMs. This seems a bit complicated. I've tried memcached but it was not performing as fast as ehcache.
I'm wondering if a MongoDb or Redis would be better suited. I have no experience with nosql but I would appreciate if anyone has any ideas. What i need is quick access to the read only database.
© Stack Overflow or respective owner