Considering we have a backend written in NodeJS and uses MySQL and Cassandra as it's databases, if we want to add Spark to the system to do some data analyzing stuff like recommendation, can we do it with Cassandra( I mean using Spark + Cassandra) and reach the same result as we could reach with the Hadoop( Spark + Hadoop)?

I want to know what Hadoop can do that Cassandra can not to? Or what would make it essential to use Hadoop alongside with the Spark?

1 Answer 1


You can definitely use Spark directly to perform real-time analytics on your Cassandra database using the Spark Cassandra connector.

Most tech giants use this combination for use cases that include recommender engines, personalisation, show what's trending, and fraud detection all in real-time.

Note that we recommend running analytics on a different Cassandra data centre so online user transactions are not affected by the analytics queries. For example, route app traffic to DC1 while Spark apps read/write to DC2 to isolate analytics and OLTP workloads in their own DCs. Cheers!

  • Thank you very much for the answer! Are there also use cases that we shouldn't use Cassandra or it's better to use Hadoop instead? I like to know more about the distinctions between Cassandra and Hadoop. What can one do and another can't do? Nov 29, 2022 at 5:19
  • They are two different things so you can't compare them. Cassandra is a database used for high velocity use cases at very large scale. Although Hadoop can store data, it is not a database but a framework for analytics over large datasets. Cheers! Nov 29, 2022 at 5:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.