Coder Social home page Coder Social logo

isutare412 / hexago Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 287 KB

System architecture PoC tuned for Go.

Makefile 6.90% Go 89.83% Shell 1.83% Dockerfile 1.43%
architecture cqrs dependency-injection domain-driven-design event-sourcing hexagonal-architecture kafka microservices mongodb openapi-spec swagger-ui protocol-buffer

hexago's Introduction

Hexago

System architecture PoC tuned for Go. The name Hexago was taken from Hexagonal Architecture.

Considerations

Overview

Hexago CQRS diagram

Modules

API gateway module for hexago service.

Payment module for hexago service.

Includes common libraries of hexago modules.

Infrastructure

  1. Run infrastructures using docker compose.
make infra
# 1) up
# 2) down
# 3) ps
# 4) logs
# 5) quit
# Please enter your choice: 1
  1. Add local dns to each insfrastructure for local development. Optional for docker environment.
sudo tee -a /etc/hosts > /dev/null <<EOT
127.0.0.1 mongodb
127.0.0.1 kafka1
127.0.0.1 kafka2
EOT
  1. Create kafka topics using kafka-ui.
    • donation-request

Test Drive

  1. Prepare infrastructures above.

  2. Build hexago modules.

make image-gateway
make image-payment
  1. Run hexago modules.
make run-gateway
make run-payment
  1. Test scenarios.

  2. Stop hexago modules.

make stop-gateway
make stop-payment

hexago's People

Contributors

isutare412 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.