R
R
Roman Rakzin2016-03-23 10:26:37
go
Roman Rakzin, 2016-03-23 10:26:37

Which is faster, storing values ​​in Golang or Redis memory?

Golang is quite fast compared to other languages.
So it became interesting - what would be faster - to store a large amount of data in variables / maps on go or access the Redis server, since it is very fast, and it provides a bunch of ready-made functions that would still need to be written for sampling on go.
Someone faced similar?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
N
Nikita, 2016-03-23
@bitver

Of course, it’s faster to store directly in the program, but the radish provides great opportunities for simple data storage. One way or another, you will have to write some kind of wrapper that stores data in arrays and maps, and this is an extra waste of time and you should also think about others (even about yourself after a while), because by the time you figure out what you wrote, a day will pass. Everyone knows the radish.

U
uvelichitel, 2016-03-23
@uvelichitel

Storages are used for storage, for reuse possibly by several applications. The application's internal data is not saved even with a simple restart.

P
Papa, 2016-03-23
Stifflera @PapaStifflera

The internal in-process cache will be much faster, if only because there will be no need to serialize / deserialize data.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question