GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - EmBachlitzanakis/SagaPattern: A Saga pattern implementation using C++ and RabbitMQ

BranchesTags
Open more actions menu

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
SagaPatternC++
SagaPatternC++
 
 
README.md
README.md
 
 

Repository files navigation

Saga Pattern C++

A C++ implementation of the Saga pattern for managing distributed transactions with compensating actions, using RabbitMQ for message-based coordination.

Overview

This project demonstrates the Saga pattern - a design pattern for managing data consistency across microservices in distributed systems. When a step fails, the saga automatically executes compensating transactions to undo previously completed steps.

Example Use Case

The implementation simulates a travel booking system with two steps:

  1. Flight Reservation - Books a flight (70% success rate)
  2. Hotel Reservation - Books a hotel (75% success rate)

If any step fails, the saga automatically cancels all previously successful bookings in reverse order.

Features

Sequential step execution with automatic rollback Compensation logic for each saga step RabbitMQ integration for message-based coordination RAII resource management for connection and channel lifecycle Exception handling with proper cleanup Extensible design - easy to add new saga steps

Prerequisites

  • C++14 compatible compiler (MSVC, GCC, Clang)
  • RabbitMQ server running on localhost:5672
  • RabbitMQ-C library (librabbitmq)

About

A Saga pattern implementation using C++ and RabbitMQ

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.