Adding durability to in-memory data structures

前端 未结 6 2215
离开以前
离开以前 2021-02-14 19:53

What are some of the popular techniques you can adopt to add durability to your in-memory data structures (ie) if the process crashes, you can preserve all previously ex

6条回答
  •  攒了一身酷
    2021-02-14 20:30

    I've implemented the "Mrjb" technology in 2 companies' products, which is basically exactly what you've suggested in your question: a "Memory Resident Journal Backed" database, an in-memory data-structure where every change is logged to disk as it happens. And it works great for us!

    http://www.edval.biz/memory-resident-programming-object-databases

    I'd be happy to share our real-world experiences with using this in a production context. I love being able to replay an exact sequence of events or roll back to any point in time.

提交回复
热议问题