Skip to content

Commit c927b82

Browse files
committed
Publisher/Subscriber Enhancement
- Dependencies Upgrade - README.md Update
1 parent 056b1ee commit c927b82

File tree

6 files changed

+73
-71
lines changed

6 files changed

+73
-71
lines changed

README.md

Lines changed: 26 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# Publisher/Subscriber Microservices
22

3-
## License
4-
5-
[Creative Commons Attribution-NonCommercial-NoDerivs 4.0 International License][cc-by-nc-nd].
3+
### © 2024 | Lyes Sefiane <img src="https://raw.githubusercontent.com/wiki/lyes-sefiane/grocery-items-management-application/images/algeria-flag-icon.png" width="2%"> <img src="https://raw.githubusercontent.com/wiki/lyes-sefiane/grocery-items-management-application/images/canada-flag-icon.png" width="2%"> All Rights Reserved | [CC BY-NC-ND 4.0](https://creativecommons.org/licenses/by-nc-nd/4.0/)
64

75
[![CC BY-NC-ND 4.0][cc-by-nc-nd-image]][cc-by-nc-nd]
86

@@ -12,75 +10,58 @@
1210

1311
## GitHub Badges
1412

13+
![License](https://img.shields.io/static/v1?label=License&message=CC-BY-NC-ND-4.0&color=green)
14+
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](code_of_conduct.md)
15+
[![Java CI with Maven](https://github.com/lyes-sefiane/publisher-subscriber-microservices/actions/workflows/maven.yml/badge.svg)](https://github.com/lyes-sefiane/publisher-subscriber-microservices/actions/workflows/maven.yml)
16+
[![Dependabot Updates](https://github.com/lyes-sefiane/publisher-subscriber-microservices/actions/workflows/dependabot/dependabot-updates/badge.svg)](https://github.com/lyes-sefiane/publisher-subscriber-microservices/actions/workflows/dependabot/dependabot-updates)
17+
[![CodeQL](https://github.com/lyes-sefiane/publisher-subscriber-microservices/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/lyes-sefiane/publisher-subscriber-microservices/actions/workflows/github-code-scanning/codeql)
18+
[![Automatic Dependency Submission](https://github.com/lyes-sefiane/publisher-subscriber-microservices/actions/workflows/dependency-graph/auto-submission/badge.svg)](https://github.com/lyes-sefiane/publisher-subscriber-microservices/actions/workflows/dependency-graph/auto-submission)
19+
1520
![GitHub Repo stars](https://img.shields.io/github/stars/lyes-sefiane/publisher-subscriber-microservices?style=social)
16-
![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/lyes-sefiane/publisher-subscriber-microservices/maven.yml?branch=master)
1721
![GitHub top language](https://img.shields.io/github/languages/top/lyes-sefiane/publisher-subscriber-microservices)
18-
![GitHub commit activity (branch)](https://img.shields.io/github/commit-activity/y/lyes-sefiane/publisher-subscriber-microservices/master)
22+
![GitHub commit activity (branch)](https://img.shields.io/github/commit-activity/y/lyes-sefiane/publisher-subscriber-microservices/main)
1923

20-
## Wiki
21-
* [lyes-sefiane/publisher-subscriber-microservices/wiki/event-driven-microservices](https://github.com/lyes-sefiane/publisher-subscriber-microservices/wiki/Event-Driven-Microservices)
24+
## Documentation
2225

23-
## Technology Stack
24-
* [lyes-sefiane/publisher-subscriber-microservices/wiki/technology-stack](https://github.com/lyes-sefiane/publisher-subscriber-microservices/wiki/Technology-Stack)
26+
* [Applied Event Driven Architecture in a Context of Microservices](https://github.com/lyes-sefiane/publisher-subscriber-microservices/wiki/Event-Driven-Microservices)
2527

26-
## Requirements
27-
```
28-
1. Java 11.x.y
2928

30-
2. Maven 3.x.y
29+
## Infrastructure
3130

32-
3. Docker 3.x.y
33-
```
31+
![Image](https://raw.githubusercontent.com/wiki/lyes-sefiane/publisher-subscriber-microservices/images/Dev-Mode.PNG)
3432

35-
## Git Clone
36-
```
37-
https://github.com/lyes-sefiane/publisher-subscriber-microservices.git
33+
## Requirements
3834
```
35+
1. Java 17.x.y
3936
40-
## Development Environment
41-
42-
* [lyes-sefiane/publisher-subscriber-microservices/wiki/development-environment](https://github.com/lyes-sefiane/publisher-subscriber-microservices/wiki/Development-Environment)
37+
2. Maven 3.x.y
4338
39+
3. Docker 3.x.y
4440
```
45-
docker-compose --env-file .env up --build -d
46-
```
47-
48-
![Image](https://raw.githubusercontent.com/wiki/lyes-sefiane/publisher-subscriber-microservices/images/Dev-Mode.PNG)
49-
50-
## Developmental Test & Evaluation
51-
* [lyes-sefiane/publisher-subscriber-microservices/wiki/developmental-test-and-evaluation](https://github.com/lyes-sefiane/publisher-subscriber-microservices/wiki/Developmental-Test-&-Evaluation)
5241

53-
## Orchestration with Docker Swarm
42+
## Deployment to Docker Swarm
5443

55-
* [lyes-sefiane/publisher-subscriber-microservices/wiki/docker-swarm](https://github.com/lyes-sefiane/publisher-subscriber-microservices/wiki/Docker-Swarm)
44+
* [More Information](https://github.com/lyes-sefiane/publisher-subscriber-microservices/wiki/Docker-Swarm)
5645

5746
![Image](https://raw.githubusercontent.com/wiki/lyes-sefiane/publisher-subscriber-microservices/images/Orchestration-Swarm.PNG)
5847

5948
![Image](https://raw.githubusercontent.com/wiki/lyes-sefiane/publisher-subscriber-microservices/images/docker-swarm-visualizer.PNG)
6049

61-
### Deployment
62-
```
63-
docker stack deploy -c docker-stack.yml stack
64-
```
65-
## Orchestration with Kubernetes
6650

67-
* [lyes-sefiane/publisher-subscriber-microservices/wiki/kubernetes](https://github.com/lyes-sefiane/publisher-subscriber-microservices/wiki/Kubernetes)
51+
## Deployment to Kubernetes
52+
53+
* [More Information](https://github.com/lyes-sefiane/publisher-subscriber-microservices/wiki/Kubernetes)
6854

6955
![Image](https://raw.githubusercontent.com/wiki/lyes-sefiane/publisher-subscriber-microservices/images/kubernetes-cluster.PNG)
7056

7157
![Image](https://raw.githubusercontent.com/wiki/lyes-sefiane/publisher-subscriber-microservices/images/kubernetes-deployment.PNG)
7258

73-
### Deployment
74-
```
75-
kubectl apply -f k8s/
76-
```
77-
7859
## Enhancements
7960

80-
* OpenApi Implementation
81-
* Error Handling Implementation
82-
* Database access/storage Implementation
83-
* Security Implementation
61+
- [ ] OpenApi Implementation
62+
- [ ] Error Handling Implementation
63+
- [ ] Database access/storage Implementation
64+
- [ ] Security Implementation
8465

8566
## Contributing
8667
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

gateway-service/pom.xml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.springframework.boot</groupId>
88
<artifactId>spring-boot-starter-parent</artifactId>
9-
<version>2.5.2</version>
9+
<version>3.3.5</version>
1010
<relativePath /> <!-- lookup parent from repository -->
1111
</parent>
1212
<groupId>com.lsefiane</groupId>
@@ -15,8 +15,8 @@
1515
<name>gateway-service</name>
1616
<description>Spring Cloud Gateway for Pub/Sub Microservices</description>
1717
<properties>
18-
<java.version>11</java.version>
19-
<spring-cloud.version>2020.0.3</spring-cloud.version>
18+
<java.version>17</java.version>
19+
<spring-cloud.version>2023.0.3</spring-cloud.version>
2020
</properties>
2121
<dependencies>
2222
<dependency>
@@ -42,17 +42,23 @@
4242
</exclusions>
4343
</dependency>
4444
<dependency>
45-
<groupId>org.springframework.cloud</groupId>
46-
<artifactId>spring-cloud-starter-sleuth</artifactId>
45+
<groupId>io.micrometer</groupId>
46+
<artifactId>micrometer-tracing-bridge-brave</artifactId>
4747
</dependency>
4848
<dependency>
49-
<groupId>org.springframework.cloud</groupId>
50-
<artifactId>spring-cloud-sleuth-zipkin</artifactId>
49+
<groupId>io.zipkin.reporter2</groupId>
50+
<artifactId>zipkin-reporter-brave</artifactId>
5151
</dependency>
5252
<dependency>
5353
<groupId>org.springframework.boot</groupId>
5454
<artifactId>spring-boot-starter-test</artifactId>
5555
<scope>test</scope>
56+
<exclusions>
57+
<exclusion>
58+
<groupId>org.xmlunit</groupId>
59+
<artifactId>xmlunit-core</artifactId>
60+
</exclusion>
61+
</exclusions>
5662
</dependency>
5763
</dependencies>
5864
<dependencyManagement>
@@ -75,5 +81,4 @@
7581
</plugin>
7682
</plugins>
7783
</build>
78-
7984
</project>

pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,4 @@
1818
<module>subscriber-service</module>
1919
<module>gateway-service</module>
2020
</modules>
21-
2221
</project>

publisher-service/pom.xml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.springframework.boot</groupId>
88
<artifactId>spring-boot-starter-parent</artifactId>
9-
<version>2.5.2</version>
9+
<version>3.3.5</version>
1010
<relativePath /> <!-- lookup parent from repository -->
1111
</parent>
1212
<groupId>com.lsefiane</groupId>
@@ -15,8 +15,8 @@
1515
<name>publisher-service</name>
1616
<description>Spring Boot JMS with ActiveMQ Publisher</description>
1717
<properties>
18-
<java.version>11</java.version>
19-
<spring-cloud.version>2020.0.3</spring-cloud.version>
18+
<java.version>17</java.version>
19+
<spring-cloud.version>2023.0.3</spring-cloud.version>
2020
</properties>
2121
<dependencies>
2222
<dependency>
@@ -55,12 +55,12 @@
5555
</exclusions>
5656
</dependency>
5757
<dependency>
58-
<groupId>org.springframework.cloud</groupId>
59-
<artifactId>spring-cloud-starter-sleuth</artifactId>
58+
<groupId>io.micrometer</groupId>
59+
<artifactId>micrometer-tracing-bridge-brave</artifactId>
6060
</dependency>
6161
<dependency>
62-
<groupId>org.springframework.cloud</groupId>
63-
<artifactId>spring-cloud-sleuth-zipkin</artifactId>
62+
<groupId>io.zipkin.reporter2</groupId>
63+
<artifactId>zipkin-reporter-brave</artifactId>
6464
</dependency>
6565
<dependency>
6666
<groupId>org.springframework.boot</groupId>
@@ -77,6 +77,12 @@
7777
<groupId>org.springframework.boot</groupId>
7878
<artifactId>spring-boot-starter-test</artifactId>
7979
<scope>test</scope>
80+
<exclusions>
81+
<exclusion>
82+
<groupId>org.xmlunit</groupId>
83+
<artifactId>xmlunit-core</artifactId>
84+
</exclusion>
85+
</exclusions>
8086
</dependency>
8187
</dependencies>
8288
<dependencyManagement>

publisher-subscriber-common/pom.xml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>org.springframework.boot</groupId>
77
<artifactId>spring-boot-starter-parent</artifactId>
8-
<version>2.5.2</version>
8+
<version>3.3.5</version>
99
<relativePath/> <!-- lookup parent from repository -->
1010
</parent>
1111
<groupId>com.lsefiane</groupId>
@@ -14,7 +14,7 @@
1414
<name>publisher-subscriber-common</name>
1515
<description>Spring Boot JMS with ActiveMQ Publisher/Subscriber Common</description>
1616
<properties>
17-
<java.version>11</java.version>
17+
<java.version>17</java.version>
1818
</properties>
1919
<dependencies>
2020
<dependency>
@@ -37,6 +37,12 @@
3737
<groupId>org.springframework.boot</groupId>
3838
<artifactId>spring-boot-starter-test</artifactId>
3939
<scope>test</scope>
40+
<exclusions>
41+
<exclusion>
42+
<groupId>org.xmlunit</groupId>
43+
<artifactId>xmlunit-core</artifactId>
44+
</exclusion>
45+
</exclusions>
4046
</dependency>
4147
</dependencies>
4248
</project>

subscriber-service/pom.xml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.springframework.boot</groupId>
88
<artifactId>spring-boot-starter-parent</artifactId>
9-
<version>2.5.2</version>
9+
<version>3.3.5</version>
1010
<relativePath /> <!-- lookup parent from repository -->
1111
</parent>
1212
<groupId>com.lsefiane</groupId>
@@ -15,8 +15,8 @@
1515
<name>subscriber-service</name>
1616
<description>Spring Boot JMS with ActiveMQ Publisher</description>
1717
<properties>
18-
<java.version>11</java.version>
19-
<spring-cloud.version>2020.0.3</spring-cloud.version>
18+
<java.version>17</java.version>
19+
<spring-cloud.version>2023.0.3</spring-cloud.version>
2020
</properties>
2121
<dependencies>
2222
<dependency>
@@ -51,12 +51,12 @@
5151
</exclusions>
5252
</dependency>
5353
<dependency>
54-
<groupId>org.springframework.cloud</groupId>
55-
<artifactId>spring-cloud-starter-sleuth</artifactId>
54+
<groupId>io.micrometer</groupId>
55+
<artifactId>micrometer-tracing-bridge-brave</artifactId>
5656
</dependency>
5757
<dependency>
58-
<groupId>org.springframework.cloud</groupId>
59-
<artifactId>spring-cloud-sleuth-zipkin</artifactId>
58+
<groupId>io.zipkin.reporter2</groupId>
59+
<artifactId>zipkin-reporter-brave</artifactId>
6060
</dependency>
6161
<dependency>
6262
<groupId>org.springframework.boot</groupId>
@@ -73,6 +73,12 @@
7373
<groupId>org.springframework.boot</groupId>
7474
<artifactId>spring-boot-starter-test</artifactId>
7575
<scope>test</scope>
76+
<exclusions>
77+
<exclusion>
78+
<groupId>org.xmlunit</groupId>
79+
<artifactId>xmlunit-core</artifactId>
80+
</exclusion>
81+
</exclusions>
7682
</dependency>
7783
</dependencies>
7884
<dependencyManagement>
@@ -113,5 +119,4 @@
113119
</plugin>
114120
</plugins>
115121
</build>
116-
117122
</project>

0 commit comments

Comments
 (0)