Skip to content
~nguyen-huu-trung
05Writing to think clearly

Engineering notes

6 min read

Atomicity in databases and Redis: the bug that never shows up with one user

Read a value, compute, write it back — code that is correct on your laptop and wrong the moment two processes run it. Atomicity is not a performance tweak; it is what keeps the data true.

  • PostgreSQL
  • Redis
  • Concurrency

Read more→

2 min read

Porting a TypeScript monolith to Go without behavioural drift

I wrote the Node build, then moved it to Go myself. That sounds easier — until you notice that “I remember how it behaves” is not an acceptance criterion.

  • Go
  • Migration
  • Testing

Read more→

2 min read

Do not write a separate ACL for your agent

Once an AI assistant can write data, the scary part is not a wrong answer from the model. It is a second permission layer quietly drifting away from the real one.

  • Agentic AI
  • Security
  • Architecture

Read more→