Skip to content

Instantly share code, notes, and snippets.

@percybolmer
Created February 27, 2022 13:36
Show Gist options
  • Save percybolmer/a54961d503910c87faec93507151270b to your computer and use it in GitHub Desktop.
Save percybolmer/a54961d503910c87faec93507151270b to your computer and use it in GitHub Desktop.
Cadence project layout so far
├── /app/
│ ├── main.go # the place where you will put the worker service code
│ ├── go.mod # the go module delaraction
│ ├── go.sum # the go sum with versions
│ ├── /customer # Customer folder holds any code related to customer domain
| | └── repository.go # Repository holds the inMemory Cache for Customeres, Replace with a DB if wanted
│ ├── /workflows # workflows holds all the available workflows for the Domain
| | └── /greetings/ # Workflow and Activities for Greetings
| | └── greetings.go
├── /cadence/ # All Related Cadence stuff goes here
│ ├── /data/ #
| | └── /mysql/ # The folder mounted onto the Docker to persist data for Mysql
| | └── /prometheus/ # The folder mounted onto the Docker to persist data for Prometheus
│ ├── /prometheus/ # Folder related to Prometheus
| | └── prometheus.yml # Prometheus config file
| | └── prometheus_config_multicluster.yml # Prometheus config file for multi clusters
│ └── docker-compose.yml # Your docker-compose selected from the Cadence repo based on your persistent storage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment