Tag: Architecture
All the articles with the tag "Architecture".
-
Same cancellation, different events: why I put event classification in one place with an outbox
When the resulting state is the same "cancelled" but the receiver wants a different event depending on the situation, where should the event type be decided? I compared three options: the producer passes a reason, a second detector writes the event, or the consumer classifies the state transition. With an outbox whose rows commit separately, two deciders could announce the same cancellation twice. The example is an unpaid booking passing its payment deadline.
-
Payment deadlines that keep moving: why I kept the timers in a MySQL ledger
I built a delayed job that cancels unpaid bookings once their payment deadline passes. The deadline keeps changing, the cancellation can't be undone, and the change notifications arrive duplicated or out of order. After comparing Temporal, db-scheduler, Quartz, Kafka and Redis, I kept the timers as rows in a MySQL table. This post also records what changed between the design and the implementation, and why.
-
Why You Cannot Simply Add a Second Instance to an In-Memory Pool
A second reputation-pool-cloud instance can grant the same resource twice, issue colliding JVM-local fencing tokens, and overwrite another instance's whole-snapshot checkpoint. This is a deterministic counterexample derived from the current code, not an observed production incident. The article traces the scope of leases, snapshots, memory budgets, and rate limits, then compares tenant sharding, externalized state, and a single writer.
-
Separating the Core from SaaS Revealed a Missing Boundary
How reputation-pool separated a JDK-only public decision engine from a Spring Boot SaaS host, then discovered that its reusable gRPC contract was trapped inside the reference server. The article follows the extraction of a shared adapter module, the resulting dependency direction, and the costs that remain.