I wrote a practical guide on the transactional outbox pattern in Go.
Write to your database and publish events in one transaction, then use Debezium to stream them from Postgres WAL to Kafka, without the dual write problem.
Read here: https://t.co/qMbrRHbK5u