How is data in Reliable Dictionary in Azure Service Fabric persisted to disk

泪湿孤枕 提交于 2019-12-08 13:05:35

问题


How does Azure Reliable Dictionary actually handles data persistence. Is it like SQL which persists mostly all data excepts indexes(i.e. key in our case) on disk or is like hashmap which have everything in memory(i.e. both key and value) and just keeps a backup on disk


回答1:


The current implementation of Reliable Collections store the entire set of data in the memory, and a copy serialized in the disk.

It is required to stay in memory because the data stored in the disks are serialized and a lookup on this data would take too long to deserialize to retrieve the data.

From one of the Q&A sessions they mentioned that are in the plans to have an alternative solution where hot data would be in memory and cold in the disk, but it was just an item in the backlog at time, not sure if they will implement anytime soon.

The following link will also give some extra insights about the collection storage:

Capacity Limit of Reliable Collections in Stateful services

Azure Service Fabric reliable collections and memory

How data serialization affects an application upgrade

Downsides of CommitAsync() w/o any changes to collection



来源:https://stackoverflow.com/questions/51094536/how-is-data-in-reliable-dictionary-in-azure-service-fabric-persisted-to-disk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!