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 ]

Go plus services and one goliath project

Categories

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

An article by Kevin Dangoor from Khan Engineering about how Khan Academy is embarking on a huge effort to rebuild our server software on a more modern stack in Go.

Ten years is a long time in technology! Academy chose Python as their backend server language and it has been a productive choice for them. Of course, ten years ago they chose Python 2 because Python 3 was still very new and not well supported.

While considering transformation they were also looking at the languages that have first-class support in Google App Engine. They considered Go and Kotlin. Kotlin is a very expressive language with an impressive set of features. Go, on the other hand, offers simplicity and consistency. The Go team is focused on making a language which helps teams reliably ship software over the long-term.

Finally, we ran a bunch of tests around performance and found that Go and Kotlin (on the JVM) perform similarly, with Kotlin being perhaps a few percent ahead. Go, however, used a lot less memory, which means that it can scale down to smaller instances.

The article then describes their journey:

  • From monolith to services
  • Cleaning house
  • What’s not changing
  • The plan

Good read with some interesting observations! Links to more articles with academy experience included.

[Read More]

Architecture of a large-scale web search engine, circa 2019

Categories

Tags business-and-emerging-tech architecture-and-apis devops-and-ci-cd

This is a long overview of bunch of search engines and their architecture. By Tech & Cliqz on 0x65.dev.

It is important to understand that a web scale search engine is highly complex. It is a distributed system with strong constraints on performance and latency. On top of that it can easily become extremely costly to operate; both in human resource and, of course, in money.

This article explores the technology stack we employ today and some of our choices and decisions, which have been taken and iterated upon over the years, to cater both external and internal users.

The article contains multiple sections:

  • Our search experience—dropdown & SERP
  • Fully automated and near real-time search
  • Deployments -— a historical context
  • Intricacies of a search system
  • Docker containers and container orchestration system
  • Local development with tilt—an end to end use case

… and much more. This really is an in depth article, with plenty of references to open source software used, tooling and further reading. Really great!

[Read More]

Google Cloud Platform free tier vs physical and cloud servers for startups

Categories

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

Over a decade ago, it was a common practice to host server software on dedicated private servers. In the age of cloud computing, this hasn’t changed a lot because many businesses continue using cloud services as usual servers. By topal on hackernoon.

The article explains how you can use Google Cloud Platform free tier benefits during various phases of your startup lifetime:

  • 4 options to host your application
  • Google Cloud Platform free tier benefits
  • Google Cloud Platform for startups
    • For startups before traction
    • For startups getting traction right at the moment
    • Post-traction startup growth

The article also does a good job explaining various options depending on your type of application, e.g. static website hosting, ReactJS single page application hosting, WordPress site hosting or best options for hosting REST APIs. Great advice!

[Read More]

Const assertions in literal expressions in TypeScript

Categories

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

With TypeScript 3.4, const assertions were added to the language. A const assertion is a special kind of type assertion in which the const keyword is used instead of a type name. By Marius Schulz.

TypeScript has a special kind of literal type that’s known as a non-widening literal type. As the name suggests, non-widening literal types will not be widened to a more generic type. For example, the non-widening string literal type “GET” will not be widened to string in cases where type widening would normally occur.

The article dives straight in:

  • Motivation for const Assertions
  • String Literal Types
  • Literal Type Widening
  • Non-Widening Literal Types
  • const Assertions for Literal Expressions
  • Using TypeScript Enums
  • const Assertions for Other Types

Plenty of code examples in this to the point article!

[Read More]

Customer and user perception of value and what it means to designers

Categories

Tags product-and-design frontend-and-mobile miscellaneous leadership-and-career

Often we talk about value and we mean “financial value” a concept that can be measured in dollars and cents or pounds and pennies or whatever currency is near to hand. However, financial value is not the only motivating factor for users and consumers to invest in a product. In fact, it is the perception of value both financial and non-financial that drives the decision to adopt (or not) a product.

It’s often said that it’s important to give a user what they need through product design and not to examine wants at all. It is true that if a product fails to meet a user’s needs – they are unlikely to find it useful and thus, unlikely to adopt it.

The article then explains:

  • Needs, wants, demands
  • Perception of value – four concepts of value
  • Engaging with perceived value
  • What value is enough value?

The more value a user perceives in a product compared to its cost; the more likely they are to adopt that product in their lives. Good read!

[Read More]

Beyond Liskov: Type safe equality in Scala

Categories

Tags backend-development software-engineering

The blog post by Haoyi about type safety equality in Scala. If you are doing something non-trivial to compute a trivial result, it’s probably an programmer error. Universal equality is just one common case of that.

The Scala language, following its Java heritage, allows you to compare any two values for equality regardless of their respective types. This can be very error prone, since a refactor that changes the type of one of your values may silently result in an equality check that can never return true.

This blog post explores how a “safer” equality check is just one of many features that go against the principles that underlie any type system with subtyping, and achieving it requires a fundamental re-thinking of what it means to be “type safe”.

The article then dives into:

  • What are Types and Subtypes?
  • The Liskov Substitution Principle
  • Strawman: Exact-Type Matches
  • Existing violations of Liskov
  • Safety beyond Liskov Substitution
  • What makes a trivial expression?
  • What about Constant Folding?

The traditional definition of type-safety, based on types, subtyping and LSP, is deeply ingrained in almost all statically-typed languages. It allows us to prohibit at-compile-time anyone accidentally trying to perform an operation on an expression which might not support it. However, LSP says nothing about another type of issue: that in which a programmer writes code with trivially known results, which is likely to indicate an error or oversight.

[Read More]

The CSS Handbook: handy guide to CSS for developers

Categories

Tags frontend-and-mobile

Flavio Copes put together this guide to CSS. He wrote this article to help you quickly learn CSS and get familiar with the advanced CSS topics.

CSS, a shorthand for Cascading Style Sheets, is one of the main building blocks of the Web. Its history goes back to the 90’s, and along with HTML it has changed a lot since its humble beginnings.

CSS is often quickly dismissed as an easy thing to learn by developers, or one thing you just pick up when you need to quickly style a page or app. Due to this reason, it’s often learned on-the-fly, or we learn things in isolation right when we have to use them. This can be a huge source of frustration when we find that the tool does not simply do what we want.

This is an excellent source for anybody learning web development. Also available in PDF, ePub and Mobi. Great job!

[Read More]

How we 30x'd our Node parallelism

Categories

Tags architecture-and-apis backend-development cloud-and-infrastructure leadership-and-career devops-and-ci-cd

What’s the best way to safely increase parallelism in a production Node service? What if your application is a bank integration service? That’s a question author’s team needed to answer a couple of months ago. By Evan Limanto.

We were running 4,000 Node containers (or “workers”) for our bank integration service. The service was originally designed such that each worker would process only a single request at a time. This design lessened the impact of integrations that accidentally blocked the event loop, and allowed us to ignore the variability in resource usage across different integrations. But since our total capacity was capped at 4,000 concurrent requests, the system did not gracefully scale. Most requests were network-bound, so we could improve our capacity and costs if we could just figure out how to increase parallelism safely.

This is in depth article, with all of these and more covered:

  • Why they invested in parallelism
  • How they rolled out changes reliably
  • Deploy, investigate, repeat
  • Results and learnings

Never underestimate the importance of having low-level metrics for a system. Being able to monitor GC and memory statistics during rollout was essential. Lengthy article but there is plenty of the value. Highly recommended!

[Read More]

Geospatial queries, reinvented

Categories

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

In this article author goes through the details of how Beat managed to achieve lightning fast queries during the driver dispatching process; getting the nearest driver to a passenger. by Fotis Papadopoulos.

In a nutshell, spatial indexing refers to a rather broad set of techniques that enable fast and efficient indexing of spatial objects in software applications. Spatial objects can represent points on a plane, polygons of arbitrary shapes, lines and pretty much every geometry. It is supported by several mainstream databases, some of which offering very sophisticated and highly scalable APIs, such as PostgreSQL with PostGIS extension.

The article is split into:

  • Spatial indexing
  • The initial approach
  • Boosting our queries
  • Google S2 geometry framework
  • Hashicorp’s Go MemDB
  • Search example

… and much more. Go MemDB is a simple in-memory database, built on immutable radix trees (compact prefix trees). It provides Atomicity, Consistency and Isolation from the ACID set of database properties. Durability is not supported due to its in-memory nature, but you can always backup your data as frequently as you want. Nice one!

[Read More]

Turn your docker image into an auto-scaling Kubernetes deployment using Amazon EKS

Categories

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

Omer Hanetz wrote this piece about his experiences with using EKS as the link between your cloud environment with all its computation power, storage, and security features, and your Kubernetes-based containerized environment with its micro-service and auto-scale capabilities.

Managing a containerized environment, especially when considering security and efficient use of resources, can be an impossible task. Using Kubernetes can help make this task possible, and using a Kubernetes environment managed by your cloud provider can make the integration with all the cloud provider services much easier.

The article covers in depth various aspects of installing, running and managing EKS, e.g.:

  • Install eksctl, kubectl
  • Setting up EKS cluster
  • Setting Up the Kubernetes environment
  • Creating the deployment
  • Auto-Scaling the deployment
  • Exposing an endpoint

… and all the commands plus links to repositories are included. You should also refer to this EKS online workshop provided by Amazon that can also help get you started and introduce you to all the EKS features. Excellent!

[Read More]