SlideShare a Scribd company logo
1 of 18
Download to read offline
JGROUPS
AToolkit for Reliable Multicast Communication
Wednesday, April 24, 13
• Introduction
• API and Architecture
• Protocols
• Building Blocks
• Group Membership
• Conclusion
OVERVIEW
Wednesday, April 24, 13
INTRODUCTION
• What is JGroups?
• Toolkit for Reliable Multicast Communication
• Fragmentation
• Message retransmission
• Ordering
• Group membership, membership change notification, etc.
• LAN or WAN based
Wednesday, April 24, 13
INTRODUCTION
• Where JGroups fits in?
Unreliable Reliable
Unicast UDP TCP
Multicast IP Multicast JGroups
Wednesday, April 24, 13
API & ARCHITECTURE
Wednesday, April 24, 13
CHANNEL
• Lower-Level Abstraction to build Multicast Communication
Apps provided by JGroups.
• Similar to socket from Java
• Operations :
• Create a channel with a set of properties
• Connect to a group X. Everyone that connects to X will see
each other
• Send a message to all members of X
Wednesday, April 24, 13
BUILDING BLOCKS
• Group communication pattern
• Layered on top of channels
• More sophisticated APIs
• Applications communicate directly with the building block,
rather than the channel.
• Composed with many basic multicast function
Wednesday, April 24, 13
BUILDING BLOCKS
Wednesday, April 24, 13
FLEXIBLE PROTOCOL STACK
• The most powerful feature of JGroups!!
• Contains a number of protocol layers in a bidirectional list.
• A message sent by Channel is simply passed to the protocol stack which in
turn forwards it to the top most layer.
• Available Protocol :
• Transport: UDP,TCP,TCP_NIO,TUNNEL, JMS, LOOPBACK
• Discovery: PING,TCPPING,TCPGOSSIP, UDPPING
• Reliable delivery & FIFO: NAKACK, SMACK
• Group membership, Failure Detector, Security, Fragmentation,Virtual
Synchrony, Ordering, etc.
Wednesday, April 24, 13
GROUP MEMBERSHIP SERVICE
• Task :
• Maintain a list of members
• Notify members when a new member joins, or an existing
member leaves (or crashes)
• Each member has the same ordered list
• List can be retrieved by Channel.getView()
• First (= oldest) member is coordinator
• If coord crashes, 2nd oldest takes over
Wednesday, April 24, 13
VIRTUAL SYNCHRONY
• AView is a list of members (A,B,C,D)
• When members join/leave, a new view will be installed
(A,C,D)
• Every healthy member receives the same set of messages
between subsequent views
• Messages sent inV1 are received inV1
• All msgs by sender received in same order
Wednesday, April 24, 13
VIRTUAL SYNCHRONY
• The FLUSH protocol ensures that all members have received
all msgs inV1 before installingV2
• New members won’t receive messages from previous views
• Member that left won’t receive msgs
Wednesday, April 24, 13
FAILURE DETECTION
• Failure detection protocol sends up SUSPECT event
• VERIFY_SUSPECT double checks
• GMS multicasts new view (not containing
crashed member)
• If member resurfaces, it will be shunned
• Has to leave and rejoin group
Wednesday, April 24, 13
FAILURE DETECTION
• Task :
• Detect if a member has crashed and send SUSPECT event up the stack (to
be handled by GMS)
• Logical ring over membership
• Each member pings its neighbor to the right
Wednesday, April 24, 13
FAILURE DETECTION
Wednesday, April 24, 13
CONCLUSION
• Jgroups merupakan toolkit yang bisa dipakai saat akan
membangun suatu aplikasi yang membutuhkan aspek reliability
dalam komunikasi grup.
• Jgroups sangat modular dan mudah untuk dimodifikasi sesuai
dengan kebutuhan aplikasi
• Pengembang aplikasi bisa lebih fokus terhadap persoalan apa
yang mau dipecahkan oleh aplikasinya.
Wednesday, April 24, 13
REFERENCE
• JavaGroups - Group Communication Patterns in Java, Bela Ban. 1998
• Design and Implementation of a Reliable Group CommunicationToolkit for
Java, Bela Ban, -
• JgroupTutorial and Programmer’s Manual,Albert M. dkk. 2002.
• Reliable and Secure Distributed Programming 2nd Ed, C. Cachin dkk. 2011.
• http://www.jgroups.org
• https://github.com/belaban/JGroups
Wednesday, April 24, 13
Thank you &
Question?
Wednesday, April 24, 13

More Related Content

Similar to Jgroups - Toolkit for Reliable Multicast Communication

InfoQ QCon San Francisco 2009
InfoQ QCon San Francisco 2009InfoQ QCon San Francisco 2009
InfoQ QCon San Francisco 2009Sean Dawson
 
Linkedin NUS QCon 2009 slides
Linkedin NUS QCon 2009 slidesLinkedin NUS QCon 2009 slides
Linkedin NUS QCon 2009 slidesruslansv
 
Adventures with Geeko: Introduction to openSUSE at Madison Linux User Group
Adventures with Geeko: Introduction to openSUSE at Madison Linux User GroupAdventures with Geeko: Introduction to openSUSE at Madison Linux User Group
Adventures with Geeko: Introduction to openSUSE at Madison Linux User GroupMichael McCallister
 
What is the merge window?
What is the merge window?What is the merge window?
What is the merge window?Macpaul Lin
 
Getting started with Octopus Deploy
Getting started with Octopus DeployGetting started with Octopus Deploy
Getting started with Octopus DeployKaroline Klever
 
The Evolution of Continuous Delivery at Scale @ Linkedin
The Evolution of Continuous Delivery at Scale @ LinkedinThe Evolution of Continuous Delivery at Scale @ Linkedin
The Evolution of Continuous Delivery at Scale @ LinkedinC4Media
 
Making 'npm install' Safe
Making 'npm install' SafeMaking 'npm install' Safe
Making 'npm install' SafeC4Media
 
Introduction to GOCD - Amulya Sharma
Introduction to GOCD - Amulya SharmaIntroduction to GOCD - Amulya Sharma
Introduction to GOCD - Amulya SharmaAmulya Sharma
 
Treating Your Pipeline as a Product - Full Day Workshop
Treating Your Pipeline as a Product - Full Day WorkshopTreating Your Pipeline as a Product - Full Day Workshop
Treating Your Pipeline as a Product - Full Day WorkshopManuel Pais
 
You don’t need DTAP + Backbase implementation - Amsterdam 17-12-2015
You don’t need DTAP + Backbase implementation - Amsterdam 17-12-2015You don’t need DTAP + Backbase implementation - Amsterdam 17-12-2015
You don’t need DTAP + Backbase implementation - Amsterdam 17-12-2015Pavel Chunyayev
 

Similar to Jgroups - Toolkit for Reliable Multicast Communication (10)

InfoQ QCon San Francisco 2009
InfoQ QCon San Francisco 2009InfoQ QCon San Francisco 2009
InfoQ QCon San Francisco 2009
 
Linkedin NUS QCon 2009 slides
Linkedin NUS QCon 2009 slidesLinkedin NUS QCon 2009 slides
Linkedin NUS QCon 2009 slides
 
Adventures with Geeko: Introduction to openSUSE at Madison Linux User Group
Adventures with Geeko: Introduction to openSUSE at Madison Linux User GroupAdventures with Geeko: Introduction to openSUSE at Madison Linux User Group
Adventures with Geeko: Introduction to openSUSE at Madison Linux User Group
 
What is the merge window?
What is the merge window?What is the merge window?
What is the merge window?
 
Getting started with Octopus Deploy
Getting started with Octopus DeployGetting started with Octopus Deploy
Getting started with Octopus Deploy
 
The Evolution of Continuous Delivery at Scale @ Linkedin
The Evolution of Continuous Delivery at Scale @ LinkedinThe Evolution of Continuous Delivery at Scale @ Linkedin
The Evolution of Continuous Delivery at Scale @ Linkedin
 
Making 'npm install' Safe
Making 'npm install' SafeMaking 'npm install' Safe
Making 'npm install' Safe
 
Introduction to GOCD - Amulya Sharma
Introduction to GOCD - Amulya SharmaIntroduction to GOCD - Amulya Sharma
Introduction to GOCD - Amulya Sharma
 
Treating Your Pipeline as a Product - Full Day Workshop
Treating Your Pipeline as a Product - Full Day WorkshopTreating Your Pipeline as a Product - Full Day Workshop
Treating Your Pipeline as a Product - Full Day Workshop
 
You don’t need DTAP + Backbase implementation - Amsterdam 17-12-2015
You don’t need DTAP + Backbase implementation - Amsterdam 17-12-2015You don’t need DTAP + Backbase implementation - Amsterdam 17-12-2015
You don’t need DTAP + Backbase implementation - Amsterdam 17-12-2015
 

Recently uploaded

GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 

Recently uploaded (20)

GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 

Jgroups - Toolkit for Reliable Multicast Communication

  • 1. JGROUPS AToolkit for Reliable Multicast Communication Wednesday, April 24, 13
  • 2. • Introduction • API and Architecture • Protocols • Building Blocks • Group Membership • Conclusion OVERVIEW Wednesday, April 24, 13
  • 3. INTRODUCTION • What is JGroups? • Toolkit for Reliable Multicast Communication • Fragmentation • Message retransmission • Ordering • Group membership, membership change notification, etc. • LAN or WAN based Wednesday, April 24, 13
  • 4. INTRODUCTION • Where JGroups fits in? Unreliable Reliable Unicast UDP TCP Multicast IP Multicast JGroups Wednesday, April 24, 13
  • 6. CHANNEL • Lower-Level Abstraction to build Multicast Communication Apps provided by JGroups. • Similar to socket from Java • Operations : • Create a channel with a set of properties • Connect to a group X. Everyone that connects to X will see each other • Send a message to all members of X Wednesday, April 24, 13
  • 7. BUILDING BLOCKS • Group communication pattern • Layered on top of channels • More sophisticated APIs • Applications communicate directly with the building block, rather than the channel. • Composed with many basic multicast function Wednesday, April 24, 13
  • 9. FLEXIBLE PROTOCOL STACK • The most powerful feature of JGroups!! • Contains a number of protocol layers in a bidirectional list. • A message sent by Channel is simply passed to the protocol stack which in turn forwards it to the top most layer. • Available Protocol : • Transport: UDP,TCP,TCP_NIO,TUNNEL, JMS, LOOPBACK • Discovery: PING,TCPPING,TCPGOSSIP, UDPPING • Reliable delivery & FIFO: NAKACK, SMACK • Group membership, Failure Detector, Security, Fragmentation,Virtual Synchrony, Ordering, etc. Wednesday, April 24, 13
  • 10. GROUP MEMBERSHIP SERVICE • Task : • Maintain a list of members • Notify members when a new member joins, or an existing member leaves (or crashes) • Each member has the same ordered list • List can be retrieved by Channel.getView() • First (= oldest) member is coordinator • If coord crashes, 2nd oldest takes over Wednesday, April 24, 13
  • 11. VIRTUAL SYNCHRONY • AView is a list of members (A,B,C,D) • When members join/leave, a new view will be installed (A,C,D) • Every healthy member receives the same set of messages between subsequent views • Messages sent inV1 are received inV1 • All msgs by sender received in same order Wednesday, April 24, 13
  • 12. VIRTUAL SYNCHRONY • The FLUSH protocol ensures that all members have received all msgs inV1 before installingV2 • New members won’t receive messages from previous views • Member that left won’t receive msgs Wednesday, April 24, 13
  • 13. FAILURE DETECTION • Failure detection protocol sends up SUSPECT event • VERIFY_SUSPECT double checks • GMS multicasts new view (not containing crashed member) • If member resurfaces, it will be shunned • Has to leave and rejoin group Wednesday, April 24, 13
  • 14. FAILURE DETECTION • Task : • Detect if a member has crashed and send SUSPECT event up the stack (to be handled by GMS) • Logical ring over membership • Each member pings its neighbor to the right Wednesday, April 24, 13
  • 16. CONCLUSION • Jgroups merupakan toolkit yang bisa dipakai saat akan membangun suatu aplikasi yang membutuhkan aspek reliability dalam komunikasi grup. • Jgroups sangat modular dan mudah untuk dimodifikasi sesuai dengan kebutuhan aplikasi • Pengembang aplikasi bisa lebih fokus terhadap persoalan apa yang mau dipecahkan oleh aplikasinya. Wednesday, April 24, 13
  • 17. REFERENCE • JavaGroups - Group Communication Patterns in Java, Bela Ban. 1998 • Design and Implementation of a Reliable Group CommunicationToolkit for Java, Bela Ban, - • JgroupTutorial and Programmer’s Manual,Albert M. dkk. 2002. • Reliable and Secure Distributed Programming 2nd Ed, C. Cachin dkk. 2011. • http://www.jgroups.org • https://github.com/belaban/JGroups Wednesday, April 24, 13