Deque in Java

Interface Deque (short for Double-Ended Queue) in Java is an interface that defines a data structure that allows us to add or remove elements at the front or rear: This Deque interface extends from Queue interface and it has 2 main implementations: ArrayQueue and LinkedList… Read More

Install Cassandra using Docker Compose

You can use the official Docker Image of Cassandra at https://hub.docker.com/_/cassandra to install it using Docker Compose. The contents of my Docker Compose file are as follows:

The directory containing Cassandra data inside the container is /var/lib/cassandra, you should mount it outside like me… Read More

Install Consul using Docker Compose

From version 1.16, the official Docker Image of Consul is no longer updated at https://hub.docker.com/_/consul. You need to use its official Docker Image at https://hub.docker.com/r/hashicorp/consul to install the latest versions of Consul! To install Consul using Docker Compose, you can define the content of the… Read More