saga

module
v0.0.0-...-c015bec Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2023 License: MIT

README

Choreography-based sagas

Simple demonstration of Choreography-based saga written in go

  1. Run PostgreSQL
    • make postgres-start
  2. Run MongoDB
    • make mongo-start
  3. Run ZooKeeper
    • make zookeeper-start
  4. Run Kafka
    • make kafka-start
  5. Run Kafka Sink Connectors
    • make connector-start
  6. Load Sink Connectors Configuration for Customer Service
    • curl -d @"pg_customer_sink.json" \ -H "Content-Type: application/json" \ -X POST http://localhost:8083/connectors
  7. Load Sink Connectors Configuration for Order Service
    • curl -d @"pg_order_sink.json" \ -H "Content-Type: application/json" \ -X POST http://localhost:8083/connectors
  8. Install GRPC plugin
    • go get -d github.com/envoyproxy/protoc-gen-validate
  9. Import all the .proto file in /proto into Postman
  10. Add protoc-gen-validate directory as import path in Postman

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL