A Spring Boot 4.1.1 order service started 12 ways (plain and extracted jar, Spring AOT output, AppCDS, AOT cache trained with and without traffic, JDK 27, native image), ten interleaved rounds each, with first-request latency; 24 cache-mismatch cases; Docker layer arithmetic. Transcripts are in output/ (no docs/ folder). Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TF9JWFvJSNm6HVzswzZU5a
15 lines
531 B
Java
15 lines
531 B
Java
package com.ankurm.aotcache;
|
|
|
|
import jakarta.validation.constraints.Email;
|
|
import jakarta.validation.constraints.Max;
|
|
import jakarta.validation.constraints.Min;
|
|
import jakarta.validation.constraints.NotBlank;
|
|
import jakarta.validation.constraints.Pattern;
|
|
|
|
/** The request body of POST /orders. Bean Validation and Jackson both have to work on it. */
|
|
public record NewOrder(
|
|
@NotBlank @Email String customer,
|
|
@NotBlank @Pattern(regexp = "[A-Z]{3}-[0-9]{4}") String sku,
|
|
@Min(1) @Max(1000) int quantity) {
|
|
}
|