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 ]

High availability and scalable reads in PostgreSQL

Categories

Tags software-engineering data-and-analytics cloud-and-infrastructure architecture-and-apis leadership-and-career

A detailed primer on scaling PostgreSQL via streaming replication (with performance measurements) by Lee Hampton – R&D Engineer at TimescaleDB. Despite popularity of PostgreSQL developers often still choose a non-relational (or “NoSQL”) system over PostgreSQL, typically because of one reason: scale. Most developers still underestimate PostgreSQL native scalability.

When it comes to scalability, author found that developers are typically looking for some combination of the following three requirements:

  • Higher insert performance
  • Higher read performance
  • High availability (technically not related to scale, yet still often cited as a reason)

PostgreSQL already natively supports two of those requirements, higher read performance and high-availability, via a feature called streaming replication. PostgreSQL streaming replication leverages the Write Ahead Log (WAL).

The article then digs deeper into:

  • How PostgreSQL streaming replication works
  • What Is The WAL Anyway?
  • WAL and Replication
  • Different Replication Modes For Different Situations

… and much more in this very educational piece. Great work!

[Read More]

How to make WordPress page cache plugins fly with NGINX

Categories

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

Ashley Rich posted an article about improving WordPress performance using NGINX caching. There are a ton of WordPress page caching plugins available, but limiting yourself to cache plugins alone means leaving significant performance improvements on the table.

WordPress page caching plugins alleviate this issue by generating a static HTML version of the request, which is usually saved to the filesystem. Subsequent requests serve the static HTML file, instead of querying the database and re-rendering the page.

One thing is clear, NGINX FastCGI Caching is blazingly fast and relatively easy to configure. However, it does have its quirks, namely, the difficulty with invalidating the cache.

NGINX FastCGI Caching works great when both NGINX and PHP run under the same system user.

The article has following sections:

  • How WordPress page caching plugins work
  • Why caching plugins perform poorly in NGINX
  • Making Simple Cache Fly

Handy NGINX feature is also automatic compression of HTML files before sending them to the browser. Interesting read for any web developer!

[Read More]

Load balancing with HAProxy, Nginx and Keepalived in Linux

Categories

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

Tutorial by Rishi Raj Gautam on linuxhandbook.com focusing on load balancers. Having a proper set up of load balancer allows your web server to handle high traffic smoothly instead of crashing down. In this tutorial, he explains how to setup a load balancer with high availability.

Load balancing is the process of distributing workloads to multiple servers. It is like distributing workloads between day shift and night shift workers in a company.

In this tutorial, we are going to set up a load balancer for web server using Nginx, HAProxy and Keepalived. Out of three the less known is Keepalived. [Keepalived] is an open-source program that supports both load balancing and high availability. It is basically a routing software and provides two types of load balancing:

  • Layer 4 (transport layer)
  • Layer 7 (application layer)

Keepalived can perform following 2 functions very well:

  • Health checking
  • Implements VRRP (virtual redundancy routing protocol) to handle load-balance failover

Detailed instructions and setup together with informational charts in the article. Great read!

[Read More]

Enterprise-level data science: lessons from the front lines

Categories

Tags data-and-analytics ai-and-machine-learning

Blog post by Levi Brackman on best practices for enterprise level data science. Data science, machine learning (ML) and artificial intelligence (AI) are relatively new endeavors for enterprise-level business. Many companies are batch training as well as batch scoring ML models.

Author gives a high-level overview of his experiences building an enterprise-level data science and ML/AI capability from the ground up.

The most important thing to realize when starting a large enterprise data science project that deploys AI is that the correct infrastructure needs to be in place or built out either on-premises or in the cloud.

The article describes:

  • Motivation, challenges, and solutions for building enterprise scale ML / AI capability
  • Infrastructure
  • Talent (beyond data scientists)
  • Enterprise Software
  • Productionalization
  • DevOps
  • AI Evangelism

… and more. Good read!

[Read More]

Data Mining and Predictive Analytics: Things we should care about

Categories

Tags data-and-analytics miscellaneous leadership-and-career

Vikash Kumar from custom application development company Tatvasoft published this post about predicitive analytics. Data and tons of data are found at the core of any organization’s success or failure. Businesses are going with all guns to create a better position in the marketplace by understanding their customer base, making constant improvements in their operations, outperforming their competitors and what not!

Data mining + Domain knowledge => predictive analytics => Business Value

Data mining – is an analytic process used to explore a large amount of data in regards to consistent patterns and systematic relationships between variables.

Predictive analyses, on the other hand, refine data resources, in particular, to extract hidden value from those newly discovered patterns.

Predictive analytics aims to identify the likelihood of future events based on historical data. By using data, mathematical algorithms and machine learning technology, predictive analytics has the potential to provide the best evaluation of what will happen.

Predictive analytics can offer:

  • Valuable insight
  • Increase competitive edge
  • Predict trends
  • Identify new business opportunities in time

Please visit original article to learn more. Nice and to the point definitions!

[Read More]

Simple Kafka producer in Kotlin, tutorial

Categories

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

The first in series of tutorials by Alexis Seigneurin focused on Kafka. Author focuses on producing, consuming and processing messages or events.

The tutorial starts by using the Java client library, in particular its Producer API (later down the road, we will see how to use Kafka Streams and Spark Streaming).

It then explains:

  • How to mock source data
  • All about setting up our project
  • The KafkaProducer
  • How to go about testing the code

You will also learn some nice features of the Kotlin language. One thing to keep in mind, when producing data, is what write guarantee you want to achieve.

There is usually a trade-off to be made between your availability to produce, the latency when producing, and the guarantee that your messages will be safely written.

In the tutorial we choose to have a guarantee that a message will be persisted (although not flushed to disk) before we can produce another message: we will not loose messages but our latency is higher than in a “fire and forget” case.

Code examples are also included. Superb!

[Read More]

The Futures in Scala

Categories

Tags backend-development software-engineering

Álvaro Navarro wrote this interesting short tutorial on Futures in Scala. In it he explains the nuts and bolts of dealing with Futures in Scala and Akka. Futures allow to perform many operations in parallel in an efficient and non-blocking way, but dealing with multiple operations can be a real headache.

In the modern object oriented languages (Java, Scala, Javascript) and frameworks (Akka, Play, Angular, Node.js) exist data structures to handle the asynchrony.

The most relevant are the futures and the promises.

They are also considered useful in several contexts, distributed or not. Some of these ones are:

  • Request-response patterns
  • Long-running computations
  • Database queries
  • RPC (Remote Procedure Call)
  • Reading data from Sockets
  • Input/output data (reading large files from disk)
  • Managing timeouts in services, etc.

The Futures are an important powerful abstraction that represents values which may or may not be currently available, but will be available at some point, or an exception if these values are available. The simplest variation includes two time-dependent states:

  • Completed/determined: the computation is complete and the future’s value is available
  • Incomplete/undetermined: the computation is not yet complete

Find more and code examples in this excellent tutorial!

[Read More]

The agile manager

Categories

Tags leadership-and-career software-engineering miscellaneous cloud-and-infrastructure

An article by Aaron De Smet focusing on the role od agile manager. He tries to explain these fundamental questions: who manages in an agile organization? And what exactly do they do?

In a McKinsey survey (Oct 2017) of more than 2,500 people across company sizes, functional specialties, industries, regions, and tenures, 37 percent of respondents said their organizations are carrying out company-wide agile transformations, and another 4 percent said their companies have fully implemented such transformations.

Small teams, often called “squads”, have a great deal of autonomy. Typically composed of eight to ten individuals, they have end-to-end accountability for specific outcomes and make their own decisions about how to achieve their goals.

The typical agile company employs a dynamic matrix structure with two types of reporting lines:

  • Capability line
  • Value-creation line

Above is then explained in detail and includes “squads”, “chapters”, “tribes” and management roles – e.g. chapter leader, tribe leader and their comparison to traditional managers.

The article also touches on the most difficult challenges for traditional managers tackling the tribe-leader role are letting go of the need to fully “own” all the people working for them

Well written!

[Read More]

Understanding the potential of Artificial Intelligence

Categories

Tags data-and-analytics cloud-and-infrastructure miscellaneous ai-and-machine-learning

An interesting interview with Daniel Hulme, CEO of the AI solutions startup Satalia, offers other chief executives a primer on the technology that will shape the future of work and business. Published on strategy-business.com by Euan Cameron and Deborah Unger.

Lately, Hulme has spent a good portion of his time explaining the ins and outs of artificial intelligence to other CEOs. He sees a big information gap at the top of most companies — yet this is where technology investment decisions are made.

There are two definitions of AI, and the more popular one is the weakest. This first definition [concerns] machines that can do tasks that were traditionally in the realm of human beings.

Humans are the most intelligent things we know in the universe, so when we start to see machines do tasks once constrained to the human domain, then we assume that is intelligence.

But the key word for me in the definition of goal-directed adaptive behavior is adaptive. If your computer system is not making a decision and then learning whether that decision was good or bad and adapting its own internal model of the world, I would argue that it’s not true AI.

A lot of people are saying, “Well, [with] these deep learning models, these data scientists will solve all our problems,” and actually, they won’t. As I said, machine learning, data science, and statistics are great at finding patterns in data.

Eyes opening interview. Please read original and support strategy-business.com!

[Read More]

Six ways to create an amazing agile team

Categories

Tags leadership-and-career software-engineering

The blog post by Kat Boogard for Atlassian on topic of building Agile team. Unfortunately, there’s no magic recipe, secret sauce, or tried-and-true formula to becoming a truly top-notch team.

However, there are some key strategies that can help you make your team an awesome one. The author recommends these:

  • Remember that patience is a virtue
  • Respond to change
  • Focus on results
  • Don’t miss the forest for the trees
  • Seek and use feedback

… and read the article to learn more. In addition to these tips, there are tools and add-ons that can help your agile team work like a dream.

Every member of the team needs to trust that others will hold up their ends of the bargain and get things done when and how they said they would do them.

Nice read!

[Read More]