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 ]

Variable fonts: Is the performance trade-off worth it?

Categories

Tags product-and-design software-engineering frontend-and-mobile leadership-and-career

Anna Monus wrote this piece about variable fonts. Variable fonts are popular for two reasons: they expand design possibilities and improve website performance. While the former statement is definitely true since variable fonts do provide infinite typographical choices, the latter only holds under certain conditions.

In this tutorial, author conducts a performance test on a live server to better understand the performance trade-off of variable fonts.

The article dives in:

  • What are variable fonts?
  • How variable fonts impact performance
  • The challenge of testing variable fonts
  • The test cases

… and much more. Comprehensive charts and speed measurements are also provided. Whether using variable fonts is worth it performance-wise depends on how the decrease in HTTP requests and the increase in total page size balance each other out. Nice read!

[Read More]

Deploying complex apps to AWS with Terraform, Ansible, and Packer

Categories

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

An article about how author has recently helped a client migrate a set of complex Ruby on Rails applications to AWS, deploying across multiple environments and regions. By Jake Morrison.

The big driver for improvement, however, was the need to separate customer data by country/region. GDPR compliance is easier if they keep European data hosted in Europe. Customers in China were also complaining about poor network performance crossing the “Great Firewall”.

One of the most important design considerations was handling all their apps and environments with a common framework. If there are too many special cases, the system becomes unmanageable. It’s a false economy to optimize one environment with custom code, but increase the cost of managing the overall system. It is better to have a standard template with configuration options. On the other hand, we can’t have too much configurability, it must be “opinionated”.

The article then goes over solution:

  • Architecture
    • Multiple AWS accounts
    • Sharing resources between accounts
    • Structure
    • Meeting legacy apps half way
    • Deploying with CodeDeploy and Capistrano
    • Encryption

… and more. Very detailed article with all the code and a complete example of deploying an app to AWS. Good read!

[Read More]

Istio and the race for Service Mesh dominance

Categories

Tags devops-and-ci-cd leadership-and-career miscellaneous

In this article by Lawrence E Hecht we look at review of industry studies of the service mesh. They indicate that Istio has an early lead as a preferred control plane.

However, service meshes usually also have a data plane component as well as other value-added functionality. The mix-and-matching of these often open-source components into bundled solutions is an ongoing process and may impact the eventual winners and losers in this space.

A recent report by StackRox shows that adoption of Istio in production doubled over the last year, but usage is still minuscule; Only 4% of the respondents say their organizations have it in production environments.

It is noteworthy that 86% of respondents in both the late 2018 and the December 2019 surveys said their organizations are using Kubernetes as one way to orchestrate containers and microservices.

Read article in whole to get full picture, charts and a bonus. Nice one!

[Read More]

Flexible MariaDB server Query Cache

Categories

Tags backend-development data-and-analytics devops-and-ci-cd miscellaneous

The Server Query Cache (QC) is a well-known feature of MariaDB Server–it caches SQL statements and the corresponding result sets. Today we have faster, solid-state disks and more RAM, so the Query Cache is less important. Reducing reliance on cache alleviates its negative effects, such as mutex blocking. By Anders Karlsson.

A mutual exclusion object (mutex) is a programming object that allows multiple program threads to share a resource (such as a folder) but not simultaneously. Mutex is set to unlock when the data is no longer needed or when a routine is finished. Mutex creates a bottleneck effect. The blocking means only one query can look at the Query Cache at a time and other queries must wait. A query that must wait to look in the cache only to find it isn’t in the cache will be slowed instead of being accelerated.

The article then in some detail describes:

  • Query Cache Flags
  • Query Cache Concerns
  • The MaxScale Query Filter
  • Mutex Work Around
  • Fixing the Query Cache

… and more. Everything is demonstrated in provided code examples. Plus instructions how to test. Good read!

[Read More]

Event-driven servers: An Intuitive Study

Categories

Tags cloud-and-infrastructure miscellaneous architecture-and-apis data-and-analytics

James Lim out together this piece about short explainer of event-driven servers, intended to help readers gain an intuitive understanding of event loops.

It could be useful when:

  • Deciding between different MPMs for Apache HTTP Server
  • Comparing Apache HTTP Server and NGINX
  • Choosing concurrency models for gunicorn
  • Troubleshooting an event loop

In the classic client-server architecture, a server accepts connections from clients, receives data on the new socket, forwards it to the application for processing, and then sends data back to the client on the same socket.

To achieve concurrency, the simplest multi-threaded implementation could create a new thread for each new connection. Once created, the thread is bound to the connection, processing all requests and responses on this connection sequentially. The thread is then destroyed and freed when the connection is closed.

Plenty of charts and terminal commands to help you with better understanding of the concept. Also links to further reading. Great!

[Read More]

5 DevOps challenges to overcome to gain productivity

Categories

Tags devops-and-ci-cd cloud-and-infrastructure leadership-and-career

DevOps brought the development community to the agile era where multiple teams can work in a collaborative environment sharing their skills, knowledge and development responsibilities. But for the same reason, making the DevOps process more productive became more important than ever before. By Atman Rathod.

In the DevOps development process, there are many stumbling blocks and challenges for productivity that developers need to address. From lack of coordination among the team members to the silos of the automation tools to the lack of visibility and poor performance testing and several other challenges, DevOps teams need to address several crucial challenges to ensure optimum productivity.

The article then focuses on the following:

  • Choose the Right Projects
  • Automation Silos
  • Legacy Systems Not Optimized for DevOps
  • Visibility Challenges
  • Performance Testing
  • Manpower Problem

… and more. DevOps will continue to shine as the most effective development approach for modern apps. But for companies to use their full potential, these productivity challenges must be met head-on. Insightful.

[Read More]

Building serverless Scala services with GraalVM native image

Categories

Tags backend-development software-engineering

Using GraalVM’s Native Image tool to create native executables. Author describes the steps necessary to build a native executable from a simple http4s web service. There is also complete code accompanying this example. By Noel Welsh.

Before going into the details it’s worth going over a bit of background. GraalVM is a new Java virtual machine and associated tools that brings increased performance compared to the older Hotspot VM. Native Image is one of the most interesting tools that comes with GraalVM.

The main steps mentioned in the article are:

  • Install GraalVM locally (this is optional, but it is faster to test this way)
  • Writing code (the fun part!)
  • One-off configuration so that GraalVM can handle uses of reflection and Unsafe
  • Creating a Docker image to build the executable (optional if you are developing on the same platform you’re deploying to) and
  • Creating a Docker image to deploy the executable (again, optional)

Creating an executable from Scala code using GraalVM Native Image is quite straightforward. One of the attractions of native executables is faster startup and reduced memory consumption compared to the standard JVM. Great!

[Read More]

Concurnas language taps JVM for high-performance apps

Categories

Tags backend-development software-engineering

Python-like, Java-compatible language aims to ease development of concurrent, distributed, and parallel systems. By Paul Krill.

The Java Virtual Machine is gaining a new language, called Concurnas, which is a free, open source, compiled programming language positioned for use in building high-performance, distributed systems.

Emphasizing concurrency and parallelism, Concurnas is statically typed and garbage-collected, and it uses type inference. Concurnas code is said to be often indistinguishable from Python while offering performance akin to Java.

Some features of Concurnas include:

  • Object orientation, with advanced support for classes including abstract
  • Support for GPU computing
  • Reactive programming support
  • Off-heap memory capabilities

In development for three years, Concurnas has a standalone compiler and a REPL (read-eval-print loop) shell. Nice read!

[Read More]

Five misconceptions on how NodeJS works

Categories

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

NodeJS was born in 2009 and it has gained massive popularity throughout the years because of one reason. It’s just JavaScript! Well, it’s a JavaScript runtime designed to write server-side applications, but the statement that “It’s just JavaScript” is not 100% true. By Deepal Jayasekara.

JavaScript is single-threaded, and it was not designed to run on the server-side where scalability was a critical requirement. With Google Chrome’s high-performance V8 JavaScript Engine, the super cool asynchronous I/O implementation of libuv, and with a few other spicy additions, Node JS was capable of bringing client-side JavaScript to the server-side enabling writing super-fast web servers in JavaScript that are capable of handling thousands of socket connections at a time.

The article is split into:

  • EventEmitter and the Event Loop are related
  • All callback-accepting functions are asynchronous
  • All CPU-intensive functions are blocking the event loop
  • All asynchronous operations are performed on the thread pool
  • NodeJS should not be used to write CPU-intensive applications

Each topic si well explained. You will also get plenty of charts helping to explain the main points discussed in the article. Nice one!

[Read More]

Securing Firefox with WebAssembly

Categories

Tags software-engineering security-and-privacy miscellaneous frontend-and-mobile

Protecting the security and privacy of individuals is a central tenet of Mozilla’s mission, and so they constantly endeavor to make their users safer online. With a complex and highly-optimized system like Firefox, memory safety is one of the biggest security challenges. By Nathan Froyd.

Firefox is mostly written in C and C++. These languages are notoriously difficult to use safely, since any mistake can lead to complete compromise of the program. We work hard to find and eliminate memory hazards, but we’re also evolving the Firefox codebase to address these attack vectors at a deeper level.

The article’s main parts:

  • A new approach – extensive use of both sandboxing and Rust
  • Building a wasm sandbox
  • Ahead-of-time compilation with Cranelift and friends
  • Getting sandboxing correct
  • Tainted data

With the core infrastructure for wasm sandboxing in place, Mozilla can focus on increasing its impact across the Firefox codebase – both by bringing it to all of their supported platforms, and by applying it to more components. Good read!

[Read More]