Go-CQRS-Kafka-gRPC-Microservices
Go gRPC Kafka CQRS microservices with tracing
File Explorer
Download Latest Version (.zip)- test.yml
- main.go
- config.go
- config.yaml
- reader_service.go
- create_product.go
- product_list_response.go
- product_response.go
- update_product.go
- metrics.go
- middlewares.go
- commands.go
- create_product.go
- delete_product.go
- update_product.go
- handlers.go
- routes.go
- get_by_id.go
- queries.go
- search_product.go
- service.go
- delivery.go
- http.go
- server.go
- utils.go
- api_gateway.Dockerfile
- reader_service.Dockerfile
- writer_service.Dockerfile
- docs.go
- swagger.json
- swagger.yaml
- 01_microservices_tables_init.down.sql
- 01_microservices_tables_init.up.sql
- prometheus.yml
- prometheus_docker.yml
- constants.go
- http_client.go
- http_errors.go
- http_utils.go
- manager.go
- client.go
- config.go
- constants.go
- consumer_group.go
- producer.go
- reader.go
- writer.go
- logger.go
- mongodb.go
- postgres.go
- probes.go
- redis.go
- jaeger.go
- utils.go
- pagination.go
- kafka.pb.go
- kafka.proto
- main.go
- config.go
- config.yaml
- metrics.go
- product.go
- commands.go
- create_product.go
- delete_product.go
- update_product.go
- grpc_service.go
- consumer_group.go
- create_product_consumer.go
- delete_product_consumer.go
- update_product_consumer.go
- utils.go
- get_by_id.go
- queries.go
- search.go
- mongo_repository.go
- redis_repository.go
- repository.go
- service.go
- grpc_server.go
- server.go
- utils.go
- product_reader.pb.go
- product_reader.proto
- product_reader_grpc.pb.go
- product_reader_messages.pb.go
- product_reader_messages.proto
- init.js
- main.go
- config.go
- config.yaml
- metrics.go
- product.go
- commands.go
- create_product.go
- delete_product.go
- update_product.go
- grpc_service.go
- consumer_group.go
- create_product_consumer.go
- delete_product_consumer.go
- update_product_consumer.go
- utils.go
- get_product_by_id.go
- queries.go
- pg_repository.go
- repository.go
- sql_queries.go
- service.go
- grpc_server.go
- server.go
- utils.go
- product_mapper.go
- product_writer.pb.go
- product_writer.proto
- product_writer_grpc.pb.go
- product_writer_messages.pb.go
- product_writer_messages.proto
- .gitignore
- docker-compose.local.yaml
- docker-compose.yaml
- go.mod
- go.sum
- Makefile
- README.md
# Installation Guide
git clone https://github.com/AleksK1NG/Go-CQRS-Kafka-gRPC-Microservices
Downloads the entire project code from GitHub to your computer.
cd Go-CQRS-Kafka-gRPC-Microservices
Moves into the project folder you just downloaded.
2. Docker
Easy Recommended- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
make local or docker_dev // for run docker compose files
Runs the command against the services defined in the compose file.
Pulled directly from this repo's README.
3. Go
Mediumgo build ./...
Compiles the Go program into an executable.
go run .
Runs the Go program directly without a separate build step.
4. Make
Medium- Git Needed to download the project code from GitHub.
- Make Usually pre-installed on Linux/macOS. On Windows, install separately (e.g. via MSYS2 or WSL).
make migrate_up // run sql migrations
Compiles the code based on the generated build configuration to produce an executable.
make mongo // run mongo init scripts
Compiles the code based on the generated build configuration to produce an executable.
make swagger // generate swagger documentation
Compiles the code based on the generated build configuration to produce an executable.
make local or docker_dev // for run docker compose files
Runs the command against the services defined in the compose file.
Pulled directly from this repo's README.
