Adding durability to in-memory data structures

前端 未结 6 1378
长情又很酷
长情又很酷 2021-02-14 20:13

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:42

    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.

提交回复
热议问题