Kubernetes Failure Stories

date: 2022-08-28 · Tags: #system-design, #cloud, #good-reading

Really laugh out loudly 🤪🤣🤫 . No Silver Bullet

A compiled list of links to public failure stories related to Kubernetes. Most recent publications on top. -- Kubernetes Failure Stories

DDD, Hexagonal, Onion, Clean, CQRS, … How I put it all together

date: 2022-08-13 · Tags: #good-reading, #system-design

Such detailed and excellent diagrams! I always cannot well understand "Inversion of control" and apply it in real cases, though it seems pretty straightforward.

This post is a part of author's The Software Architecture Chronicles. As the author wrote: In them, I write about what I’ve learned about Software Architecture, how I think of it, and how I use that knowledge.

Those who fail to learn History are doomed to repeat it.

--- George Santayana, The Life of Reason, 1905

References:

  1. DDD, Hexagonal, Onion, Clean, CQRS, … How I put it all together
  2. The Software Architecture Chronicles

Announcing Rust 1.63.0

date: 2022-08-11 · Tags: #rust, #news

Rust team is annoucing 1.63.0 stable today 1.

There are serveral features I quite interested in:

  1. Scoped threads 2
  2. Safety I/O 3
  3. global const initialization for Mutex, RwLock, Condvar

These features help a lot to simplify codes. Also my next forwarding features should be:

  1. keyword generics 45
  2. GATs 6
  3. async traits 7

References:

Footnotes

  1. Announcing Rust 1.63.0

  2. rfcs: scoped-threads

  3. rfcs: io-safety

  4. Announcing the Keyword Generics Initiative

  5. Async overloading

  6. rfcs: Generic Associated Types

  7. rfcs: async_fn_in_traits

Crimes with Python's Pattern Matching

date: 2022-08-06 · Tags: #python, #til

Today, I learn some wired tricks in Python's pattern matching :lol:

You can match on arrays, dictionaries, and custom objects. To support matching objects, Python uses isinstance(obj, class), which checks

  1. If obj is of type class
  2. If obj is a transitive subtype of class
  3. If class is an ABC and defines a __subclasshook__ that matches the type of obj.

Ref: Crimes with Python's Pattern Matching

Not a Yoking Matter (Zero-Copy #1)

date: 2022-08-06 · Tags: #good-reading, #rust

This is a series of articles about zero copy. I haven't read them all yet, but they're looking very promising!