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

Upgrading

Editor-service applies the database migrations when it starts, and booking-service reads the same database. Upgrade booking-service as soon as editor-service reports healthy. The Docker Compose bundle follows this order: it starts booking-service only after editor-service is healthy.

From 1.75.0, deleting an event through the Booking API archives it the way the editor does, and archiving needs this version of booking-service. The event keeps its prices, price assignments and bookings, and it is listed under the ARCHIVED status filter in the Events Hub, where you can restore it as a draft.

Type a feature, setting, endpoint or SDK method.