Alec
banner
alec.fail
Alec
@alec.fail
Re'lar. Speaks the name of distributed systems. Fond of failure. Doing platform engineering @ Red Hat. Ex sleeping in recording studios.
Seems to overlap well with @swardley.bsky.social 's evolution axis?
August 10, 2025 at 12:31 PM
Reposted by Alec
here's my short guide to concurrency

(a) don't do it
(b) ok, do the embarrassingly parallel stuff
(c) you can just use one big lock instead of writing async code
(d) global mutable state? sounds like you need a database
(e) fine grained locks? you are writing a specialised database, read a textbook
December 10, 2024 at 11:21 PM
Isn't that it goes 1, 2, then back to 1 that's problematic? 1, 2, 2 would be easier to deal with
December 3, 2024 at 1:13 PM
Thanks! Duplicates are okay, it's relatively easy to make processing idempotent. But out of order... :/
December 3, 2024 at 11:05 AM
Scenario:
1. Publish lsn 1
2. Publish lsn 2
3. Crash (before flushing offset)
4. Read offset
5. Publish lsn 1 and 2 again

The topic now contains 1, 2, 1, 2

What am I missing?
December 2, 2024 at 11:57 PM
Mockito is maybe close to this: github.com/mockito/mock... Every commit is released but as a snapshot. Once a month ish they publish a release version.
GitHub - mockito/mockito: Most popular Mocking framework for unit tests written in Java
Most popular Mocking framework for unit tests written in Java - mockito/mockito
github.com
November 23, 2024 at 8:45 PM
Reposted by Alec
I can't control the world around me, but I can define the person I want to be, and how I contribute to making the world a better place.

I'll spend my days doing that work with intentionality.
November 6, 2024 at 4:25 PM
👋
November 1, 2024 at 11:32 AM