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 ]

What are 4 golden signals for monitoring Kubernetes?

Categories

Tags devops kubernetes infosec app-development

Golden Signals are the meaningful data insights that we use for monitoring and observability of a system. They are the signals vs. noise that can help guide us towards what’s affecting the health of the environment. By Roland Wolters.

The main content you find in the article:

  • Signal vs. Noise
  • Golden Signals for Kubernetes Ops
  • Golden Signals and Kubernetes observability
  • Why is Observability in Kubernetes a multi-dimensional challenge?
  • The eBPF advantage for observability in Kubernetes
  • What can you do with observability and golden signals in Kubernetes?
  • Observability and Kubernetes beyond troubleshooting

Why does Kubernetes present challenges with finding the right signals? Kubernetes gives us a common level of abstraction so that developers can just deploy applications without needing to know everything about the underlying infrastructure. The same wondrous abstraction makes it complex and noisy to monitor what’s actually happening in the Kubernetes environment that is affecting our application.

The 4 golden signals for monitoring Kubernetes – latency, traffic, errors, and saturation – give us a broad coverage of important metrics from which we can derive the state of the environment, including health and utilization. Using eBPF for observability gives the deep insights without the resource overhead and operational complexity of agent-based, traditional, legacy monitoring tools. Nice one!

[Read More]

Optimizing Apache JVMs for Apache Kafka

Categories

Tags performance programming jvm java

Java Virtual Machines (JVMs) impact Apache Kafka® performance in production. How can you optimize your event-streaming architectures so they process more Kafka messages using the same number of JVMs? Podcast by confluent.io.

Gil Tene (CTO and Co-Founder, Azul) delves into JVM internals and how developers and architects can use Java and optimized JVMs to make real-time data pipelines more performant and more cost effective, with use cases.

Improvements in JVMs aren’t yielded with a single stroke or in one day, but are rather the result of many smaller incremental optimizations over time, i.e. “half-percent” improvements that accumulate. Improving a JVM starts with a good engineering team, one that has thought significantly about how to make JVMs better. The team must continuously monitor metrics, and Gil mentions that his team tests optimizations against 400-500 different workloads (one of his favorite things to get into the lab is a new customer’s workload). Good listen!

[Read More]

Azure PostgreSQL Flexible Server exciting new backup and restore enhancements

Categories

Tags database azure sql devops

Backup and restore are key pillars for business continuity and disaster recovery offerings for Azure Database for PostgreSQL Flexible Server. We’re excited to announce new features including Fast Restore, Geo Restore and Custom Restore Points to allow you more fine-grained control on your DR plan to achieve the RPO and RTO objectives. In this post we’ll share an overview of each of these new features. By Varun Dhawan.

The main points mentioned:

  • Fast restore
  • Geo backups and restore
  • Backups and restore blade

Point-in-time restore (PITR) is critical for disaster recovery by allowing recovery from accidental database deletion and data corruption scenarios. Today, PostgreSQL Flexible server performs automatic snapshot backups and allows restoring to latest point or a custom restore point. The estimated time to recover is heavily dependent on the size of transactions logs (WAL) that need to be replayed at the time of recovery. Without having much visibility into the last full backup time, it was never easy to predict the amount of time it takes to restore. Good read!

[Read More]

Bridging security gaps in WFH and hybrid setups

Categories

Tags infosec cio app-development teams

Hybrid and work-from-home (WFH) arrangements take employees from the safety of the more secure and monitored environment of the office. These arrangements blur the division between enterprise and home networks while subsequently expanding the attack surface for both environments. How can these security gaps be bridged? By trendmicro.com.

This guide then walks you over:

  • Threats facing remote work arrangements
  • Phishing
  • Home network threats
  • File transfer risks and unsecure tools
  • VPN vulnerabilities

Organizations and individual users alike should be privy to these threats since in hybrid and WFH setups their consequences can more easily traverse both home and office networks. Given that WFH and hybrid setups test the idea of cybersecurity as a shared responsibility, what can employees and organizations do to prevent threats and bridge the security gap between office and home networks?!

[Read More]

How to unit-test extension methods in C#

Categories

Tags programming tdd app-development

A good coding practice is to keep the view layer in an MVC structure as simple as possible and with no or minimal logic. A common practice to extract common logic that you might want to use in many places is to create an extension method that could be used across views. This moves to logic from the views into a C#-based method. By Linus Ekström.

The article discusses:

  • An example of a non testable implentation
  • Refactoring the code to allow for better testability
  • Applying unit testing

With a rather simple refactoring we are now able to create unit tests and if wanted also applying TDD style coding for your extension methods. Another positive side effect of this is that you also get a better visability of the dependencies by lifting them out from the method that holds the actual implementation. Though the unit test class contains a bit of set up for the first test - adding new tests is really quick once this is done. Good read!

[Read More]

Live streaming commerce: A playbook

Categories

Tags miscellaneous streaming cio how-to cloud

To better assist customers with product discovery, retailers are discovering and leveraging innovative ways like live streaming. Live streaming commerce is an interactive social commerce tool that combines video streaming and TV entertainment formats like talk shows and chat. By Shantala Raman.

All the big retailers in China, like Alibaba, Douyin/TikTok and JD.com use live streaming commerce. The Chinese live streaming market is the biggest and is expected to reach USD 480 billion in 2022, making up for 16.5 percent of total retail sales. The phenomenon is catching on in the West too, with Amazon launching Amazon live in 2019 and luxury players like Gucci and Burberry live streaming their fashion shows. Pinterest has recently come up with Pinterest TV and TV Studio.

Author recommends building a compelling live streaming commerce proposition with the help of the following five foundational pillars:

  • Customer engagement
  • Powerful influencer/KOL network and content
  • Seamless integration of commerce
  • High quality viewing experience
  • Reliable and fast delivery

As you embark on the live streaming commerce journey, carve out your vision beyond the thin slice and MVP to determine the space you would like to operate in. You could choose to be the digital destination for live commerce in the markets you operate in – build the platform to connect your customers to influencers for live interactions. Nice one!

[Read More]

Postgres: Better message queue than Kafka?

Categories

Tags apache sql app-development database messaging

Today author is going to talk about why they made the unconventional decision to build thier logging system on top of Postgres, what worked well, what didn’t work well, and how they did it. By Pete Hunt.

The article captures:

  • Framing the problem
  • Don’t choose the right tool for the job
  • Postgres as a message queue
  • How we measured
  • Scaling the database: archiving and rate limiting
  • Dealing with failure
  • Things that didn’t go well
  • Future work

One of the big advantages of using a replicated, distributed message queue system like Kafka is its strong availability guarantees and ability to recover from failure. What we have found so far is that, because there are fewer moving parts than a large Kafka deployment, we likely have similar uptime with our single, rock-solid Postgres DB. Additionally, modern environments like AWS RDS allow for hot standbys and quick failovers to replicas, which means failures will often result in just a few seconds of downtime. Good read!

[Read More]

CSS-in-JS for React: Linaria vs. Styled components

Categories

Tags frontend app-development css react javascript web-development

When building a web application with React, one of the challenges apart from implementing the main logic of the application is styling and choosing the appropriate styling solutions for your application. By Osah Peter.

CSS-in-JS solutions leverage javascript in styling applications. This has benefits as it improves maintainability, brings in modularity in styling, and introduces “Dynamic styling” to applications. There are various CSS-in-JS solutions. However, we will take a look at the two most popularly used solutions, which are Linaria and Styled-components. We will take a look at their features as well as make comparisons between them based on features, performance, and ecosystem.

Linaria is one of the most popular CSS-in-JS solutions. It has over 7.1K GitHub stars and 260 GitHub forks. Linaria is a Zero-Runtime CSS in JS which means that it converts the CSS-in-JS codes into a separate .css file while creating the build for production. This is similar to how most CSS preprocessors, like SASS and LESS, operate.

Styled-Components is one of the most popular CSS-in-JS solutions. It has over 37.2K GitHub stars and 2.3K GitHub forks. Styled-components enables you to write actual CSS code to style your components. It also creates a layer of abstraction between components and styles, thereby eliminating the direct mapping between them. Good read!

[Read More]

NLU 101: Introduction to Natural Language Understanding

Categories

Tags data-science app-development big-data

Natural Language Understanding (NLU) is a subtopic of Natural Language Processing. It focuses on “comprehension”. NLU deals with users’ intents and what they mean instead of what they say. Thus, some people refer to it as Intent Detection or Intent Detector. By picovoice.ai.

The main points in the article:

  • How does NLU work?
  • Five most commonly used NLU terms
    • Conversational AI
    • Corpus
    • Utterance
    • Intent
    • Entities

Understanding Intents is just one part of the problem. Extracting details and understanding choices are as vital as understanding intents. Entities are also known as Slots or Intent Details. Despite the same intent, the utterances “show me sneakers” and “I want to see running shoes” have different Entities: “sneakers” and “running shoes.” Nice intro to NLU!

[Read More]

Google Firebase with dotnet6

Categories

Tags nosql app-development google gcp serverless

Google Firestore is a document-oriented database that has some neat features for building modern apps as part of the Firebase offering. In most respects, I find it is conceptually similar to AWS Amplify on the surface. Having now worked with both, they feel very different in practice. By Charles Chen.

If you haven’t worked with Google Firebase before, it’s a suite of PaaS tools glued together under one branding and includes:

  • An identity management service similar to AWS Cognito or Azure AD B2C
  • A document database similar to AWS DocumentDB or Azure CosmosDB
  • A real-time sync to the database similar to what’s possible with AWS AppSync and DynamoDB (except without the GraphQL)
  • Integration with the Google Cloud Functions runtime
  • Integration with Google Cloud Storage

The article then guides you through:

  • Workspace setup
  • Backend API in C#
  • Front-end in Vue + TypeScript
  • Adding authentication
  • Back-end validation
  • Real-time subscriptions

There’s a ton of old documentation and examples on the web with very few real examples of working with the emulator from end-to-end with a front-end and back-end API. This article provides you missing bits, it is well explained with all code provided, contains links to other resources and compares competitor resources to Firebase. Very exciting!

[Read More]