/2PC-Go

A 2PC protocol in Go

Primary LanguageGo

2PC-Go

This simple POC show how to implement a 2PC protocol in Go.

It is used to determine if a transaction can be committed or not.

How to use it

Start the coordinator

go run coordinator.go common.go model.go

Start the participant

go run participant.go common.go model.go