Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/distcompiler/pgo/systems/pbkvs

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/distcompiler/pgo/systems/pbkvs

  • v0.0.0-20241115165817-0008579c554d
  • Source
  • Go
  • Socket score

Version published
Created
Source

pvkvs

A key-value store that uses primary-backup replication. We used the following document as the reference: http://www.sc.ehu.es/acwlaalm/sdi/replication-schemas.pdf

Assumptions:

  • Crash-stop failure model
  • Having access to a perfect failure detector

In each step of the execution, we consider a replica as the primary that has the lowest ID amongst all alive replicas. Primary synchronously replicates requests to the backup nodes. Clients must send write requests only to the primary replica. The primary always has the same state as backups or the primary is one step ahead. Therefore, reading from a backup might return an old value. In this spec, read requests are sent only to the primary.

If the primary node fails while processing a write request, the client won't receive any response back. If the primary replicated the write request to at least one backup node, the request will be applied to the system, otherwise, it won't. Therefore, the system provides no guarantee when a client don't receive a response for its write request. However, it's fine since the client retries and all operations are idempotent.

We define consistency property for this system as: when primary node sends a response back to a client, all replicas (including primary) have a same state.

FAQs

Package last updated on 15 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc