Paxos.pm untested

filter: Statementstmt 0.0% 0 / 3 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 0.0% 0 / 3 SCAR -
1 package Algorithm::Paxos;
2 {
3 $Algorithm::Paxos::VERSION = '0.001';
4 }
5  
6 # ABSTRACT: An implementation of the Paxos protocol
7  
8 1;
9  
10  
11 =pod
12  
13 =head1 NAME
14  
15 Algorithm::Paxos - An implementation of the Paxos protocol
16  
17 =head1 VERSION
18  
19 version 0.001
20  
21 =head1 SYNOPSIS
22  
23 package BasicPaxos;
24 use Moose;
25 with qw(
26 Algorithm::Paxos::Role::Proposer
27 Algorithm::Paxos::Role::Acceptor
28 Algorithm::Paxos::Role::Learner
29 );
30
31 package main;
32
33 my @synod = map { BasicPaxos->new() } ( 0 .. 2 );
34 $_->_set_acceptors( \@synod ) for @synod;
35 $_->_set_learners( \@synod ) for @synod;
36  
37 =head1 DESCRIPTION
38  
39 NOTE: This is Alpha level code. The algorithm works, I'm fairly certain it
40 works to spec it does not have anything near fully test coverage and it hasn't
41 been used in anything resembling a production environment yet. I'm releasing
42 it because I think it'll be useful and I don't want it lost on github.
43  
44 From L<Wikipedia|http://en.wikipedia.org/wiki/Paxos_algorithm>
45  
46 Paxos is a family of protocols for solving consensus in a network of
47 unreliable processors. Consensus is the process of agreeing on one result
48 among a group of participants. This problem becomes difficult when the
49 participants or their communication medium may experience failures.
50  
51 This package implements a basic version of the Basic Paxos protocol and
52 provides an API (and hooks) for extending into a more complicated solution as
53 needed.
54  
55 =head1 SEE ALSO
56  
57 =over 4
58  
59 =item *
60  
61 L<Paxos Made Simple [PDF]|http://research.microsoft.com/en-us/um/people/lamport/pubs/paxos-simple.pdf>
62  
63 =item *
64  
65 L<Doozer|http://xph.us/2011/04/13/introducing-doozer.html>
66  
67 =item *
68  
69 L<Chubby|http://research.google.com/archive/chubby.html>
70  
71 =item *
72  
73 L<Wikipedia|http://en.wikipedia.org/wiki/Paxos_algorithm>
74  
75 =back
76  
77 =head1 AUTHOR
78  
79 Chris Prather <chris@prather.org>
80  
81 =head1 COPYRIGHT AND LICENSE
82  
83 This software is copyright (c) 2012 by Chris Prather.
84  
85 This is free software; you can redistribute it and/or modify it under
86 the same terms as the Perl 5 programming language system itself.
87  
88 =cut
89  
90  
91 __END__