-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgraph.example.yaml
More file actions
123 lines (103 loc) · 2.34 KB
/
graph.example.yaml
File metadata and controls
123 lines (103 loc) · 2.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# Example service graph configuration
#
# Copy this file to graph.yaml and customize for your infrastructure.
# Load on startup: CHANGE_INTEL_GRAPH_PATH=graph.yaml npm start
# Or import via API: curl -X POST localhost:3001/api/v1/graph/import -d @graph.json
services:
- id: api-gateway
name: API Gateway
type: service
tier: critical
team: platform
tags: [api, public-facing]
- id: user-service
name: User Service
type: service
tier: high
team: accounts
- id: order-service
name: Order Service
type: service
tier: high
team: commerce
- id: payment-service
name: Payment Service
type: service
tier: critical
team: payments
- id: notification-service
name: Notification Service
type: service
tier: medium
team: platform
tags: [async, non-critical]
- id: users-db
name: Users Database
type: database
tier: critical
team: accounts
- id: orders-db
name: Orders Database
type: database
tier: critical
team: commerce
- id: redis-cache
name: Redis Cache
type: cache
tier: high
team: platform
- id: event-queue
name: Event Queue
type: queue
tier: high
team: platform
dependencies:
# Gateway routes to services
- source: api-gateway
target: user-service
type: sync
criticality: critical
- source: api-gateway
target: order-service
type: sync
criticality: critical
- source: api-gateway
target: payment-service
type: sync
criticality: critical
# Service-to-database
- source: user-service
target: users-db
type: database
criticality: critical
- source: order-service
target: orders-db
type: database
criticality: critical
# Service-to-service
- source: order-service
target: payment-service
type: sync
criticality: critical
- source: order-service
target: notification-service
type: async
criticality: optional
# Caching
- source: user-service
target: redis-cache
type: cache
criticality: degraded
- source: order-service
target: redis-cache
type: cache
criticality: degraded
# Event-driven
- source: payment-service
target: event-queue
type: queue
criticality: degraded
- source: notification-service
target: event-queue
type: queue
criticality: critical