Adding durability to in-memory data structures

前端 未结 6 2216
离开以前
离开以前 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:31

    Yes, you would want to serialize the data to some format - xml, binary, whatever. Depending on the programming languagem this may be built in for you. Java has ObjectStreams, .NET has XmlSerializer and also a BinaryFormatter.

提交回复
热议问题