4D Training & Consultancy

Software Development

Building Microservices with Java and Spring Boot

A build-focused programme for teams delivering services with Spring Boot. Across five days participants develop REST APIs with validation, persistence, and externalized configuration, then add resilience, observability, and container packaging until the service is ready to run somewhere other than a laptop.

5 daysIn-house, online, or customized deliveryCorporate teams and professional groupsLevel: Intermediate to Advanced

Overview

Practical learning for workplace transfer.

Spring Boot makes the first service easy and the fifth one dangerous. Teams accumulate services that quietly share a database, call each other synchronously in long chains, log in three different formats, and fail in ways no one can trace across a request. This programme builds a service properly from the first commit: configuration and profiles, request validation, transactional persistence, a consistent error contract, timeouts and retries, structured logging with correlation identifiers, health and metrics endpoints, and a container image sized for production. Service boundaries and data ownership are treated as design decisions taken up front, not as deployment details discovered later.

Prerequisites

Solid Java development experience and familiarity with HTTP and relational databases. Prior Spring exposure is helpful but not required.

Objectives

  • Build a Spring Boot service with layered REST endpoints, validation, and consistent error responses.
  • Externalize configuration with profiles and properties while keeping secrets out of the codebase.
  • Implement persistence with Spring Data JPA, explicit transaction boundaries, and managed schema migrations.
  • Apply timeouts, retries, and circuit breakers so one slow dependency cannot take the platform down.
  • Instrument services with structured logs, metrics, health checks, and distributed tracing.
  • Define service boundaries and inter-service contracts that permit independent deployment.

Target audience

  • Java backend developers building or maintaining Spring Boot services
  • Software architects defining service boundaries and integration contracts
  • Platform and DevOps engineers packaging and operating Java workloads
  • API developers accountable for public and internal REST contracts
  • Teams decomposing a monolithic Java application into deployable services
  • Technical leads setting service standards across several delivery squads

Program outline

A clear structure for the learning journey.

Outline points are grouped in one designed block instead of being treated as separate module cards.

6modules24topics
  1. 01Spring Boot Foundations and Configuration4 topics
    • Dependency injection, component scanning, and auto-configuration explained
    • Application properties, profiles, and environment-specific configuration
    • Externalized secrets and configuration that varies safely between environments
    • Project structure, starters, and keeping the dependency surface small
  2. 02REST APIs, Validation, and Error Contracts4 topics
    • Resource design, HTTP semantics, and versioning that clients can follow
    • Request and response models governed by Bean Validation constraints
    • Centralized exception handling and one predictable error payload
    • API documentation generated from the code and kept honest over time
    • Spring Data JPA repositories, query methods, and the N+1 select problem
    • Transaction boundaries, propagation, and isolation inside service code
    • Schema migrations with Flyway or Liquibase inside the deployment pipeline
    • One database per service: what changes when tables can no longer be joined
    • Splitting by business capability rather than by technical layer
    • Synchronous REST calls, the coupling they create, and failure propagation
    • Asynchronous messaging, event ordering, and eventual consistency trade-offs
    • Contract testing between producer and consumer services
    • Timeouts, connection pools, and bounded thread usage on every call path
    • Retries, backoff, idempotency, and avoiding retry storms
    • Circuit breakers, bulkheads, and deliberate graceful degradation
    • Virtual threads and their effect on blocking service workloads
    • Structured logging carrying correlation and trace identifiers
    • Application metrics with Micrometer and health checks with Actuator
    • Distributed tracing across service hops and asynchronous boundaries
    • Container images, layered builds, resource limits, and startup tuning

Materials provided

  • Course workbook, annotated code samples, and reference notes
  • Hands-on lab environment and starter repositories
  • Exercises, checklists, and reusable code templates
  • 4D Certificate of Completion
  • Post-course technical guidance

Training Options

Programs can be delivered in-house, online, or in a blended format depending on your team's schedule, location, and learning objectives. When an external certificate or exam is included, certification rules and fees remain under the relevant awarding body's policies, while 4D provides the training and preparation support.

Why choose 4D

4D delivers this programme as a build rather than a lecture series: by day five participants have a running, instrumented Spring Boot service packaged in a container. Trainers bring the operational view into the room, so timeouts, tracing, and image sizing are decided the way your platform team expects Java workloads to behave in production.

Speak to 4D

Plan the right training or consultancy path for your team.

Share a few details and 4D will help route your inquiry toward corporate training, consultancy, assessment, Phoenix-enabled support, or a tailored program.