How did FaceBook use Cassandra to search in the mailbox if Caasandra does not have search capabilities?

If you want to find in Kassandra, I was told that you need to use something like ElasticSearch or Solr.

How can this be true if Cassandra was originally created to search Inbox on FaceBook?

"Apache Cassandra was originally developed on Facebook to use its Inbox search feature from Avinash Lakshman (one of the authors of Dynamo Amazon) and Prashant Malik."

http://en.wikipedia.org/wiki/Apache_Cassandra

+6
source share
1 answer

The main idea is that you use the user ID as the key for the section, and then all the information needed to search the mailbox will be grouped as strings in this section. You can then set up several tables like this, with different data types clustered in a section to support different types of searches. Because Cassandra can access a partition in essentially constant time even with millions of users, the system can scale and remain fast when nodes and users are added.

You can read the source system description here in section 6.1 of Facebook Inbox Search: Facebook Cassandra Paper .

The description uses earlier Cassandra terminology, such as supercommands, etc.

+3
source

Source: https://habr.com/ru/post/981497/


All Articles