Project

General

Profile

Actions

csAdr #9 | YANK-0006 · ADR-0006

closed
DD

Store sync state in PostgreSQL

csAdr #9 | YANK-0006 · ADR-0006: Store sync state in PostgreSQL

Added by Diego Developer about 5 hours ago. Updated about 5 hours ago.

Status:
Accepted
Priority:
Normal
Number:
ADR-0006
Format:
MADR
Date:
10/15/2026
Decision makers:
tech lead, backend team
Consulted:
operations
Content:
Locked
Status:
Accepted
Informed:
-
Superseded by:
-

Description

Context and Problem Statement

Yank now runs on several hosts. The SQLite files of ADR-0002 Keep sync state in SQLite files Superseded drift apart. We follow the shared database of Meta › ADR-0002 Use one shared PostgreSQL service for every instance Accepted.

Considered Options

  • Shared PostgreSQL
  • Replicated SQLite files

Decision Outcome

Chosen option: "Shared PostgreSQL", because every host sees the same cursors.

Consequences

  • Good, because no state is lost when two hosts sync.
  • Bad, because Yank now needs a database server.

Hierarchy

Loading diagram...

Dependencies

Loading diagram...

Combined

Loading diagram...


Document references

No data to display


Supersedes <a class="cosmosys-adr-ref cosmosys-adr-ref-superseded cosmosys-adr-ref-retired" title="Keep sync state in SQLite files" href="/issues/5">ADR-0002 Keep sync state in SQLite files</a>.
Your roles cannot decide on this ADR. In this project the decision belongs to: Manager, Developer.

Linked issues


Related items 1 (1 open — 0 closed)

Related to Yank - Feature #YANK-0008: Move sync state to PostgreSQLNew

Actions

RR Updated by Rosa Reporter about 5 hours ago Actions #1

The shared PostgreSQL service has spare capacity.

DD Updated by Diego Developer about 5 hours ago Actions #2

  • Superseded ADR set to ADR-0002
  • Status changed from Proposed to Accepted

DD Updated by Diego Developer about 5 hours ago Actions #3

AM Updated by Ana Manager about 5 hours ago Actions #4

Still the right call after the load tests.

DD Updated by Diego Developer about 5 hours ago Actions #5

Checked again from the form.

Actions

Also available in: PDF Atom