Skip to content
CAI
Software that uses CAICheck a score

meysamhadeli/booking-microservices-java-spring-boot

61.4

Adequate · 9 November 2026

7.6k

lines of production code

Java

primary language

10

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

This system is a Java-based microservices architecture for managing flight and booking operations, structured around an API Gateway that routes and secures requests via OAuth2/JWT. It comprises distinct Booking and Flight services that leverage Spring Boot, JPA, and MongoDB, while coordinating through an event-driven messaging system using RabbitMQ. The codebase includes foundational infrastructure, domain contracts, and testing utilities to support this distributed service mesh.

Features

Added REST client file and project configuration files

The repository now includes a \booking.rest\ file that provides a ready-to-use REST client for testing the API endpoints, including authentication and operations for flights, passengers, and airports. Additionally, \.editorconfig\ and \.gitattributes\ files have been added to standardize code formatting and line endings across the project.

(repo-wide) · high confidence

Added core infrastructure and domain contracts to the building blocks module

The \src/buildingblocks\ area now includes foundational infrastructure and domain contracts. This includes a new event-driven architecture with \EventDispatcher\ and \EventMapper\ interfaces and implementations, alongside specific domain contracts like \BookingCreated\, \FlightCreated\, and \SeatReserved\. Additionally, the module now provides core exception handling classes (e.g., \AppException\, \ValidationException\), base model classes (\AggregateRoot\, \BaseEntity\), and configuration for JPA, Flyway, and Keycloak-based OAuth2 authentication. The directory also contains standard Maven wrapper scripts and configuration files to support the build process.

src/buildingblocks · high confidence

Initial scaffolding for Booking and Flight services

Added the foundational structure for the Booking and Flight microservices. This includes Java source files for domain models (Booking, Trip, PassengerInfo), repositories (JPA and MongoDB), and configuration classes. The Booking service is configured with Spring Boot, integrating with PostgreSQL, MongoDB, RabbitMQ, and gRPC clients for Flight and Passenger services. The Flight service includes similar scaffolding with Thymeleaf support. Both services include Maven wrapper scripts, configuration files (application.yml, application-dev.yml), and database migration scripts.

src/services · high confidence

Introduce API Gateway and new create endpoints for Flight and Booking services

The API Gateway is now available on port 8081, routing requests to the Flight and Booking microservices while enforcing OAuth2/JWT authentication via Spring Security. New REST endpoints have been added: a booking creation endpoint at /api/v1/booking and aircraft/airport creation endpoints at /api/v1/flight/aircraft and /api/v1/flight/airport, each protected by an 'ADMIN' authority requirement.

(repo-wide) · high confidence

Behavioural changes

Added architecture diagram for Java Spring Boot microservices

A new diagram file (assets/booking-microservices-java-spring-boot.drawio) was added to the repository. This visual artifact illustrates the architecture of the booking microservices, detailing the interactions between components such as the API, Keycloak service, and various microservice clusters.

assets · high confidence

Dependencies

Add Maven build configuration for microservices

New Maven POM files have been added for the API gateway, building blocks, and the booking, flight, and passenger services. These configurations establish the project structure and dependencies, including Spring Boot 3.4.1, gRPC 1.57.2, Lombok 1.18.36, and various Spring starters for security, data, and messaging.

(dependencies) · medium confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 60 → 61 (+1.7)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.

Lenses

  • Code Health 75 → 75 (+0.0)
  • Architecture 98 → 98 (-0.1)
  • Maturity 62 → 66 (+3.9)
  • Readiness 48 → 48 (+0.0)
  • Security 71 → 82 (+10.6)
  • Domain Modelling 74 → 74 (+0.0)
  • Performance 100 → 100 (+0.0)

Resolved (2)

  • High CVE: [GHSA redacted] (src/buildingblocks/pom.xml)
  • Medium CVE: [GHSA redacted] (src/buildingblocks/pom.xml)

New (3)

  • High CVE: [GHSA redacted] (src/buildingblocks/pom.xml)
  • High CVE: [GHSA redacted] (src/buildingblocks/pom.xml)
  • Medium CVE: [GHSA redacted] (src/buildingblocks/pom.xml)

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

meysamhadeli/booking-microservices-java-spring-boot was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 9 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit ea481c3ee7ebd405cd7e11d1b1a3ab9b73b5b972 — the exact code this score is about.
  • Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.3+preprod-b921b700395b.