Better HN
topnewbestaskshowjobs
Log inSign up

alzhi7

21 karma · joined Jun 6, 2025 (1y ago) · 39 submissions

Submissions

comment 6mo ago · link · parent

Having a lot of projects, each has a lot of microservices and dbs, tired of executing the same queries, switching between dbs (yeah, not all clusters are available in monitoring panels).

comment 6mo ago · link · parent

Writing business logic can be interesting. Writing yet another REST wrapper around a table is not. Never. Ever.

comment 7mo ago · link · parent

godedup is a small Go CLI tool that finds structurally duplicate functions in Go code. It does not compare raw text. It does not care if variable names changed. It does not care if string literals changed. It looks at the shape of the code.

4.

Finding Structurally Duplicate Go Functions with AST Hashing(medium.com ↗)

2 points · by alzhi7 · 7mo ago · 2 comments

comment 7mo ago · link · parent

On the day of a real disaster, PostgreSQL will not read your beautiful logs. It will simply ask for the next WAL file.

comment 7mo ago · link · parent

What if I attach the simplest possible web panel to the application?

7.

Web UI in Go? Nothing Can Stop Me(medium.com ↗)

2 points · by alzhi7 · 7mo ago · 1 comment

comment 7mo ago · link · parent

I fully understand you. During my "compiler-writing" experience, I've realized how easy it is to spend weeks making things that at first glance seem to be the easiest in the world (like parsing C89 declarator: "int f(void);"), and to say exactly what the "f(void)" is :)

comment 7mo ago · link · parent

Thanks for the feedback!

Yes, I know about this tool, it's great. I watched videos about how it was developed, what difficulties there were in achieving delta backups, and how the developers also spent a ton of time studying the PostgreSQL source code. And I studied the Wal-G source code myself. I just never had to use it at work, since I was used to pgBackRest and, a bit later, to Barman. Wal-G focuses on cloud and universality (i.e., it's not only used for PG, but has a unified interface for many different storage systems).

Initially, I didn't even have the idea of making a complete, reliable tool. Over time, I started striving toward exactly that. When there was an available hypervisor at work, I set up k8s there and ran my receiver for several dev databases, just to test its operation 24/7, setting aggressive config parameters (frequent compression, unloading, cleanup, frequent backups, etc.). At the same time, I was choosing not small databases, but quite real production ones, with various nightly integrations for data population (external APIs, Airflow, and all that), blobs/tablespaces.

And of course I read your articles, and watched a lot of videos

10.

I dug into the Postgres sources to write my own WAL receiver(medium.com ↗)

53 points · by alzhi7 · 7mo ago · 12 comments

11.

SQL-First PostgreSQL Migrations Without the Magic(medium.com ↗)

3 points · by alzhi7 · 7mo ago · discuss

12.

Continuous cloud-native backup tool for PostgreSQL(github.com ↗)

1 points · by alzhi7 · 8mo ago · discuss

comment 1y ago · link · parent

Simple: No templates, DSLs, or logic in YAML, zero magic.

Predictable: No string substitutions or regex hacks.

Safe: Only native Kubernetes YAML manifests — readable, valid, untouched.

Layered: Patch logic is externalized and explicit via JSON Patch (RFC 6902).

Declarative: Cross-environment deployment with predictable, understandable changes.

14.

Patch-based, environment-aware K8s deploys with plain YAML and zero templating(github.com ↗)

2 points · by alzhi7 · 1y ago · 1 comment

comment 1y ago · link · parent

A lightweight kubectl plugin that brings all-or-nothing semantics to Kubernetes deployments.

It works like kubectl apply -f, but ensures that if any manifest fails to apply or doesn't reach the desired state, everything is rolled back to its original state.

Useful for complex, multi-resource deployments where partial updates can break things.

12