• Stars
    star
    247
  • Rank 164,117 (Top 4 %)
  • Language
    Go
  • Created over 6 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Source code for https://threedots.tech/post/microservices-or-monolith-its-detail/ article.

Clean Monolith Shop

Source code for https://threedots.tech/post/microservices-or-monolith-its-detail/ article.

This shop can work both as monolith and microservices. More info you will find in the article.

This repository contains only REST API.

Prerequisites

You need Docker and docker-compose installed.

Everything is running in Docker container, so you don't need golang either any other lib.

Running

Just run

make up

It will build Docker image and run monolith and microservices version.

Services addresses

Monolith: http://localhost:8090/


Orders microservice: http://localhost:8070/

Shop microservice: http://localhost:8071/

Payments microservice: no public API (you can export ports in docker-compose.yml if you need)

For available methods, please check interfaces layer in source code and tests tests/acceptance_test.go.

Running tests

First of all you must run services

make up

Then you can run all tests by using in another terminal:

make docker-test

If you want to test only monolith version:

make docker-test-monolith

or microservices:

make docker-test-microservices

More Repositories

1

watermill

Building event-driven applications the easy way in Go.
Go
7,251
star
2

wild-workouts-go-ddd-example

Go DDD example application. Complete project to show how to apply DDD, Clean Architecture, and CQRS by practical refactoring.
Go
5,176
star
3

go-web-app-antipatterns

Short examples of common anti-patterns in Go Web Applications.
Go
338
star
4

event-driven-example

An example Event-Driven application in Go built with Watermill library.
Go
131
star
5

nats-example

An example Go project for running local development environment, with hot code reloading.
Go
100
star
6

watermill-sql

SQL (Postgres/MySQL) Pub/Sub for the Watermill project.
Go
61
star
7

watermill-kafka

Kafka Pub/Sub for the Watermill project.
Go
57
star
8

watermill-amqp

AMQP Pub/Sub for the Watermill project.
Go
54
star
9

watermill-nats

NATS Pub/Sub for the Watermill project.
Go
50
star
10

meteors

An example 2D game made with Go and Ebitengine.
Go
43
star
11

watermill-redisstream

Redis Pub/Sub for the Watermill project.
Go
30
star
12

watermill-http

HTTP Pub/Sub for the Watermill project.
Go
27
star
13

go-event-driven

Materials for https://threedots.tech/event-driven/
Go
26
star
14

esja

Event Sourcing library in Go.
Go
19
star
15

watermill-benchmark

Benchmarking tools for Watermill.
Go
18
star
16

watermill-googlecloud

Google Cloud Pub/Sub Pub/Sub for the Watermill project.
Go
17
star
17

watermill-aws

Amazon SQS/SNS Pub/Sub for the Watermill project.
Go
16
star
18

cli

Go
10
star
19

watermill-jetstream

Go
9
star
20

watermill-io

IO Pub/Sub for the Watermill project.
Go
8
star
21

watermill-bolt

Bolt Pub/Sub for the Watermill project.
Go
6
star
22

pii

Go
5
star
23

github-releases-dashboard

A simple dashboard to keep track of GitHub releases.
Go
1
star
24

wait-for

A simple "wait for port" utility.
Go
1
star
25

watermill-terraform

Terraform definitions for Watermill-related repositories and infrastructure.
HCL
1
star