M
M
Matisumi2018-06-06 21:11:51
.NET
Matisumi, 2018-06-06 21:11:51

Where is the best place to keep a "hot cache" in a .net service?

There is a service written in .net c#, there is a database that stores data.
There is a layer of data that is used quite often and, accordingly, is loaded from the database, which is why performance sags. There was an idea to take out this data in a cache. The question is which is better to use? Storing data in collections of objects in the service itself is not an option. There was an idea to use ElasticSearch for this, is this a good option? What are the alternatives?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Stanislav Makarov, 2018-06-06
@Nipheris

And why do you like radishes not radishes? Or another classic ?

A
Alexander Kuznetsov, 2018-06-07
@DarkRaven

You can consider https://msdn.microsoft.com/ru-ru/library/system.ru...
You can use Redis through the stack of libraries from StackExchange - https://github.com/StackExchange/StackExchange.Redis
You will also need it there serializer for cache values, you can use something like https://github.com/kevin-montrose/Jil (or look here https://nickcraver.com/blog/2016/02/17/stack-overf.. . )

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question