Show HN: An atlas of system designs with interactive architecture diagrams

原始链接: https://atlas-sysdes.vercel.app/

Payment SystemCharges, captures, refunds and payouts across an unreliable external processor, with a ledger that has to balance.The one design where consistency beats availability, and where at-least-once plus idempotent stops being a slogan and becomes the mechanism preventing double charges.ConsistencyWhether every reader sees the latest write, and how soon.IdempotencyRepeating a request has the same effect as doing it once.SagaA multi-step transaction undone by compensating steps on failure.OutboxWrite the event to the database with the data, then publish it.PostgresRelational SQL database, the safe default for transactional data.Core features·ACID transactions·Joins, constraints, foreign keys·Strong consistency·Extensions: JSONB, PostGIS, full-text·Read replicas via streaming replicationWhen to use·Money, orders, anything needing transactions·Relational data queried with joins·The default until scale forces otherwise

相关文章

原文

Payment System

Charges, captures, refunds and payouts across an unreliable external processor, with a ledger that has to balance.

The one design where consistency beats availability, and where at-least-once plus idempotent stops being a slogan and becomes the mechanism preventing double charges.

ConsistencyIdempotencySagaOutboxPostgres

联系我们 contact @ memedata.com