In-Memory storage requires serialization / deserialization when storing complex objects such as a C # POCO object.
Can't you just store the data in the cache in memory as an object graph and eliminate this bottleneck? After that, the cached and serialized data is still stored in memory, so why not save the original objects in memory for the maximum possible cache (and perhaps use Named pipes to implement a distributed cache?)
thanks
Waescher , , . , , , Redis/memcached. , concurrency (.. , , ). , .
, , - , . . / (, - 8- ) .
, , / / .
, , . () , ..
Redis Co. ( ), , Redis .
: , . , .
, In-Memory, . .
, , , . ,
Understanding these pros and cons, most or all distributed caches choose to serialize even when the caches are stored in the process. Serialization is also not so high when we consider most use cases.
In addition, the @Waescher dot is also true when the network is involved, all data types must be converted to bytes for transmission.
Source: https://habr.com/ru/post/1626052/More articles:Limiting ajax call only for user login in Flask - pythonCannot change highlight color in navigation bar using Materialize CSS - csshttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1626049/adding-additional-codecs-to-chromium-build-outside-of-chromium-codecs-ffmpeg&usg=ALkJrhiA101F-J5w_wP1tgC74lxd-8IQJgHow to set UILabel line spacing programmatically in Swift? - iosHow can I make a meteor callback that makes asynchronous calls? - methodssum of consecutive javascript numbers - javascriptHow to change runTCPClient timeout duration? - haskellembedding Javascript in SFSafariViewController - iosThe fastest way to find the transition from positive to negative in a vector in R - rUIView extension as UILabel inside grows - iosAll Articles