Understanding Replication in Elasticsearch

August 8, 2017 by

In order to understand how replication works in Elasticsearch, you should already understand how sharding works, so be sure to check that out first. Hardware can fail at any time, and software can be buggy at times. Let’s face it, sometimes things just stop working. The more hardware capacity you add, the higher the risk… read more

Understanding Sharding in Elasticsearch

August 8, 2017 by

Elasticsearch is extremely scalable due to its distributed architecture. One of the reasons this is the case, is due to something called sharding. If you have worked with other technologies such as relational databases before, then you may have heard of this term. Before getting into what sharding is, let’s first talk about why it… read more

Introduction to the Elasticsearch Architecture

August 8, 2017 by

This article is an introduction to the physical architecture of Elasticsearch, being how documents are distributed across virtual or physical machines and how machines work together to form what is known as a cluster. Nodes & Clusters To start things off, we will begin by talking about nodes and clusters, which are at the centre… read more

Basic Math Operators in Python

July 30, 2017 by
Part 5 of 5 in the Python for Beginners series

So far, we haven’t really done anything dynamically yet; we declared and initialized variables and output their values. That’s about to change, because now we are going to be working a bit with the basic math operators that Python provides. Python supports all of the math operations that you would expect. The basic ones are… read more

Adding Comments to Code

July 29, 2017 by
Part 4 of 5 in the Python for Beginners series

The code that you have seen so far, has been pretty easy to understand. But imagine that you write a complicated piece of code or just do something where it is not immediately apparent why. Perhaps it totally made sense to you when you wrote that code, but that might not make case when you… read more

Introduction to Python Data Types

July 29, 2017 by
Part 3 of 5 in the Python for Beginners series

So far, we have only been dealing with printing out and storing text. In Python, text is of the type str, short for string. In addition to text, Python supports several other data types such as bool, int, and float. The bool data type — short for boolean — is exactly like a light bulb,… read more

Working with Variables in Python

July 29, 2017 by
Part 2 of 5 in the Python for Beginners series

So far, we have only been telling Python explicitly what to print. When you code applications, games — or whatever the case might be — you need to have the ability to store and work with different types of data. We do so by using variables. Consider the following, for example. greeting = “Hello World!”… read more

Installing Python & Hello World

July 29, 2017 by
Part 1 of 5 in the Python for Beginners series

Welcome to this tutorial on Python! Whether you are a developer who just haven’t learned Python yet, or if you are completely new to programming, this tutorial is for you! We start at the absolute beginning, so if you are already familiar with programming, then you will find that this Python tutorial starts out pretty… read more