I’ve been reading SQL Performance Explained book recently and got curious how performant is PostgreSQL with properly configured partial indices. Thus in this blog post I’ll construct a toy task management system example which supports inter-task dependencies.
[Read More]Kubernetes on ARM: a case study
At KrakenSystems we’re working with various IoT devices. They are our main infrastructure for collecting data and sending them to further aggregating pipelines. For now, they are implemented as Beaglebone black devices, armv7l hard float CPU, AM335x 1GHz ARM® Cortex-A8 and only 512MB RAM. In this blogpost we’re covering use case and rationale for using kubernetes on such underpowered devices.
Those devices perform simple services. Reading Modbus registers, or xbee protocol, or attaching to OBD (On-Board Diagnostic for vehicles), parsing the data, serializing in the protobuf format and sending on the message bus.
[Read More]
Golang race detection
Race conditions are pretty nasty bugs. Hard to trace, reproduce and isolate; often occurring under unusual circumstances and often lead to hard to debug issues. Thus it’s best to prevent & detect them early. Thankfully, there’s a production-ready algorithm to tackle the challenge - ThreadSanitizer v2, a battle proven library for compiler support in Go, Rust, C & C++.
First, let’s display a typical race condition. We have a simple global count variable:
[Read More]
Pragmatic tracing
Introduction A distributed system is one in which the failure of a computer you didn't even know existed can render your own computer unusable - Leslie Lamport The fact of life is we’re building bigger, more complex and distributed systems. What used to be single server serving old-style personal home pages turned into the medium.com mediated blog post and various other ecosystems. Simple bulletin board marketplace turning enormous systems of Amazon, eBay, and other online retailers.
[Read More]