简体   繁体   中英

In Memory Database as a backup for Database Failures

Is in-memory database a viable backup option for performing read operations in case of database failures? One can insert data into an in-memory database once in a while and in case the database server/web server goes down (rare occurence), one can still access the data present in the in-memory database outside of web server.

If you're going to hold your entire database in memory, you might just as well perform all operations there and hold your backup on disk.

No, since a power outage means your database is gone. Or if the DB process dies, and the OS deallocates all the memory it was using.

I'd recommend a second hard drive, external or internal, and dump the data to that hard drive.

Obviously it probably depends on your database usage. For instance it would be hard for me to imagine StackOverflow doing this.

On the other hand not every application is SO. If your database usage is limited you could take a cue from Mobile Applications which accept the fact that a server may not always be available. And treat your web application as though it were a Mobile Client. See Architecting Disconnected Mobile Applications Using a Service Oriented Architecture

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM