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 ]

The basics of Kubernetes networking

Categories

Tags devops-and-ci-cd software-engineering

Kamil Lelonek explains everything you need to know about Kubernetes networking in this article. When you deploy your application to a Kubernetes cluster, you usually want to have it accessible from the outside. For real-world production applications, one of the important questions to ask is how to get external traffic into your container.

A ClusterIP is an internally reachable IP for the Kubernetes cluster and all Services within it. For NodePort, a ClusterIP is created firstly and then all traffic is load balanced over a specified port. The NodePort itself is just an iptable rule to forward traffic on a port to a ClusterIP.

The article details:

  • Terminology – pod, node, containers, labels, service
  • NodePort
  • Ingress

In Kubernetes, an Ingress is an object that allows accessing your services from outside a cluster. Boths charts explaining the concepts and example configuration are also included. Excellent!

[Read More]

Monkey patching TLS in Node.js to support self-signed certificates with custom root certificate authorities

Categories

Tags backend-development security-and-privacy frontend-and-mobile product-and-design

David Barral wrote this detailed guide on updating TLS (Transport Layer Security) in Node.js and how to consume services that have been secured with self-signed certificates.

A self-signed SSL Certificate is an identity certificate that is signed by the same entity whose identity it certifies.

The self signed certificate in certificate chain error means that our client sees the certificates but does not know the CA that issued the server certificate and cannot trust it. That’s cool, node is helping us to protect against a man in the middle attack.

The article describes and explains:

  • Self-Signed certificates
  • How to test HTTPS server with self-signed certificates
  • Client Error: self signed certificate in certificate chain
  • How to add extra root certificates to node
  • Monkey patching tls.createSecureContext

A monkey patch is a way for a program to extend or modify supporting system software locally (affecting only the running instance of the program). good read.

[Read More]

Using graph processing for Kafka Stream visualizations

Categories

Tags data-and-analytics

Article by David Allen. Focused on Graph processing for Kafka Stream visualizations. Apache Kafka® is great when one needs to dealing with streams, allowing you to conveniently look at streams as tables. Stream processing engines like KSQL furthermore give you the ability to manipulate all of this fluently.

Graphs are a more natural representation with a lot of grounding in theory for some use cases. So we can improve a portion of just about any event streaming application by adding graph abilities to it.

An article explains how to use graphs on social network example:

  • A stream of friend relationships
  • Graph the network with Neo4j
  • Configuring Neo4j to interact with Kafka
  • Using graph algorithms to recommend potential friends
  • Link prediction algorithms
  • Common Neighbors algorithm
  • Publishing back to Kafka

All of the code and setup discussed in this blog post can be found in this GitHub repository, so you can try it yourself! Charts and all the data are well explained. Nice one!

[Read More]

Getting started with the Combine framework in Swift

Categories

Tags frontend-and-mobile software-engineering testing-and-quality

Combine is a new framework by Apple introduced at WWDC 2019. The framework provides a declarative Swift API for processing values over time. Written by Antoine Van Der Lee.

By adopting Combine, you’ll make your code easier to read and maintain, by centralizing your event-processing code and eliminating troublesome techniques like nested closures and convention-based callbacks.

The article is split into:

  • What is Combine?
  • The basic principles of Combine
  • Memory management in Combine
  • Error types and streams
  • Debugging Combine streams
  • Using Combine with MVVM
  • When should I use Combine?

Plenty of code examples provided. Together with links to more resources for studying Combine. The whole framework is even better explained with its own Swift Playground. Great read!

[Read More]

Pytorch vs. Tensorflow: which framework is best for your deep learning project?

Categories

Tags data-and-analytics software-engineering backend-development miscellaneous

Written by Vihar Kurama. Author takes a look at two popular frameworks and compares them: PyTorch vs. TensorFlow. In simple terms deep learning is an add-on to develop human-like computers to solve real-world problems with its special brain-like architectures called artificial neural networks.

This article dives into:

  • Google’s TensorFlow
  • Facebook’s PyTorch
  • What can we build with TensorFlow and PyTorch?
  • Comparing PyTorch and TensorFlow
  • Pros and cons of PyTorch and TensorFlow
  • PyTorch and TF installation, versions, updates
  • TensorFlow vs. PyTorch: recommendation

One main feature that distinguishes PyTorch from TensorFlow is data parallelism. PyTorch optimizes performance by taking advantage of native support for asynchronous execution from Python.

You will also get links to top projects for each framework and links to useful resources. Nice one!

[Read More]

Learn Linux, 101: Fundamentals of internet protocols

Categories

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

Ian Shields wrote this piece on TCP/IP network fundamentals for Linux system. This tutorial helps you prepare for Objective 109.1 in Topic 109 of the Linux System Administrator (LPIC-1) exam 101.

The aim of this tutorial is to provide enough information about:

  • Understand network masks and Classless Inter-Domain Routing (CIDR) notation
  • Know the differences between private and public dotted quad IP addresses
  • Understand common Transmission Control Protocol (TCP) and User Datagram Protocol (UDP) ports and services such as 20, 21, 22, 23, 25, 53, 80, 110, 123, 139, 143, 161, 162, 389, 443, 465, 514, 636, 993, 995
  • Know the differences between and major features of UDP, TCP and Internet Control Message Protocol (ICMP)
  • Know the major differences between IPv4 and IPv6
  • Know the basic features of IPv6

Great read with detailed information about communication in layers, Internet Protocol Versions, Subnets, classes, masks, and CIDR etc.

[Read More]

Google's Engineering Practices documentations

Categories

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

Google engineering practices are now open source. The pages in this section contain recommendations on the best way to do code reviews, based on long experience.

The primary purpose of code review is to make sure that the overall code health of code base is improving over time. First, developers must be able to make progress on their tasks. If you never submit an improvement to the codebase, then the codebase never improves. Also, if a reviewer makes it very difficult for any change to go in, then developers are disincentivized to make improvements in the future.

The guide has these sections:

  • The standard of code review
  • What to Look For In a Code Review
  • Navigating a CL in review
  • Speed of code reviews
  • How to write code review comments
  • Handling pushback in code reviews

Excellent guide!

[Read More]

What is GitOps and why it might be the next big thing for DevOps

Categories

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

With containers comes a level of agility never before experienced in the world of business. An article by Jack Wallen explaining what GitOps is.

GitOps is a method of workflow that was conceptualized by “everyone who successfully did infrastructure-as-code … is the true creator of the concept of GitOps,” according to Priyanka Sharma, who is the director of technical evangelism at GitLab.

On the surface, it is quite simple. GitOps is centered around using a version control system (such as Git) to house all information, documentation, and code for a Kubernetes deployment, and then use automated directors to deploy changes to the cluster.

Article then deals with:

  • What is GitOps
  • How Does GitOps Work?
  • Why Should You Use GitOps?

First and foremost, GitOps makes your workflow far more efficient. On top of that, using GitOps makes passing SOC 2 compliance far more cost-efficient. And on the topic of saving money. Link to podcast is also included. Good read.

[Read More]

Leveraging the Dependency Injection support in Azure Functions

Categories

Tags cloud-and-infrastructure backend-development frontend-and-mobile architecture-and-apis

Cecil Phillip, Rich Lander are authors of this video in which they walk you though dependency injection for Azure functions (serverless). .NET developers have been taking advantage of dependency injection (DI) to make their code easier to test and manage. The latest update to Azure Functions v2 now has support for registering services with DI.

In this episode, Fabio Cavalcante from the Azure Functions team showcases how this feature works:

  • Why is dependency injection so important for Azure Functions?
  • What had to happen on the engineering side to enable this feature?
  • How to register services using the DI capabilities?
  • How do our functions consume these services?
  • What scenarios does this feature simplify?
  • How can we use HttpClientFactory in Functions?
  • How can we customize ILogger?
  • What other services are registered by default?
  • Is there support for scoped services?

You will also get links to further reading and resources. Excellent!

[Read More]

A deep dive into Hot Module Replacement with Webpack

Categories

Tags frontend-and-mobile backend-development product-and-design

An article by Stanimira Vlaeva about Hot Module Replacement with webpack. webpack is a module bundler. Its main purpose is to bundle JavaScript files for usage in a browser.

Webpack supports a feature called Hot Module Replacement (HMR). HMR exchanges, adds, or removes modules while an application is running, without a full reload. This is significantly faster because the user session is persisted.

Webpack has three closely related terms - module, chunk, and bundle. A module is a piece of JS code that encapsulates data and provides functionality. Modules can depend on one another and thus, form a dependency graph. In the webpack bundling process, a few modules form a chunk. A bundle is an output file, produced by the bundling process. In most cases, each chunk emits exactly one bundle.

However, HMR doesn’t magically reload your app when you change the code. The application itself must know how to react to the incoming changes. Let’s take a closer look at the HMR process.

  • When you make a change, the webpack compiler is responsible for generating a ‘diff’ (hot update) between the old version of the bundle and the new one.
  • The webpack development server handles the transportation logistics for HMR.
  • A special code, injected into your application bundle, fetches the hot update.
  • The module is replaced if an appropriate handler is found.

Video demonstrating difference between Hot Module Replacement and traditional mobile application development cycle is also included. Nice one!

[Read More]