Skip to content

Commit b287487

Browse files
Improving Read.me
1 parent 822a1e1 commit b287487

File tree

1 file changed

+99
-1
lines changed

1 file changed

+99
-1
lines changed

README.md

Lines changed: 99 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,101 @@
1-
# SpringBootWebRabbitMQAndKafka
1+
# Spring Boot Web RabbitMQ And Kafka
22

33
![Java CI](https://github.com/ricardo-ribeiro/SpringBootWebRabbitMQAndKafka/workflows/Java%20CI/badge.svg)
4+
5+
6+
# Running Docker Services
7+
8+
```bash
9+
cd docker
10+
docker-compose up
11+
```
12+
13+
# Running the Application
14+
```bash
15+
./gradlew build bootRun
16+
```
17+
18+
# Configuration
19+
20+
21+
- Default Port: 5757
22+
23+
./src/main/resources/application.yml
24+
25+
```yml
26+
server:
27+
port: 5757
28+
29+
logging.level.root: INFO
30+
31+
spring:
32+
application:
33+
name: ExampleApp
34+
h2:
35+
console:
36+
enabled: true
37+
cloud:
38+
stream:
39+
defaultBinder: rabbit
40+
bindings:
41+
globalEventsInput:
42+
binder: kafka
43+
destination: global_events
44+
content-type: application/json
45+
group: input-group-1
46+
globalEventsOutput:
47+
binder: kafka
48+
destination: global_events
49+
group: output-group-1
50+
content-type: application/json
51+
paymentsReceived:
52+
binder: rabbit
53+
destination: queue.payment.received
54+
group: payments
55+
paymentValidated:
56+
binder: rabbit
57+
destination: queue.payment.validated
58+
group: payments
59+
60+
binders:
61+
kafka:
62+
type: kafka
63+
environment:
64+
spring.cloud.stream.kafka:
65+
binder:
66+
brokers: localhost
67+
defaultBrokerPort: 9092
68+
bindings:
69+
globalEventsOutput:
70+
producer:
71+
configuration:
72+
key.serializer: org.apache.kafka.common.serialization.StringSerializer
73+
globalEventsInput:
74+
consumer:
75+
configuration:
76+
isolation.level: read_committed # In case of Transactional Produced, Otherwise read_uncommitted
77+
rabbit:
78+
type: rabbit
79+
environment:
80+
spring:
81+
cloud:
82+
stream:
83+
rabbit:
84+
bindings:
85+
paymentsReceived:
86+
consumer:
87+
autoBindDlq: true
88+
requeueRejected: true
89+
republishToDlq: true
90+
paymentValidated:
91+
producer:
92+
autoBindDlq: true
93+
republishToDlq: true
94+
rabbitmq:
95+
host: localhost
96+
port: 5672
97+
username: guest
98+
password: guest
99+
```
100+
101+

0 commit comments

Comments
 (0)