Eliminating the dual-write problem in distributed microservices using PostgreSQL and Apache Kafka: implementing the Transactional Outbox Pattern with Debezium CDC, partition key hashing, idempotent consumer processing, and dead-letter retry topologies.