Skip to content

strachan/paxos

Repository files navigation

Paxos Consensus Algorithm (Python Implementation)

This repository contains a Python implementation of the Paxos consensus algorithm. Paxos is a protocol for achieving consensus in a network of unreliable or distributed nodes, commonly used in distributed systems to ensure consistency.

Features

  • Basic Paxos roles: Proposer, Acceptor, Learner
  • Message passing simulation
  • Fault tolerance demonstration
  • Easily extensible for advanced Paxos variants

Installation

  1. Clone the repository:
    git clone https://github.com/yourusername/paxos.git
    cd paxos

Usage

To run the Paxos simulation:

uv run main.py

You can modify parameters or node configurations in main.py or other source files as needed.

Project Structure

  • main.py: Entry point for running the simulation
  • proposer.py, acceptor.py, learner.py: Paxos roles
  • Other .py files: Supporting modules

Contributing

Pull requests and issues are welcome!

License

MIT License

About

Implementation of paxos consensus algorithm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages