Configuring the Booking service

Booking is a component of .

It is an application built with Spring Boot.

In the application.yaml file, you can configure the parameters described below.

Server settings

Port at which to start the application.

Parameter Description Default value
server.port Server port 9090

Java Spring framework properties

Parameter Description Default value
spring.datasource.url Database location jdbc:postgresql://localhost:15432/seatmap
spring.datasource.username Username for connecting to the database seatmap
spring.datasource.password Password for connecting to the database postgres
spring.datasource.hikari.connection-timeout Connection timeout 60000 (sixty seconds)
spring.datasource.hikari.maximum-pool-size Maximum pool size 20
spring.datasource.driver-class-name JDBC driver for communicating with the database org.postgresql.Driver
spring.data.redis.host Redis server host localhost
spring.data.redis.port Redis server port 16379

Delimiter settings

Composite key delimiter (sector;;row;;seat).

Parameter Description Default value
export.delimiter Delimiter ;;

Services

Parameter Description Default value
seatmap.path.metrics Where to send metrics https://stat.seatmap.pro/booking-metrics
seatmap.path.editor Where the editor service is running http://localhost:8080

Booking sessions

Parameter Description Default value
seatmap.session.enabled Serve the booking-session endpoints; false leaves them unregistered true
seatmap.session.ttl-seconds Hold time of an active session; every lock and unlock restarts it 900
seatmap.session.pending-grace-seconds Payment grace after checkout 600
seatmap.session.max-seats Upper bound per session, counted as seats plus general-admission capacity 10
seatmap.session.reaper-batch-size Expired sessions released per sweep batch 100
seatmap.session.reaper-max-batches Batches per sweep 10
seatmap.session.reaper-interval-ms Interval of the expiry sweep 15000

Springdoc settings

Automatic document generation settings.

Parameter Description Default value
springdoc.pathsToMatch List of paths to match /api/private/**
springdoc.writer-with-order-by-keys Whether to enable a deterministic/alphabetical ordering true