N
N
Nikolai2019-12-28 22:27:15
Java
Nikolai, 2019-12-28 22:27:15

Is it possible to cache data in Spark?

For the REST API, I used the Spark framework.
Each client request creates a request for a more complex data source that doesn't "spit out" data very quickly.
Therefore, when there are many requests, the responses come very slowly.
Is there any way to cache the data?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
alfss, 2019-12-28
Demidovets @Nik_o_lay

hazelcast, redis, tarantool, etc

M
mayton2019, 2019-12-29
@mayton2019

In the book of Holden Karau - "Learning Spark" - chapter 9 of Spark SQL, 1-2 pages are devoted to this issue. You can read.
You can cache "somehow" "anything". Redis and other boxed solutions for caches work,
but they have nothing to do with Spark technology. Actually, they can be advised as a universal
advice for any systems that have a back-end. Their integration with Spark is generally a separate issue.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question