Thread: TimesTen and Memcached

memcached is a distributed memory object cache, it is commonly used to cache SQL resultsets, targeted at repetitive queries found in read intensive database web applications. The user application is responsible for managing and populating the cache, memcached does not provide data synchronization with the Oracle database.

For example this is the logic the application developer needs to implement:

* Wherever you go to do a database query, first check the memcache. If the memcache returns an undefined object, then go to the database, get what you're looking for, and put it in the memcache
* To ensure the application does not see stale data, the application must update both the memcache and the database at the same time

memcached does not understand SQL. If a memcached node dies, all data are lost and it is up to the application to reload the data from the source.

TimesTen is a memory optimized SQL relational database, that can run standalone or as a cache in front of an Oracle database. Developers use standard JDBC, ODBC or SQL to access TimesTen. TimesTen provides real-time, updatable caching for Oracle database, the data synchronization between Oracle and TimesTen is automatically handled.

The TimesTen database is persistent and supports full ACID transactions with recovery. TimesTen also offers real-time transactional replication between TimesTen databases for high availability and load sharing.
source:http://forums.oracle.com/forums/thread.jspa?threadID=689296

你可能感兴趣的:(职场,memcached,休闲,and,timesten,Thread:)