SQL you can file in git
Sambodhi is an ORM that prints CREATE TABLE instead of mutating production behind your back.
Notes from a Go backend engineer who likes clean services, honest latency, and small working programs.
Sambodhi is an ORM that prints CREATE TABLE instead of mutating production behind your back.
Situation: two app replicas boot and both try to CREATE TABLE. Visible SQL is not enough if apply is not exclusive.
envlock encrypts .env with age and puts ciphertext in a bucket I already pay for. The break-glass path is stock age -d.
Situation: laptop wiped, ciphertext still in the bucket. envlock cannot help you if you never copied the age identity.
Situation: the handler wrote 200 and then panics. Recovery middleware cannot unwrite bytes. Here is how I talk about it.
I got tired of not being able to point at the line that turns an error into a JSON 500.
Situation: someone copies the writer cookie. Expiry and HMAC are the whole defense. There is no server-side session table to revoke.
If a stranger can read the folder names and guess the architecture, the design is doing its job.
The disposable-camera API treats readiness as a ping, not a process that happens to be up.
Situation: SIGTERM during an upload. If you os.Exit, the client retries and you double-write. Drain, then close the pool.
A short hello from Abir Sarkar, Software Engineer II on the backend side.