genpark-percolator-distributed-transaction-protocol-skill

mcp
Guvenlik Denetimi
Uyari
Health Uyari
  • No license — Repository has no license file
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 7 GitHub stars
Code Gecti
  • Code scan — Scanned 6 files during light audit, no dangerous patterns found
Permissions Gecti
  • Permissions — No dangerous permissions requested

Bu listing icin henuz AI raporu yok.

SUMMARY

Percolator snapshot-isolated distributed transaction protocol with primary-lock two-phase commit

README.md

Percolator Distributed Transaction Protocol Skill

Robust, zero-dependency Python implementation of Google's Percolator Distributed Transaction Protocol for snapshot-isolated ACID transactions built over distributed key-value storage.

Features

  • Primary-Lock 2PC Protocol: Atomicity anchored around a single designated primary cell lock.
  • Snapshot Isolation (SI): Eliminates dirty reads, non-repeatable reads, and phantom reads using monotonic timestamp ordering.
  • Zero External Dependencies: 100% Python standard library.
  • Native MCP Protocol: JSON-RPC 2.0 stdio server compatible with Claude Desktop, Cursor, and Windsurf.

Architecture

sequenceDiagram
    participant Client
    participant PrimaryCell
    participant SecondaryCell
    participant TimestampOracle

    Client->>TimestampOracle: Request start_ts
    TimestampOracle-->>Client: start_ts = 101
    Client->>PrimaryCell: Prewrite (Lock primary + data@101)
    Client->>SecondaryCell: Prewrite (Lock pointing to primary + data@101)
    Client->>TimestampOracle: Request commit_ts
    TimestampOracle-->>Client: commit_ts = 102
    Client->>PrimaryCell: Commit (Write roll@102 -> 101, release lock)
    Client->>SecondaryCell: Asynchronous Commit Rollout

Yorumlar (0)

Sonuc bulunamadi