Hello Maurice,

Paxos does not offer GET/PUT/DELETE interface, paxos implements Atomic broadcast, which is a messaging primitive, not a database/storage kind of thing.
The interface offered to applications built on top of paxos are generally submit() (to send a message to all listeners) and deliver() (a callback invoked by all listeners when the next message is accepted).

The functions you see in storage are reserved for internal usage (by the processes running the "acceptor" role).

If you want to implement a database-like system, it's not hard to imagine one built on top of this submit/deliver interface, but you're going to have to implement in your own application.

The file acceptor_0 and similar are not logfiles, I believe they are the actual (binary) storage databases maintained by acceptors.


On 6/15/14, 6:25 AM, Nitin Arya wrote:

I am new to Paxos learning i was going through the sample code and there is
a function paxos_submit() that client.c calls . As i wish to perform the
GET , PUT and DELETE operations on the database how can I implement that ?

There is no option to invoke storage_get or a delete function and I would
like to call a paxos_delete() function so a value gets deleted from
database in all the replicas by using the paxos algorithm. So how can i do
that ? Please guide.
Also the log file there is a log file in /tmp/acceptor_0 but its garbage is
there anywhere else the log file is getting saved ?

Thanking you for your excellent libpaxos.

HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration

Libpaxos-general mailing list