Dougal Campbell's geek ramblings

WordPress, web development, and world domination.

Blog Archives

Await and Async Explained with Diagrams and Examples – Nikolay Grozev

“The async/await syntax in JavaScript ES7 makes it easier to coordinate asynchronous promises. If you need to asynchronously fetch data from multiple databases or APIs in a certain order, you can end up with a spaghetti of promises and callbacks. The async/await construct allows us to express such logic more succinctly with more readable and maintainable code.

This tutorial explains JavaScript async/await syntax and semantics with diagrams and simple examples.”

http://nikgrozev.com/2017/10/01/async-await/

Await and Async Explained with Diagrams and Examples – Nikolay Grozev

Linux Load Averages: Solving the Mystery

“In 1993, a Linux engineer found a nonintuitive case with load averages, and with a three-line patch changed them forever from “CPU load averages” to what one might call “system load averages.” His change included tasks in the uninterruptible state, so that load averages reflected demand for disk resources and not just CPUs. ”

A great bit of research explaining not just what “load average” means in general, but how and why Linux load averages are computed differently from other *nix systems.

http://www.brendangregg.com/blog/2017-08-08/linux-load-averages.html

Linux Load Averages: Solving the Mystery