Skip to content

Commit

Permalink
fix(docs): kafka docs (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndresFelipe11 authored Aug 30, 2024
1 parent 28a7b74 commit d0b4ad0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions docs/docs/reactive-commons/1-getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ To enter the Kafka UI, open your browser and go to `http://localhost:8081`
## Spring Boot Application

The Spring Boot sample publishes and consumes messages with the `DomainEventBus`. This application illustrates how to
configure Reactive Commons using RabbitMQ in a Spring Boot environment.
configure Reactive Commons using Kafka in a Spring Boot environment.

To build your own application using the Reactive Commons API, you need to include a dependency to Reactive Commons.

Expand All @@ -210,7 +210,7 @@ dependencies {

Also you need to include the name for your app in the `application.properties`, it is important because this value will
be used
to name the application queues inside RabbitMQ:
to name the application group-id inside Kafka:

```properties
spring.application.name=MyAppName
Expand All @@ -224,7 +224,7 @@ spring:
name: MyAppName
```

You can set the RabbitMQ connection properties through spring boot with
You can set the Kafka connection properties through spring boot with
the [`spring.kafka.*` properties](https://docs.spring.io/spring-boot/docs/current/reference/html/application-properties.html)

```yaml
Expand All @@ -235,7 +235,7 @@ spring:

You can also set it in runtime for example from a secret, so you can create the `KafkaProperties` bean like:

```java title="org.reactivecommons.async.rabbit.config.RabbitProperties"
```java title="org.reactivecommons.async.kafka.config.KafkaProperties"
@Configuration
public class MyKafkaConfig {
Expand Down
8 changes: 4 additions & 4 deletions docs/docs/reactive-commons/9-configuration-properties.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ You can override this settings programmatically through a `AsyncKafkaPropsDomain
```java
package sample;
import org.reactivecommons.async.rabbit.config.RabbitProperties;
import org.reactivecommons.async.rabbit.config.props.AsyncProps;
import org.reactivecommons.async.rabbit.config.props.AsyncRabbitPropsDomainProperties;
import org.reactivecommons.async.kafka.config.KafkaProperties;
import org.reactivecommons.async.kafka.config.props.AsyncProps;
import org.reactivecommons.async.kafka.config.props.AsyncKafkaPropsDomainProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Primary;
Expand All @@ -163,7 +163,7 @@ public class MyDomainConfig {
KafkaProperties propertiesApp = new KafkaProperties();
propertiesApp.setBootstrapServers(List.of("localhost:9092"));
RabbitProperties propertiesAccounts = new RabbitProperties();
KafkaProperties propertiesAccounts = new KafkaProperties();
propertiesAccounts.setBootstrapServers(List.of("localhost:9093"));
return AsyncKafkaPropsDomainProperties.builder()
Expand Down

0 comments on commit d0b4ad0

Please sign in to comment.