Cassandra - Technological watch
What is Cassandra ?
Apache Cassandra is a free and open-source, distributed, wide-column store, NoSQL database management system designed to handle large amounts of data across many commodity servers, providing high availability with no single point of failure.
Cassandra offers support for clusters spanning multiple datacenters, with asynchronous masterless replication allowing low latency operations for all clients.
Cassandra was designed to implement a combination of Amazon’s Dynamo distributed storage and replication techniques combined with Google’s Bigtable data and storage engine model.
Cassandra is based on a structuring in key-value pairs of type consistent over time. Cassandra cannot do joins or subqueries. Cassandra favors the denormalization of data.
Cassandra is an open source tool with 6.9K GitHub stars and 3K GitHub forks. Here’s a link to Cassandra’s open source repository on GitHub.
Cassandra is used by a large number of big companies like Uber, Facebook, Netflix, Instagram, Spotify or Reddit.
How it looks
Here is the documentation of CQL commands
Keyspace
First, we will make a keyspace called “movies”. A keyspace is a top level namespace.
Create table
We want to create a database with this key structure:
Here it is how it will look
The Cassandra Query Language (CQL) is a close relative of SQL.
Insert into database
To insert, the query looks like a SQL request:
Select data
To make a select on the table, we need to create an index.
Example if we want to make a select over the title:
And here is an another example if we want to make a select over the actor:
Conclusion
Cassandra is a distributed database, made to have high performance and high availability. It is easy to scale, with replication and can be deployed across multiple data-centers. It is perfect to manage huge quantities of data (like telemetry data or big-data).
Atomic design - Technological watch
Learn what is the atomic design in less than 5 minutes !
Redis - Technological watch
Learn what is Redis in less than 5 minutes !
Svelte - Technological watch
Learn what is Svelte in less than 5 minutes !
Jenkins - Technological watch
Learn what is Jenkins in less than 5 minutes !
PicoCSS - Technological watch
Learn what is PicoCSS in less than 5 minutes !
OpenAPI / Swagger - Technological watch
Learn what is OpenAPI / Swagger in less than 5 minutes !
HashiCorp Vault - Technological watch
Learn what is HashiCorp Vault in less than 5 minutes !
RabbitMQ - Technological watch
Learn what is RabbitMQ in less than 5 minutes !