In: Computer Science
To what extent is scalability of atomic multicast important? Also, explain why totally ordered multicast using Lamport’s global logic clocks does not scale.
ANSWER:-
Scalability of atomic multicast:- Scalability really depends on how many processes are contained in a group.
The important thing to note is, that if processes are pretend for fault tolerance, having only a few replicas may be enough.
In that case, scalability is hardly an issue. When groups of different processes are formed, scalability may become an issue.
When replicating for performance, atomic multicasting itself may be scalded.
Totally Ordered Multicast:-
•We need to assurance that concurrent updates on a replicated database are seen in the order everywhere. This requires a totally-ordered multicast.
Step1:- Add $100 to an account (initial value = $1000)
Step2:- Add 1%interest to account - In absence of proper synchronization: replica 1 = $1111, replica 2 = $1110
• Lamport’s logical clocks can be used to implement totally-ordered multicast in entirely distributed fashion.
Implementing Totally Ordered Multicast:-
• Assumptions: - No messages are Iost-Messages from the same sender are received in the order they were sent • Process Pi sends timestamped message mi to all others. The message itself is put in a local queuei .
• Any received message at Pj is queued in queuej, according its timestamp and ACKed to every other process.
• Pj pass a message mi to its application if - mi is at the head of queuej - mi has been ACKed by each other process.
• Finally, All processes will eventually have the same copy of the local queue; therefore, all messages are delivered in the same order everywhere.