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 ]

Mozilla's 2019 Internet health report

Categories

Tags miscellaneous how-to leadership-and-career

This annual open-source report examines how humanity and the internet intersect. It is a third annual examination of the internet, its impact on society and how it influences our everyday lives. By Mozilla.

The Report paints a mixed picture of what life online looks like today. We’re more connected than ever, with humanity passing the ‘50% of us are now online’ mark earlier this year.

In the Report’s three spotlight articles, Mozilla unpack three big issues: One examines the need for better machine decision making – that is, asking questions like Who designs the algorithms? and What data do they feed on? and Who is being discriminated against? Another examines ways to rethink the ad economy, so surveillance and addiction are no longer design necessities. The third spotlight article examines the rise of smart cities, and how local governments can integrate tech in a way that serves the public good, not commercial interests.

This Report is designed to be both a reflection and resource for this kind of work. It is meant to offer technologists and designers inspiration about what they might build; to give policymakers context and ideas for the laws they need to write; and, most of all, to provide citizens and activists with a picture of where others are pushing for a better internet, in the hope that more and more people around the world will push for change themselves.

Excellent information in this article and very informative!

[Read More]

How to tune garbage collection in Java

Categories

Tags backend-development software-engineering

If you want to learn more about performance tuning and garbage collection in Java, this article by Tim Ojo is for you.

Garbage collection is the mechanism by which the JVM reclaims memory on behalf of the application when it’s no longer needed. At a high level, it consists of finding objects that are no longer in use, freeing the memory associated with those objects, and occasionally compacting the heap to prevent memory fragmentation.

The garbage collector performs it’s work using one or more threads. But in order to do the job of tracking down object references and moving objects around in memory, it needs to make sure that the application threads are not currently using those objects. The garbage collectors must pause all application threads when performing certain tasks.

The article explains:

  • Sizing the Heap
  • Tuning GC Performance
  • Fixing Concurrent Mode Failures

Good introduction with various parameters and flags explained. Happy tuning!

[Read More]

Inside look at modern web browser

Categories

Tags frontend-and-mobile product-and-design miscellaneous

In this article from Mariko Kosaka she walks you though insides of the Chrome browser from high-level architecture to the specifics of the rendering pipeline. If you ever wondered how the browser turns your code into a functional website, or you are unsure why a specific technique is suggested for performance improvements, then the article and next 3 ones in this series is for you.

In order to understand the environment that the browser is running, we need to understand a few computer parts and what they do.

The article focuses on explaining:

  • CPU – Central Processing Unit
  • GPU – Graphics Processing Unit
  • Executing program on Process and Thread
  • Browser Architecture
  • Which process controls what?
  • The benefit of multi-process architecture in Chrome

The important thing to note here is that these different architectures are implementation details. There is no standard specification on how one might build a web browser. One browser’s approach may be completely different from another.

Wonderful schemas and charts are included for better understanding of the topic. Enjoyable post!

[Read More]

Starting local Kubernetes using kind and Docker

Categories

Tags devops-and-ci-cd

Youichi Fujimoto wrote this guide about running Kubernetes easily in Docker. He shows the steps to run a cluster in single Docker container using kind. You will need to have Go installed as kind is written in it.

_kind – is a tool for running local Kubernetes clusters using Docker container “nodes”.

The article then walks you through:

  • Installing kind
  • Setting up kubectl
  • Deploying first application

kind is a good alternative to minikube because it only uses single container of Docker. Its upside is cross-platform friendliness even with Docker for Windows. By combining Kustomze which was integrated to Kubernetes 1.14, it is pretty straightforward to try it on your local machine. Excellent.

[Read More]

The habit of calm when you're feeling frustrated

Categories

Tags miscellaneous how-to software-engineering business-and-emerging-tech

This article by Leo Babauta is about how to deal with getting frustrated when they feel overloaded, and then shutting down or lashing out.

This probably sounds familiar to some of us. We feel overloaded, and then maybe lash out at someone in frustration and anger.

This comes from the hope that things will be calm, orderly, simple, solid, and under control. The world doesn’t comply with this hope, however, as it is chaotic, disorder, constantly changing, never fixed, groundless. So we get frustrated, angry at others, and feel anxiety.

The article then describe how to create a habit of calm:

  • Catch your habitual pattern as early as you can
  • Practice how to drop into the body
  • Use newfound space to connect to the other person (Maybe you’ve responded to their frustration with frustration of your own)
  • find an appropriate, compassionate response

Read original article how to practice above in more detail. Immeasurably it is more helpful to do these practices than to lash out, which hurts not only the other person, but yourself as well. Great stuff!

[Read More]

Lambda deployment frameworks compared

Categories

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

A comparison piece by Yan Cui about underlying plumbing when deploying Lambda function to AWS. One needs to be able manage the configuration for functions as well as other related resources such as API Gateway, CloudWatch log groups and IAM policies.

Depending on the event sources you would like to use, you also need to provision the necessary EventSourceMapping in order to use Lambda with the likes of Kinesis Streams and SQS.

Engineers want to work with a layer of abstraction that shields developers from these incidental complexities related to CloudFormation and Lambda. This is where deployment frameworks come in.

The article then compares:

  • Serverless framework
  • Aws SAM
  • Terraform
  • Claudia.js
  • Aws Chalice
  • Zappa
  • Appex
  • Up
  • Architect

In terms of features, all the frameworks fulfill the basic requirement of packaging and deploying your code to Lambda very well. You will also get with categorized customizability and opinionatedness. Good job!

[Read More]

Building self-served ETL pipeline for third-party data ingestion

Categories

Tags data-and-analytics architecture-and-apis

An article by Nikolaos Tsipas from Skyscanner with help of colleagues Omar Kooheji and Michael Okarimia about how to solve the puzzle when there is a need to import datasets from external sources, and make them available for querying. Examples of imported data include: analytics metrics, advertising data, and currency exchange rates, all of which are used by Skyscanner engineers and data scientists.

The main entry-point for data at Skyscanner is their Kafka-based streaming platform which allows near real-time processing and archiving.

For a solution that scales across the company they approached the problem with an emphasis on:

  • Minimizing dependency on the Data Platform engineers when onboarding new datasets – preventing our availability from becoming a blocker
  • Moving ETL pipeline ownership to the user – allowing users to own the data they produce
  • Automating boilerplate code and config generation – ensuring that infrastructure, permissions and deployment setup are abstracted away from users
  • Scalability and cost management – maintaining flexibility and cost efficiency, and ensuring the solution is future-proof

They use managed services provided by AWS to enable the various ETL stages and have adopted Cookiecutter for project templating.

Read the rest of this excellent article to learn if they opted for AWS Batch, Glue or both. A high-level illustration of the third-party data ETL pipeline is also provided. Nice one!

[Read More]

How to collect, customize, and centralize Python logs

Categories

Tags backend-development software-engineering devops-and-ci-cd frontend-and-mobile

This is a detailed guide on hot topic – how to collect, customize, and centralize Python logs. From pens of Emily Chang and Nils Bunge. this guide will show you how to configure this module to log all the data you need, route it to your desired destinations, and centralize your logs to get deeper insights into your Python applications.

Authors flashed out some best practices for configuring Python’s standard logging library to generate context-rich logs, capture exception tracebacks, and route logs to the appropriate destinations.

The guide dives into:

  • Customize the priority level and destination of your logs
  • Configure a custom setup that involves multiple loggers and destinations
  • Incorporate exception handling and tracebacks in your logs
  • Format your logs in JSON and centralize them for more effective troubleshooting

The article then provides detailed instructions with advanced usage of logging module that is included in Python’s standard library. Code examples are included. Even describes how to configure multiple loggers. Well thought and thorough article!

[Read More]

Dependency Injection in Scala -- Guide

Categories

Tags backend-development software-engineering

This is well written guide about dependency injection on Scala. Dependency Injection (DI) is a popular pattern which encourages loose coupling between a services’ clients and service implementations.

Dependency Injection is a simple concept, and it can be implemented using relatively few simple constructs. We should avoid over-complicating and over-using containers or frameworks, without thoroughly analysing the costs.

This guide describes how to do Dependency Injection using the Scala language constructs as much as possible, while remaining practical, with the help of the MacWire library where necessary.

DI is all about decoupling client and service code (the client may happen to be another service). Services need to expose information on what dependencies they need. Instead of creating dependent service implementations inside the service itself, references to dependent services are “injected”. This makes the code easier to understand, more testable and more reusable.

The guide then explains:

  • What is Dependency Injection?
  • Other approaches
  • Manual Dependency Injection
  • Using MacWire for wiring
  • Simple scoping
  • Modularising object graph creation
  • Multiple implementations
  • Testing
  • Interceptors
  • Advanced scoping
  • Factories
  • Accessing the object graph dynamically
  • Multiple instances
  • DI in Akka

Well organised and informative resource for any Scala lover. Top notch work!

[Read More]

Kafka-Streams -- road to autoscaling via Kubernetes

Categories

Tags devops-and-ci-cd architecture-and-apis data-and-analytics

This article is based on the talk Scale in / Scale out with Kafka-Streams and Kubernetes from Xebicon'18. Loïc Divad is the author of this article and he aims to present a few advantages that come with specific practices related to Kafka-Streams like containerization and orchestration, and especially autoscaling.

Kafka consumers subscribe to topics and then regularly poll messages from it. When it comes to Kafka-Streams, polling intervals are generally short enough to get a real time processing effect.

The article then explains:

  • What is consumer lag, a reason to scale
  • Message consumption
  • The consumer protocol
  • Kubernetes and the custom metrics support
  • Expose the JMX metrics in a Prometheus format
  • Building the Docker image of the streaming app
  • Metrics aggregation to Stackdriver
  • MetricServer Setup
  • Horizontal Pod Autoscaler configuration

… and much more. With existing tools like Stackdriver and Kubernetes, it was simple to enrich the capabilities of streaming application. There is also a list of useful readings on the same subject. Excellent!

[Read More]