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 ]

A mini-guide: Build a REST API as a Go microservice together with MySQL

Categories

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

In this mini-tutorial, author creates a simple REST-API with a MySQL database. Author have recently found himself coding and deploying a lot of Go microservices and this is his experience and advice. By Johan Lejdung.

The article deals with:

  • Setup the API – routing
  • Database connection – using go-sql-driver
  • Structs & Dependencies
  • Database Migrations

This coupled with a docker-compose file – containing the database – makes development on multiple machines dead-simple. An undeployable microservice is of no use, therefore author added a Dockerfile to package the application for easy distribution.

The built image is a mere 10MB! The code is available in GitHub repo. Short and sweet!

[Read More]

Using Tableau with Kafka: How to build a real-time SQL dashboard on streaming data

Categories

Tags data-and-analytics architecture-and-apis

Scott Morris, Software Engineer at Rockset wrote this piece about building a real-time dashboard for operational monitoring and analytics on streaming event data from Kafka, which often requires complex SQL, including filtering, aggregations, and joins with other data sets.

Apache Kafka is a widely used distributed data log built to handle streams of unstructured and semi-structured event data at massive scales. Kafka is often used by organizations to track live application events ranging from sensor data to user activity, and the ability to visualize and dig deeper into this data can be essential to understanding business performance.

The article is then split into:

  • Streaming data from Reddit
  • Connecting Kafka to Rockset
  • Connecting Rockset to Tableau
  • Creating real-time dashboards

… and more plus all the code is included together with explanatory screen grabs. Interesting not just for aspiring data scientists!

[Read More]

GraphQL introduction and integrating GraphQL into your frontend stack

Categories

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

GraphQL is becoming the new way to use APIs in modern web and mobile apps. Free and powerful, concise course that will introduce you to GraphQL and integrating GraphQL into your frontend stack, in the shortest amount of time possible. By hasura.io.

The tutorial explores the fundamentals of GraphQL and the things that make GraphQL especially suitable for modern applications, like its realtime capabilities! The course is light on opinions so that once you grok the fundamentals you can go on to choose your favorite libraries, tools and tailor your workflow.

Key topics and takeways:

  • GraphQL vs REST
  • GraphQL queries, mutations, subscriptions
  • Setting up a GraphQL client with Apollo
  • Integrating GraphQL queries in your react app
  • Integrating GraphQL mutations with query variables to handle form input
  • Updating local state after a GraphQL mutation (form input) using Apollo cache
  • Optimistic updates to local state and UI after GraphQL mutations for a slick UX
  • Using subscriptions with a subscriptions hook
  • Building a real-time feed with notifications using mutations and subscriptions

Detailed free introduction into GraphQL which will take you less than 2 hours. Excellent!

[Read More]

Object Oriented Programming in Python vs Java

Categories

Tags backend-development software-engineering

An article by Jon Fincher. This article compares and contrasts object-oriented programming support in Python vs Java.

Java programmers making a move to Python often struggle with Python’s approach to object-oriented programming (OOP). The approach to working with objects, variable types, and other language capabilities taken by Python vs Java are quite different. It can make switching between both languages very confusing.

The article explains how to:

  • Build a basic class in both Java and Python
  • Explore how object attributes work in Python vs Java
  • Compare and contrast Java methods and Python functions
  • Discover inheritance and polymorphism mechanisms in both languages
  • Investigate reflection across Python vs Java
  • Apply everything in a complete class implementation in both languages

Code examples for both languages included. It isn’t a primer on object-oriented programming. Readers should have good knowledge of Java, and also be familiar with coding Python.. Nice one!

[Read More]

How to build a custom Kubernetes Ingress Controller in Go

Categories

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

Tutorial written by Caleb Doxsey. It documents his journey to his own Kubernetes Ingress controller. Author rcently switched from Google Kubernetes Engine (GKE) to Digital Ocean as his managed Kubernetes provider. As part of the switch author wanted to also start using a Kubernetes Ingress Controller to map incoming HTTP requests to specific services. After some frustration attempting to get the NGINX Ingress Controller working, he ended up rolling his own in an afternoon.

Even if you have no need to make your own ingress controller, the steps described below are generally useful both for Kubernetes development as well as building HTTP proxies in Go.

The tutorial covers:

  • Overview, including basic Kubernetes setup
  • Ingress Objects
  • Ingress Controllers
  • A Custom Ingress Controller

… and more. Plus each step is well explained and documented with all the code in Golang provided in the tutorial.

[Read More]

Use Kabanero, Appsody, and Codewind to build a Spring Boot application on Kubernetes

Categories

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

An article about how to create a modern, cloud-native application. New open source tools from IBM - Kabanero, Appsody, and Codewind - were created to make it easier for developers to build and deploy cloud-native applications to Kubernetes. By Hafid Haddouti.

This article introduces you to Kabanero and shows you how to use it, along with Appsody and Codewind, to build a Spring Boot application running in Kubernetes.

The article is split into:

  • Prerequisites and installation
  • Create a Spring Boot project with Appsody
  • Codewind integration

Kabanero is a new tool in the young and rapidly changing cloud-native environment. In this article, you saw how Kabanero can integrate with other popular open source projects (Knative, Istio, Tekton etc.) and how out of the box it can handle the configuration, installation, and other infrastructure activities. Good read!

[Read More]

Gentle introduction to Monte Carlo sampling for probability

Categories

Tags data-and-analytics ai-and-machine-learning miscellaneous backend-development

Jason Brownlee wrote this piece about Monte Carlo. Monte Carlo methods are a class of techniques for randomly sampling a probability distribution.

Ddesired quantity can be approximated by using random sampling, referred to as Monte Carlo methods. These methods were initially used around the time that the first computers were created and remain pervasive through all fields of science and engineering, including artificial intelligence and machine learning.

Monte Carlo methods, or MC for short, are a class of techniques for randomly sampling a probability distribution.

This tutorial is divided into three parts; they are:

  • Need for Sampling
  • What Are Monte Carlo Methods?
  • Examples of Monte Carlo Methods

You may be using Monte Carlo methods all the time without thinking about it. Good read, with code examples in NumPy!

[Read More]

Promises in Javascript: Complete Guide for 2019

Categories

Tags frontend-and-mobile backend-development product-and-design

Promises are an important concept that is essential for a JavaScript developer to understand. If this concept is clear, the developer can utilize promises in a variety of ways in their day-to-day lives. An article by Nilesh Sanyal.

In this article, author tried to elaborate on promises in-depth, so you won’t need to go through other resources.

The article covers:

  • What Is a Promise?
  • Promise Use Cases
  • How Promises Work
  • Different States in a Promise
  • Chaining Promises in Javascript
  • How Does Promise.all() Work?
  • Are Javascript Promises Synchronous or Asynchronous?

… and much more. Plenty of code examples explaining the concepts in the article. Nice read for aspiring JavaScript developer.

[Read More]

Fastest way to cache for lazy developers: Angular with RxJS

Categories

Tags frontend-and-mobile backend-development

Dler Ari is author of this piece about HTTP caching and Angular. HTTP caching simply means the browser stores local copies of web resources for faster retrieval the next time the resource is required, thus reducing the number of server calls.

The aim of this article is to show how you can implement caching with only two RxJS operators: publishReplay() and refCount().

The topics covered include:

  • What is caching?
  • Caching with RxJS + two operators
  • A practical example of how to cache
  • Summary

Caching is a viable choice if we want to save numbers of server requests, especially for data that rarely changes such as daily, weekly etc. However, one should always be cautious when dealing with caching and don’t overdo it. Easy!

[Read More]

Mocking is catching

Categories

Tags software-engineering testing-and-quality data-and-analytics

When writing unit tests for a package in R, you might find yourself wondering about how to best test the behavior of your package or you might even wonder how to test at least part of that package of yours that calls a web API or local database without accessing the web API or local database during testing. By R-hub blog.

In this post authors shall offer a round-up of resources around mocking, or not mocking, when unit testing an R package.

The article then deals with:

  • Packages for mocking
  • Web mocking
  • Temporarily modify the global state
  • To mock or… not to mock
  • Stored data from a web API / a database
  • Different operating systems

In this post authors offered a round-up of resources around mocking when unit testing R packages, as well as around not mocking. Good read for anybody in big data business.

[Read More]