Welcome to curated list of handpicked free online resources related to IT, cloud, Big Data, programming languages, Devops. Fresh news and community maintained list of links updated daily. Like what you see? [ Join our newsletter ]

Single-Node Kubernetes on Raspberry Pi with MicroK8s and Ubuntu

Categories

Tags miscellaneous devops-and-ci-cd cloud-and-infrastructure

Blog post by Canonical in which they do excellent job of explaining how to setup and run Ubuntu Server on a Raspberry Pi with MicroK8s on-top to provide a single-node Kubernetes host for development and testing.

Ubuntu Server 18.04 has been ported to run the Raspberry Pi 2/3 which means we can now run snaps and other Ubuntu applications on these devices with ease.

The post then describe in detail:

  • Hardware for the used deployment
  • How to obtain Ubuntu and flash MicroSD card
  • Initial configuration
  • MicroK8s basics & deploying a workload
  • Setting up remote access

Excellent guide with configuration which should work for future releases of Ubuntu Server and Kubernetes. Configuration code and screen grabs also included. Great read for any DevOps enthusiast!

[Read More]

Skaffold for local kubernetes development

Categories

Tags devops-and-ci-cd software-engineering architecture-and-apis

Straight to the point guide from Shane Lee aiming to get you running with kubernetes in no time. Great tutorial for anybody new to kubernetes.

Skaffold is fantastic for local development with kubernetes. You are able to test locally your changes without having to deploy remotely. This helps speed up local development and gives developers confidence in their changes.

Skaffold is a tool to develop containerized applications locally or remotely while deploying them on Kubernetes. It automatically builds and deploys your apps as you change your source code.

Skaffold primarily simplifies the build → deploy → refactor → repeat cycle.

The article then guides you through:

  • Skaffold main features
  • Local development with sample skaffold.yml file
  • Explaining local development workflow
  • Explaining Dockerfile

You will also get links to further reading and tools for kubernetes and skaffold exploration. Nice little gem!

[Read More]

MySQL high availability framework explained – part one

Categories

Tags backend-development data-and-analytics software-engineering devops-and-ci-cd

This is three-part blog series, in which author explains the details and functionality of a High Availability (HA) framework for MySQL hosting using MySQL semisynchronous replication and the Corosync plus Pacemaker stack. Published by Prasad Nagaraj VP Engineering at ScaleGrid.

The article dives into explaining what high availability means for the business. It describes components of HA framework and:

  • Redundancy in infrastructure & data
  • Failure detection & correction mechanism
  • Failover mechanism
  • Application / user redirection mechanism

Based on the above model, author uses the following HA framework for their MySQL hosting at ScaleGrid:

  • 3-Node Master-Slave setup using MySQL semisynchronous replication to provide infrastructure and data redundancy
  • Corosync plus Pacemaker stack to provide failure detection, correction, and failover mechanism
  • DNS mapping or Virtual IP component to provide the application and user redirection mechanism

Each component is then explained including schemas to depict the stack. Excellent!

[Read More]

Common API mistakes and how to avoid them

Categories

Tags frontend-and-mobile backend-development architecture-and-apis devops-and-ci-cd

Thomas Hunter II is author of this guide on hot topic how to avoid common API mistakes. The advice in this article applies to any API. However, some of the issues author considers are easier to encounter when the application is written in a dynamic language, such as JavaScript, versus a more static language, such as Java.

Be sure to follow the Robustness Principle wherever it may apply to your API. Quoting from Wikipedia, this principle is:

Be conservative in what you do, be liberal in what you accept from others.

The good practice mentioned in this article includes:

  • Be stingy with data
  • Represent upstream data as well-defined objects
  • Use forward compatible attribute naming
  • Normalize concepts and attributes
  • Use positive, “happy” names
  • Apply the Robustness Principle (e.g. in regard to HTTP headers)
  • Test all error conditions

Read the rest of the article to learn what advice to follow so you can be sure to avoid some of the most common pitfalls present in modern APIs. Nice one!

[Read More]

Three arguments for why you should write more (as developer)

Categories

Tags miscellaneous software-engineering leadership-and-career

Posted by Marek Zaluski, this is a short list of arguments to persuade any developer to write more. He does not mean write more code. He means write more for humans.

There’s a huge benefit to getting good at writing as a developer. And all it takes it practice. You don’t have to be a good writer to write. In fact, it’s the opposite: you have to write a lot first, and then with time it becomes easier and easier.

The goal of practicing writing is not to write high-quality material. The goal is to get efficient and fast at getting your thoughts into text. It’s a skill that’s for you first, and for the reader second.

The arguments mentioned here:

  • Argument for the collaborators (boosting your value)
  • Argument for the competitors (stand out from the crowd)
  • Argument for the introverts (write for yourself, problem solving)

Start a blog. Write about your projects. Share what you’re learning with the world. These are powerful tactics for career advancement. This is how you get noticed and how you get your foot in the door at your dream company. Excellent advice!

[Read More]

Laravel OOP principles for writing better code explained

Categories

Tags backend-development software-engineering frontend-and-mobile

An blog post by Peter Matisko about PHP framework Laravel and how to use Object Oriented Programming (OOP) for writing better code.

Start your design with layers; your life will become much easier!

Author describes his experiences with “red situation” encountered several times. A client asked him to update some else’s messy code. It was clear to him, that it just wasn’t possible. The programmer himself told the client that he was not able to update it anymore and he had given up.

In the article he does not explain the main principles, but rather shows some examples on how to actually use OOP effectively.

However you should get understanding on few most important terms. Including SOLID principles. SoC — Separation of Concerns, SRP — Single Responsibility Principle, IoC — Inversion of Control, Design patterns, Anti-patterns

One of the most important programming principles is an architectural pattern – simply Layers. Author then explains possible layers of a typical web application in Laravel. Excellent read!

[Read More]

Introduction to ZGC: Scalable and experimental low-latency JVM garbage collector

Categories

Tags backend-development software-engineering

Attila Fejér is author of this interesting read about address issue with managing memory for highly available and scalable systems in Java. Java 11 introduced the Z Garbage Collector (ZGC) as an experimental garbage collector (GC) implementation.

Today, it’s not uncommon for applications to serve thousands or even millions of users concurrently. Such applications need enormous amounts of memory. However, managing all that memory may easily impact application performance.

The article then explains:

  • Memory management
  • Garbage collection
  • GC phase properties
  • GC concepts, including
    • Pointer coloring
    • Multi-mapping
    • Load barriers
    • Marking
    • Relocation
    • Remaping

Great article, in which you will discover that ZGC intends to support large heap sizes with low application pause times.

[Read More]

Running your own DBaaS based on your preferred DBs, Kubernetes operators and containerized storage

Categories

Tags devops-and-ci-cd software-engineering

Posted by Evan Powell this is excellent guide for those who want to get advice about running their own Redis or Cassandra or MongoDB in Kubernetes.

Many enterprises such as financial service and health care providers or those that are concerned about AWS as a competitor choose to run their own Kubernetes on their own environments in part due to concerns about data being viewed by the cloud provider or by some external attacker.

There is a huge number of DB solutions. There are at least eight main types: key value stores, column stores, document stores, graph databases, row stores, in memory database, “synthetic” – able to retain consistency while scaling horizontally, time series databases…

The article then dives into:

  • Composing a stack that better serves the DB
  • Integrating your disparate data sources more easily
  • DevOps autonomy
  • Problems with building and running stateful workloads

And much more in the article. It outlines some of the things to think about when running your own DBaaS. Well worth the read!

[Read More]

How to make Python wait

Categories

Tags backend-development software-engineering leadership-and-career

Posted by Miguel Grinberg this article explains various (in)correct ways of implementing threads for time when it is necessary to pause the running of the program until some external condition occurs.

You may need to wait until another thread finishes, or maybe until a new file appears in a directory on disk that is being watched.

In these and many other situations you will need to figure out a way to make your script wait, and this isn’t as easy as it sounds if you want to do it properly! In this article author shows you a few different ways to wait.

The author then shows you a few different ways to implement this wait, starting from the worst and working the way up to the best:

  • The ugly: busy waiting
  • The bad: busy waiting with sleep
  • The good #1: joining the thread
  • The good #2: waiting on an event
  • The good #3: waiting while displaying a progress percentage

In most cases, the operating system provides efficient wait mechanisms, so all you need to do is find how to access those from Python. Refreshing read!

[Read More]

Running Concourse-based CD on Azure Kubernetes

Categories

Tags frontend-and-mobile devops-and-ci-cd cloud-and-infrastructure architecture-and-apis

Roman Alekseenkov published this straightforward tutorial about getting Concourse based continous delivery running on Azure Kubernetes. The author guides you through what it takes to stand up and operate your own full CD stack on Kubernetes.

Concourse is an open-source continuous thing-doer. You can think of a pipeline as a distributed, higher-level, continuously-running Makefile.

Their deployment contains: 60 CD pipelines, 400 jobs, deployed on Kubernetes, Git is the source of truth for everything — configuration, application data, CD pipelines, and pipeline tasks.

The author then describes architecture and open source components they use with Concourse being the main engine for CD pipelines and Vault as a backend for secrets:

  • CD - Concourse
  • Secrets - Vault (with Consul as a backend)
  • Monitoring & Alerting - Grafana, Prometheus, InfluxDB w/ Telegraf
  • Logging & Alerting — Kibana, Elasticsearch w/ Elastalert
  • Misc - Chartmuseum, Letsencrypt Certificate Manager

For full code and detailed guide with charts and further resources follow the link to original tutorial. Very nice!

[Read More]