Everything you need to know to setup production ready Microservices with data persistency using Kubernetes

Image for post
Image for post

In the first article we already had a small introduction to Persistent Volumes and today we will dig into it more deeply, we will learn how to setup data persistency and we will write Kubernetes scripts to connect our Pods to a Persistent Volume. In this example, we will use Azure File Storage to store the data from our MongodDB database, but you can use any kind of volume to achieve to same results (like Azure Disk, GCE Persistent Disk, AWS Elastic Block Store, etc.)

If you want to follow along, it is a good idea to read my previous article before. …


Everything you need to know to setup production ready Microservices using Kubernetes

Image for post
Image for post

In the first part of this series we learned about the basic concepts used in Kubernetes, about its hardware structure, about the different software components like Pods, Deployments, StatefulSets, Services, Ingresses and Persistent Volumes and we saw how to communicate between services and with the outside world.

In the previous article we prepared our system infrastructure to deploy our microservices using Azure Cloud.

In this article we will create a NodeJS backend with a MongoDB database, we will write the Dockerfile in order to containerize our application, we will create the Kubernetes Deployment scripts to spin up the Pods, create the Kubernetes Service scripts for define the communication interface between the containers and the outside world, we will deploy an Ingress Controller for request routing and write the Kubernetes Ingress scripts to define the communication with the outside world. …


Everything you need to know to create production ready Azure infrastructure for Microservices deployment using Azure Kubernetes Service (AKS)

Image for post
Image for post
Example Project

In the previous article we learned about the basic concepts used in Kubernetes, about its hardware structure, about the different software components like Pods, Deployments, StatefulSets, Services and we saw how to communicate between services and with the outside world.

This article will be much more practical, we will create all the necessary configuration files to deploy multiple microservices in different languages use MongoDB as data storage. We will also learn about Azure Kubernetes Service and we will present the infrastructure used to deploy our services.

The code used in this article can be found in my StupidSimpleKubernetes-AKS git repository. …


Everything you need to know for starting a project using Kubernetes

Image for post
Image for post

In the era of Microservices, Cloud Computing and Serverless architecture, it is very useful to understand Kubernetes and learn how to use it. However the official documentation of Kubernetes can be hard to decipher especially for the newcomers. In the following series of articles I will try to present a simplified view of Kubernetes and to give examples on how to use it for deploying microservices using different cloud providers like Azure, Amazon, Google Cloud and even IBM.

In this first article of the series, we will talk about the most important concepts used in Kubernetes. In the following articles we will learn how to write configuration files, how to use Helm as a package manager, how to create a cloud infrastructure and easily orchestrate our services using Kubernetes. In the last article we will create a CI/CD pipeline to automate the whole workflow. …


Creating a possible Artificial Intelligence solution to help doctors in the fight against COVID-19

Image for post
Image for post
Image by fernando zhiminaicela via Pixabay

The context of the problem

Once again nature proved its power, demonstrated that even in our civilized world, we are not the masters of our mother nature, but we are part of it.

The Coronavirus disease was identified in December, 2019 and we are still struggling, we don’t know exactly how to fight it, with all the computing power, all the technological inventions and all the smart people around the world who have dreams to colonize Mars or to battle for land on the Moon, we still don’t have any antidote for this apparently new virus.

I think that, instead of having dreams like colonizing Mars or extract minerals from the Moon for money, we should stand with both legs on the ground and search for more useful solutions, which could help us saving our world. Finding new habitable planets and leaving Earth is not a solution, but its just a coward act of survival. We have plenty of more practical problems that needs to be solved, like hunger, pollution, global warming and now COVID-19. We should focus on helping our people, people living in the present who needs help now. Start locally, don’t rush to change the whole world if you cannot even help yourself or your family. …


Image for post
Image for post
Image by xresch via Pixabay>

Before jumping into the step-by-step tutorial on how to deploy a machine learning model using Watson Studio and explain the result using OpenScale, I would like to tell a short story, I would like to explain why do we actually need AI, and why is AI a next step in the evolution of mankind. If you are interested only in the technical part, then feel free to jump to the second section called IBM Watson.

Why do we need tools like AI

Most of the people, if they hear terms like Artificial Intelligence or Machine Learning they think about robots. The reason for this is because big-budget movies presents AI as a human-like machine, that has superpowers with the potential of destroying humanity. …


Image for post
Image for post

I’ve decided to write this article, because in my PhD thesis I’m working on a platform that will offer explainability out-of-the-box. Explainability is just one of the objectives that we want to achieve, but it is a very important part of the research.

Before jumping into the “ugly” technical part of this article, lets understand what is and why do we need eXplainable AI (XAI).

As you all heard, by Artificial Neural Networks (ANN) we are trying to copy or to simulate the internal structure and functioning of the human brain. The crazy part is that we don’t even understand exactly how does the brain work, we are just guessing, and based on something that we don’t know we’ve created the Artificial Neural Networks. The craziest part is that now we want to understand the internal structure of an ANN (which was created based on a guess), we want to see how does it learn high level representations, like classifying images and we want to debug these networks. …


Image for post
Image for post

Summary

In this article, you will learn about SVM or Support Vector Machine, which is one of the most popular AI algorithms (it’s one of the top 10 AI algorithms) and about the Kernel Trick, which deals with non-linearity and higher dimensions. We will touch topics like hyperplanes, Lagrange Multipliers, we will have visual examples and code examples (similar to the code example used in the KNN chapter) to better understand this very important algorithm.

SVM Explained

The Support Vector Machine is a supervised learning algorithm mostly used for classification but it can be used also for regression. The main idea is that based on the labeled data (training data) the algorithm tries to find the optimal hyperplane which can be used to classify new data points. …


Image for post
Image for post
Photo by <a href=”https://stocksnap.io/author/11667">Henry Lorenzatto</a> from <a href=”https://stocksnap.io">StockSnap</a>

Summary

In this article you will learn about a very simple yet powerful algorithm called KNN or K-Nearest Neighbor. The first sections will contain a detailed yet clear explanation of this algorithm. At the end of this article you can find an example using KNN (implemented in python).

KNN Explained

KNN is a very popular algorithm, it is one of the top 10 AI algorithms (see Top 10 AI Algorithms). Its popularity springs from the fact that it is very easy to understand and interpret yet many times it’s accuracy is comparable or even better than other, more complicated algorithms.

KNN is a supervised algorithm (which means that the training data is labeled, see Supervised and Unsupervised Algorithms), it is non-parametric and lazy (instance based). …


Image for post
Image for post
Image by <a href=”https://pixabay.com/users/mmi9-1424200/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=3277335">mmi9</a> from <a href=”https://pixabay.com/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=3277335">Pixabay</a>

Summary:

As I’ve promised, the next topic is Blockchain. In this article, I want to explain the main idea and I will give a simple C# implementation of a blockchain. This article will have a follow-up, an article in which I will explain how to use Bitcoin in .Net and I will give code examples resolving real world problems.

“Blockchain is the future!”

I don’t think so! When people are arguing about blockchain, they are always throwing words and phrases like Trust and Transparency, Cost Effectiveness, Unbreakable, Availability, Simplified Business and Decentralization. When you want to promote something, these are the buzzwords to use, everybody wants trust, cheap service, security etc. …

Czako Zoltan

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store