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 ]

How Binary Search Algorithm works -- Java example without recursion

Categories

Tags software-engineering backend-development

This older article on java67.com explores and explains binary search algorithm. The binary search algorithm is one of the fundamental Computer Science Algorithms and used to search an element in a sorted input set.

It’s much faster than the linear search which scans each and every element and improves performance from O(n) to O(logN) for searching an element in the array

In order to perform the binary search, you need a sorted array. In this article, we will write a Java program which will take input from the user, both array and the number to be searched and then perform a binary search to find that number in a given array.

In a binary search algorithm, you first find the middle element of the array and compare that with the number you are searching. Several important data structures like binary search tree and binary heap are based upon the binary search algorithm.

Binary search works on the principle of divide and conquer. In this technique, a solution is found by dividing the input on some smaller set using some rules.

For the solution in Java follow the link to original article. Well worth your time!

[Read More]

Building stateful apps with serverless functions and Postgres

Categories

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

Tirumarai Selvan, Product Lead at Hasura, published this guide which explores the different ways to deal with application state when writing business logic in serverless functions. Author uses Postgres as the database when talking about these different approaches, and often use Hasura as one of the glue solutions between your serverless functions and your Postgres database.

Serverless platforms do not allow the developer to write code that holds any long-term state.

The article discusses dfour apporaches, which can be carried forward to your favourite database solution:

  • Approach #1: Connect to Postgres directly from your serverless function
  • Approach #2: Use BaaS APIs from your serverless function
  • Approach #3: Trigger serverless functions on Postgres events with rich event payloads
  • Approach #4: Combine approaches above and use Postgres to orchestrate a workflow with the serverless functions driving state transitions

You will also get UML diagrams explaining each approach. Using some of the patterns described here, developers can extract the most amount of value in writing business logic in serverless functions. Very interesting read!

[Read More]

Enriching event-driven architectures with AWS event fork pipelines

Categories

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

An article by Rachel Richardson and Otavio Ferreira about typical modern application architecture and how implement it using AWS tooling. Many customers are choosing to build event-driven applications in which subscriber services automatically perform work in response to events triggered by publisher services.

These customers often fork event processing into pipelines that address common event handling requirements, such as event storage, backup, search, analytics, or replay.

The article provides:

  • Surfacing the event fork pattern
  • Understanding the catalog of event fork pipelines
  • Event Search & Analytics pipeline
  • Event Replay pipeline
  • Applying event fork pipelines in a use case
  • Deploying event fork pipelines

Event Fork Pipelines is a serverless design pattern and a suite of open-source nested serverless applications, based on AWS SAM. You can deploy it directly from AWS Serverless Application Repository to enrich your event-driven system architecture.

One of the examples is ecommerce application takes orders from buyers through a RESTful API hosted by Amazon API Gateway and backed by a Lambda function. Really good!

[Read More]

Why isn't your current approach to scaling Agile working?

Categories

Tags software-engineering miscellaneous leadership-and-career

This lengthy article from the pens of Cesario Ramos and Kurt Bittner adresses the trouble many companies face when trying to sclae their agility. Even organizations who have agile success in isolated pockets have trouble scaling that agility to the broader organization. The challenges express themselves in familiar patterns.

You can’t scale agility by copying others. You have to learn for yourself what process, structure and policies work in your specific context.

The similarities they describe:

  • Your copy of another organization’s model doesn’t work
  • Your organization’s design conflicts with the goal of agility
  • You are trying to “copy and paste” what works for one team to all teams
  • You are independently optimizing different parts of the organization
  • You are under-invested in agile engineering practices

They then dive in differences between different scaling frameworks reflect deep philosophical differences on the primary challenges in scaling agility. They comapre SAFe, LeSS, and Nexus.

To learn about conclusion follow the link to original article. Nice one!

[Read More]

10 principles for modernizing your company's technology

Categories

Tags software-engineering miscellaneous how-to

This article by Leon Cooper and Milan Vyas contains useful advice how to modernize technology in your company. Today’s technology platforms are not just new versions of legacy systems. They allow you to design a completely new digital enterprise.

The life cycle of information technology is becoming shorter every year. New competitors are disrupting industries by leveraging state-of-the-moment digital practices and processes.

Authors distilled 10 principles that are common to successful efforts:

  • Put customer value first
  • Simplify your architecture
  • Design for flexibility and speed
  • Engage with your workforce and culture
  • Adopt a services mind-set

A modern approach treats technology as a set of services that a company can consume and integrate as needed, without necessarily owning the systems at all. Read to learn the second half of principles and get detailed information on each of them. Simple and effective!

[Read More]

Which programming languages use the least electricity?

Categories

Tags software-engineering miscellaneous

David Cassel is author of this older but interesting article about university research into energy usage data by various programming languages. Can energy usage data tell us anything about the quality of our programming languages? Six researchers in Portugal from three different universities decided to investigate this question, ultimately releasing a paper titled “Energy Efficiency Across Programming Languages.”

A faster language is not always the most energy efficient.

Specifically, they used 10 problems from the Computer Language Benchmarks Game, a free software project for comparing performance which includes a standard set of simple algorithmic problems, as well as a framework for running tests.

Power consumption was measured using a tool from Intel — the Running Average Power Limit tool. The paper took a hard look at the common assumption that a faster program will always use less energy.

Read to learn more!

[Read More]

Understanding microservices with tracing

Categories

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

An interesting article on codacy blog from rtfpessoa. A typical system now is microservices-oriented, distributed and event-driven, and following its flow of information is a complicated endeavor. Moreover, instrumenting such a system to trace the flow of information has, at least historically, been an intricate task.

In this article authors take a look at patterns and tools to implement Distributed Tracing. It is written in Scala tools as examples, but all of the concepts apply to many other languages, for which you can find similar tooling.

Distributed tracing, also called distributed request tracing, is a method used to profile and monitor applications, especially those built using a microservices architecture. In a system each request is assigned a unique ID- (usually injected into the headers). This transaction is normally called a trace.

The article then dives deeply into:

  • Motivation, How and What to trace
  • Distributed Tracing in Scala
  • OpenTracing Implementations

Zipkin and Jaeger are the most well-known open source solutions providing a very good interface for displaying the data sent by your apps.

OpenTracing provides a great specification that allows you to program against a very well-defined API instead of a concrete implementation. Excellent!

[Read More]

Litmus: Journey of storage e2e and chaos framework for Kubernetes

Categories

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

Karthik Satchitanand is the author of this article documenting journey of the Litmus project. Project helps evaluate stateless workloads on Kubernetes. It was which was announced & open-sourced during the KubeCon Europe 2018.

The objective of the Litmus project is to help evaluate stateful workloads on Kubernetes via storage & infrastructure focused end-to-end (e2e) tests that use chaos engineering tools & principles, amongst other aids, with the test cases executed as kubernetes jobs.

The article describes the team journey:

  • Increased application & use-case coverage
  • Refactoring Litmus into a more “microservice-oriented” model
  • Litmus e2e test result visualization
  • Case Study: OpenEBS CI Powered By Litmus

Litmus now includes support for multiple popular stateful applications (Percona MySQL, MongoDB, Apache Cassandra, MongoDB, Minio, Crunchy PostgreSQL, NuoDB, Prometheus etc…) whilst covering common app lifecycle scenarios such as deployment, load, reschedule, scale-up, upgrade & de-provision.

The improvements made to the Litmus project have been possible only due to the amazing support from the community both in terms of feedback. Especially useful for anybody working on opens source project!

[Read More]

CI/CD with Jenkins pipeline: managing infrastructure with Terraform and Docker

Categories

Tags devops-and-ci-cd frontend-and-mobile

An article by Alexander Savchuk in which he continues his series on CI/CD with Jenkins. This blog post attempts to document some of the lessons we learned during their two-year journey with Terraform.

Terraform is really easy to start using for a “Hello world” type of project on a local machine, but the learning curve steepens quite significantly when we start thinking about multiple environments and more complex infrastructure configurations.

The article provides:

  • System overview
  • Project layout
  • Typical deployment
  • Preventing configuration drift
  • Separating application and infrastructure deployments
  • Wrapping up with Docker

Running Terraform deployments in Docker has an added benefit of isolating dependencies specific to each project.

It’s important to be able to run Terraform locally to test your changes when you are developing some infrastructure code. To achieve this, they encapsulate Terraform core along with all providers, external data sources, and wrapper scripts in a Docker image. Excellent read!

[Read More]

Google's EdgeTPU benchmarked vs Intel's Movidius

Categories

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

An article written by Frederik Bode about the first benchmark of Google’s EdgeTPU Dev Board is in. Read about comparison is made against Intel’s (first generation) Movidius Neural Compute Stick, and Google is the clear winner regarding inference time.

The Edge TPU is a small ASIC designed by Google that provides high performance ML inferencing for low-power devices. For example, it can execute state-of-the-art mobile vision models such as MobileNet V2 at 100+ fps, in a power efficient manner.

At the moment Edge TPU supports TensorFlow Lite only.

The article then describes:

  • Benchmark setup including parents and children
  • The data source
  • Usability and plug-and-play
  • Advice around troubleshooting

In conclusion, EdgeTPU far outperforms the first generation Movidius Compute Stick, and confidently awaits its next contender, Intel’s Movidius Neural Compute Stick 2. The speedup generated by the EdgeTPU Dev Board is ~13x. Great for any Raspberry Pi enthusiasts.

[Read More]