66 lines
2.1 KiB
YAML
66 lines
2.1 KiB
YAML
server:
|
|
port: 8183
|
|
|
|
logging:
|
|
level:
|
|
com.food.ordering.system: DEBUG
|
|
|
|
restaurant-service:
|
|
restaurant-approval-request-topic-name: restaurant-approval-request-value
|
|
restaurant-approval-response-topic-name: restaurant-approval-response-value
|
|
outbox-scheduler-fixed-rate: 10000
|
|
outbox-scheduler-initial-delay: 10000
|
|
|
|
spring:
|
|
jpa:
|
|
open-in-view: false
|
|
show-sql: true
|
|
database-platform: org.hibernate.dialect.PostgreSQL9Dialect
|
|
properties:
|
|
hibernate:
|
|
dialect: org.hibernate.dialect.PostgreSQL9Dialect
|
|
datasource:
|
|
url: jdbc:postgresql://localhost:5432/postgres?currentSchema=restaurant&binaryTransfer=true&reWriteBatchedInserts=true&stringtype=unspecified
|
|
username: postgres
|
|
password: admin
|
|
driver-class-name: org.postgresql.Driver
|
|
platform: postgres
|
|
schema: classpath:init-schema.sql
|
|
data: classpath:init-data.sql
|
|
initialization-mode: always
|
|
|
|
kafka-config:
|
|
bootstrap-servers: localhost:19092, localhost:29092, localhost:39092
|
|
schema-registry-url-key: schema.registry.url
|
|
schema-registry-url: http://localhost:8081
|
|
num-of-partitions: 3
|
|
replication-factor: 3
|
|
|
|
kafka-producer-config:
|
|
key-serializer-class: org.apache.kafka.common.serialization.StringSerializer
|
|
value-serializer-class: io.confluent.kafka.serializers.KafkaAvroSerializer
|
|
compression-type: snappy
|
|
acks: all
|
|
batch-size: 16384
|
|
batch-size-boost-factor: 100
|
|
linger-ms: 5
|
|
request-timeout-ms: 60000
|
|
retry-count: 5
|
|
|
|
kafka-consumer-config:
|
|
key-deserializer: org.apache.kafka.common.serialization.StringDeserializer
|
|
value-deserializer: io.confluent.kafka.serializers.KafkaAvroDeserializer
|
|
restaurant-approval-consumer-group-id: restaurant-approval-topic-consumer
|
|
auto-offset-reset: earliest
|
|
specific-avro-reader-key: specific.avro.reader
|
|
specific-avro-reader: true
|
|
batch-listener: true
|
|
auto-startup: true
|
|
concurrency-level: 3
|
|
session-timeout-ms: 10000
|
|
heartbeat-interval-ms: 3000
|
|
max-poll-interval-ms: 300000
|
|
max-poll-records: 500
|
|
max-partition-fetch-bytes-default: 1048576
|
|
max-partition-fetch-bytes-boost-factor: 1
|
|
poll-timeout-ms: 150 |