Posts

1. Cache and Data Consistency in Distributed systems (CAP/PACELC/CRDT)

moved to:  https://software.mihvoi.ro/2026/04/1-cache-and-data-consistency-in.html Abstract There is always a tension between data  C onsistency and system  A vailability when  P artitioning a system across datacenters (think  CAP ). Especially data cache-ing poses interesting challenges. This tension becomes way more acute as soon you have 2 data centers separated by more than 10ms latency. I present below some of the problems along with possible solutions. In the end I will present an elegant solution that maximizes  A vailability while providing the needed C onsistency level for read-after-writes flows. The solution requires the client to carry a monotonic  id  along the flow. I would postulate that any solution where the client don't carry some consistency info will provide a higher latency that the presented solution (see chapter "Flow consistency" ) . The examples below are simplified to be intuitive and easy to understand, however the...

Hell

Being burned in hell for an eternity is not the worst that can happen. Even worse than this, for me, is to be entirely washed out from Existence. Burning in hell looks pretty painful indeed, but it still contains a glimpse of hope. After eons of suffering, a redemption is still possible, potentially. Suffering from burns is still a property of Life, something that suffers must exist and must somewhat live. There is still something that exists in the burning hell... Even worse than this, for me, is to disappear, gradually, then totally, from Existence. The eternal void is more frightening that any eternal pain. The eternal void does not leave any glimpse of hope for a better future. The eternal void is no future at all. * * *

On jobs and welfare

We often hear the expression "this creates jobs". But job creation cannot be good in itself. The state could create well payed jobs for everyone for doing nothing. Even with jobs, if nobody produces food, then people would starve. What is important is welfare creation - goods and services, that is often accompanied by occupied people that have jobs. Such welfare creation should equate to a better life for the ones who consume that created welfare. There are many nuances here. In these days, only a fraction of jobs is actually involved in creating goods and services that directly affect the quality of life. There is a high portion of jobs that are involved in organizing the welfare creation and redistribution. This includes management, state administration, banks, lawyers, police and more. Without a system to control the fair exchange of goods through money, people would tend to break contracts and steal from the welfare created by others. While such "administrative...

Black Friday theory

Better reads: Data Consistency in Distributed System - CAP, PACELC Morality series - a heptalogy This blog is mainly focused on my Philosophical and theoretical ideas. From time to time I have practical posts that are too few to deserve a blog by themselves. I still hope my other work (like above) is even more valuable than such practical article as below. * * * Black Friday is a selling race over the gift budgets: the budgets that have a peak around the start of December What is the lowest possible price on "Black Friday"? Sellers will try to make this unpredictable. However, there are certain price strategies that any rational seller should apply. This can give you hints about the likelihood of obtaining a lower price on Black Friday, Cyber Monday and similar. Why having price cuts at all? Normally, any producer or seller would want to have the highest gain from the products it sales, therefore a higher price is desirable. However, selling more many pieces of a pro...

The Economy theory - goods and money

Welfare Welfare = produced  goods + redistribution curve At the basic level, welfare in society is just a matter of produced good (including services) and the redistribution curve. Money is not welfare in itself, as you cannot eat money. However, money is the system that controls the production and redistribution of goods. People with more money are entitled to consume more goods in this moment. But they can also chose to delay the consumption and have no impact in their welfare for the moment, then consume goods at a later time. Or money can lose value and can be never exchanged for the expected value. Money is motivation to produce goods Money also controls the motivation in the production of goods - like in working for salary or creating a company to get rich. Money permits to save the value of the goods that you produce now and later consume goods produces later - like when you retire. Money is used to redistribute goods to people that cannot produce goods (like unem...

Linux Ubuntu 19.04 full install on USB stick - fix UEFI/Grub

Image
Even better reads: Data Consistency in Distributed System - CAP, PACELC My  Secular Philosophy - Life, God, Knowledge, Morality, Ethics This blog is mainly focused on my Philosophical and theoretical ideas. From time to time I have practical posts that are too few to deserve a blog by themselves. I still hope my other work (like above) is even more valuable than such practical article as below. * * * This article explains how to install Ubuntu 19.04 or similar on USB+UEFI, like you would do it on a hard drive. Regular USB install will likely fail, you need the fix below. Ubuntu installer has a bug when installing on USB using a PC that already has an UEFI boot system (like Windows 10). Such thumb-drive is not only persistent, you can also do regular updates on it, customize the programs, repair the file-system. This is more than just a live "USB Pen Drive Linux" with persistence, it is your full Linux system in your pocket. Only (U)EFI boot is covered here, but most recen...

Linux Grub/UEFI boot system - introduction / howto for Ubuntu 19.04

Better read:  Data Consistency in Distributed System - CAP, PACELC This blog is mainly focused on my Philosophical and theoretical ideas. From time to time I have practical posts that are too few to deserve a blog by themselves. I still hope my other work (like above) is even more valuable than such practical article as below. * * * On short : in order to Boot Linux in UEFI mode: UEFI loads Grub and a minimal grub.cfg from a fat32/EFI partition. Ubuntu uses 2 directories: EFI/Boot and EFI/ubuntu Grub detects the root partition (via UUID) and loads the kernel and initrd from that Linux/ext4 partition. In Ubuntu, the minimal grub.cfg calls another grub.cfg from the ext4 partition - containing boot menu. More details