Projects / Chat store / Before you start
Before you start
You need Docker. Start Cassandra in a container and open its shell:
docker run --name chat-cassandra -d cassandra:5
docker exec -it chat-cassandra cqlsh
The first start takes one to two minutes. If cqlsh says it cannot connect, wait a little and try again. At the cqlsh> prompt, each statement ends with a semicolon. We write table names as chat.messages_by_room, with the keyspace in front, so every statement works from any shell.
Each step says what to look for in the result. Your ids, timings and plan details will differ a little.
Message ids are built from times that we write ourselves, so they are the same on every run. Anything that depends on the clock, such as a time to live, is described in the text and will differ.