@@ -10,6 +10,30 @@ This project demonstrates the usage of API gateway between microservices using s
10
10
![ spring cloud gateway] ( images/spring_cloud_gateway.png )
11
11
12
12
13
+ #### Compatability Matrix
14
+
15
+ choose the branch based on below maintained versions.
16
+
17
+ <table >
18
+ <tr >
19
+ <th style="text-align:left">Branch/Version</th>
20
+ <th style="text-align:left">Spring Boot</th>
21
+ <th style="text-align:left">Spring Cloud</th>
22
+ </tr >
23
+ <tr >
24
+ <td>master</td>
25
+ <td>2.1.5.RELEASE</td>
26
+ <td>Greenwich.SR1</td>
27
+ </tr >
28
+ <tr >
29
+ <td>v2.1.3</td>
30
+ <td>2.1.3.RELEASE</td>
31
+ <td>Greenwich.RELEASE</td>
32
+ </tr >
33
+ </table >
34
+
35
+ #### Projects
36
+
13
37
<table >
14
38
15
39
@@ -42,12 +66,35 @@ This project demonstrates the usage of API gateway between microservices using s
42
66
<td><a href="https://github.com/BarathArivazhagan/spring-cloud-gateway-routing/tree/master/config-server">config-server</a></td>
43
67
<td>8888</td>
44
68
<td>spring cloud config server </td>
69
+ </tr >
70
+ <tr>
71
+ <td><a href="https://github.com/BarathArivazhagan/spring-cloud-gateway-routing/tree/master/eureka-server">eureka-server</a></td>
72
+ <td>8761</td>
73
+ <td>eureka-server </td>
45
74
</tr >
46
75
47
76
</table >
48
77
78
+ #### Eureka Server Registration (Optional)
49
79
50
- ## How to build and run ?
80
+ By default eureka is disabled.
81
+
82
+ ``` yaml
83
+ eureka :
84
+ client :
85
+ enabled : false
86
+ ` ` `
87
+
88
+ To enable eureka, set below property in all the microservices and restart.
89
+
90
+ ` ` ` yaml
91
+ spring :
92
+ profiles :
93
+ active : eureka
94
+ ` ` `
95
+
96
+
97
+ #### How to build and run ?
51
98
52
99
* Download/Clone the repository :
53
100
@@ -63,7 +110,7 @@ This project demonstrates the usage of API gateway between microservices using s
63
110
$ docker-compose up
64
111
```
65
112
66
- ## How to test the application ?
113
+ #### How to test the application ?
67
114
68
115
Use gateway routes to route to respective microservices.
69
116
@@ -140,14 +187,13 @@ Enable <b>SPRING_PROFILES_ACTIVE=header</b> to test header based routing strateg
140
187
141
188
Enable <b >SPRING_PROFILES_ACTIVE=query</b > to test query param based routing strategy
142
189
190
+ #### Eureka Registration View
143
191
144
- #### Future Actions :
145
-
146
- * Introduce hystrix stream and feign clients to interact with other microservices.
192
+ ![ eureka_registration_view] ( images/eureka_registration_view.png )
147
193
148
194
149
195
150
- ## How to rebuild the project after the changes?
196
+ #### How to rebuild the project after the changes?
151
197
152
198
```
153
199
docker-compose build
@@ -157,8 +203,8 @@ Enable <b>SPRING_PROFILES_ACTIVE=query</b> to test query param based routing str
157
203
158
204
## References
159
205
160
- * http://projects.spring.io/spring-cloud/
161
- * http://cloud.spring.io/spring-cloud-netflix/spring-cloud-netflix.html
162
- * https://cloud.spring.io/spring-cloud-gateway/
163
- * http://cloud.spring.io/spring-cloud-static/spring-cloud-gateway/2.0.0.M8/single/spring-cloud-gateway.html
206
+ * [ spriing-cloud ] ( http://projects.spring.io/spring-cloud/ )
207
+
208
+ * [ spring-cloud-gateway ] ( https://cloud.spring.io/spring-cloud-gateway/ )
209
+
164
210
0 commit comments