Skip to content

Commit 2835e2d

Browse files
polished README
1 parent 79e5331 commit 2835e2d

File tree

4 files changed

+59
-11
lines changed

4 files changed

+59
-11
lines changed

README.md

Lines changed: 56 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,30 @@ This project demonstrates the usage of API gateway between microservices using s
1010
![spring cloud gateway](images/spring_cloud_gateway.png)
1111

1212

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+
1337
<table>
1438

1539

@@ -42,12 +66,35 @@ This project demonstrates the usage of API gateway between microservices using s
4266
<td><a href="https://github.com/BarathArivazhagan/spring-cloud-gateway-routing/tree/master/config-server">config-server</a></td>
4367
<td>8888</td>
4468
<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>
4574
</tr>
4675

4776
</table>
4877

78+
#### Eureka Server Registration (Optional)
4979

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 ?
5198
5299
* Download/Clone the repository :
53100
@@ -63,7 +110,7 @@ This project demonstrates the usage of API gateway between microservices using s
63110
$ docker-compose up
64111
```
65112

66-
## How to test the application ?
113+
#### How to test the application ?
67114

68115
Use gateway routes to route to respective microservices.
69116

@@ -140,14 +187,13 @@ Enable <b>SPRING_PROFILES_ACTIVE=header</b> to test header based routing strateg
140187

141188
Enable <b>SPRING_PROFILES_ACTIVE=query</b> to test query param based routing strategy
142189

190+
#### Eureka Registration View
143191

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)
147193

148194

149195

150-
## How to rebuild the project after the changes?
196+
#### How to rebuild the project after the changes?
151197

152198
```
153199
docker-compose build
@@ -157,8 +203,8 @@ Enable <b>SPRING_PROFILES_ACTIVE=query</b> to test query param based routing str
157203

158204
## References
159205

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+
164210

images/eureka_registration_view.png

108 KB
Loading

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
<module>vodaphone-store-service</module>
2626
<module>spring-cloud-gateway</module>
2727
<module>config-server</module>
28+
<module>eureka-server</module>
2829
</modules>
2930

3031

spring-cloud-gateway/src/main/resources/application.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ logging:
1111
spring:
1212
profiles:
1313
active: path # path | header | query are the other spring profiles for other strategies
14-
14+
application:
15+
name: api-gateway
1516
# disable eureka by default
1617

1718
eureka:

0 commit comments

Comments
 (0)