Skip to content

Instantly share code, notes, and snippets.

@elpic
elpic / README.md
Created November 22, 2026 18:59
Hexagonal architecture + event-driven edges: transactional outbox, relay, idempotent consumer (Postgres 16)

Hexagonal core + event-driven edges (runnable demo)

Companion code for the article "Async Doesn't Change Your Architecture. It Exposes It."

Demonstrates four claims on a real Postgres:

  1. the outbox row is written in the same transaction as the state change, so a rolled-back reservation cannot leave an event behind;
  2. the relay is the only thing that publishes, and it publishes after commit;
  3. delivery is at-least-once, so duplicates really do arrive;
@elpic
elpic / asm-card-ledger-main.json
Last active June 29, 2026 17:35
card-ledger ASM badges (shields.io endpoints)
{
"schemaVersion": 1,
"label": "ASM Version",
"message": "0.2.21",
"color": "blue",
"style": "flat"
}

Keybase proof

I hereby claim:

  • I am elpic on github.
  • I am elpic (https://keybase.io/elpic) on keybase.
  • I have a public key ASBwHZovVbIrHdsSZOe_qkVUBMblkOq5HsoqAKXP7Nd6OQo

To claim this, I am signing this object:

@elpic
elpic / file1.txt
Created June 14, 2018 16:56
the description for this gist
‰PNG

IHDR~‹’y¼sRGB®Îé@IDATx은•E×ǰtIJ Šb "Š"vwwcûY¯Ý(&ŠØ…ÝÝ"¢"‚ˆŠ€"©tÃwþ³<—gïÞ»Á.÷þŽïÝûÄ<óÌüf–wϙsΔyöÙg—?ûò›6wÞ|+S¦Œ!€ @€ d²™×%z@€ @€@2 ÉD8‡ @€ d  8¨t € @€ L@2Î!@€ @H@*]‚ @€ $ÀL„s@€ @€@ÀƒJ— @€ @É0$ဠ@€ 0dà Ò%@€ @€@2 ÉD8‡ @€ d  8¨t € @€ L@2Î!@€ @H@*]‚ @€ $ÀL„s@€ @€@ÀƒJ— @€ @É0$ဠ@€ 0dà Ò%@€ @€@2 ÉD8‡ @€ d  8¨t € @€ L@2Î!@€ @H@*]‚ @€ $ÀL„s@€ @€@ÀƒJ— @€ @É0$ဠ@€ 0dà Ò%@€ @€@2œä kò|Ù²e¶téR[¾|yhF™²e-§\9+S¦ÌšlV‰ß­þ¨oå¼/ÒБ”õy@€ @(mk…`‰+ýR~ê׫kM›4¶šÕkؒ¥KlƌìÏ læÌYV¾|ùuV1ªP¡¼­W³¦M›>#aÜX•”!a]7†¬J¿³ámíZµlÙòea¾3ÎÙ0êô€ @ÿ-5nX´h±5kÚÄ