Coder Social home page Coder Social logo

packages-paxos's Introduction

SWI-Prolog package paxos

This package provides the library paxos.pl that implements a replicating key-value store of Prolog terms on top of SWI-Prolog broadcast libraries and its TIPC or UDP based extension that allow broadcasting outside the process using networking.

Features and usage

This library allows a cluster of Prolog processes that can communicate using TIPC or UDP to maintain a replicated key-value store. Both keys and values are arbitrary ground Prolog terms. Nodes may be dynamically added and removed from the cluster while the cluster maintains a shared view of the available nodes and their status. The library uses the paxos algorithm to guarantee consistency and progress in the context of appearing and failing nodes as well as networking that may drop packages, have packages arrive out-of-order or be duplicated.

Changes to key values are available as reliable broadcast events in the participating nodes.

Application areas

This package has been primarily developed to support clustered HTTP servers that need to share status information such as session cookies.

Dependencies

This package requires either the TIPC or clib package to provide network enabled broadcasting.

Status

The current implementation is incomplete and has barely been tested.

Plans

  • Complete and test the implementation
  • Make the storage hookable and provide scalable backends based on e.g. RocksDB.
  • The current version only support the quorum. There is only partial support for learners that follow the quorum, but do not participate in voting.

History

This library was originally conceived by Jeffrey Rosenwald as tipc_paxos.pl as part of the TIPC package. Jeffrey later implemented udp_broadcast.pl as an alternative network enabled broadcast transport that could be used for tipc_paxos.pl. Jan Wielemaker renamed the library to paxos.pl and added hooks to work with both the TIPC and UDP (and potentially other) transport mechanisms.

As the project grows more complicated and both requires support libraries and a testing framework it has been moved to be an extension package of SWI-Prolog.

packages-paxos's People

Contributors

janwielemaker avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.