
Quarkus REST Jackson API Building With Resources and DTOs
Build a REST API in Quarkus with the quarkus-rest and quarkus-rest-jackson extensions: resources, DTO records, status codes, exception mappers and a test.
Dev mode, build-time wiring, GraalVM native images and keeping a service small enough to start in milliseconds.

Build a REST API in Quarkus with the quarkus-rest and quarkus-rest-jackson extensions: resources, DTO records, status codes, exception mappers and a test.

Validate input in Quarkus with Hibernate Validator: constraints on request records, Valid on resources, method parameters and a custom error response.

Secure a Quarkus service with OIDC and Keycloak: bearer token mode, Dev Services for Keycloak, role based access with annotations and testing with tokens.

Run periodic and cron jobs in Quarkus with the Scheduler extension, handle concurrency and identity, and switch to Quartz for clustered, persistent jobs.

Produce and consume Kafka messages in Quarkus with SmallRye Reactive Messaging: channels, @Incoming and @Outgoing, acknowledgement and Dev Services.

Call other HTTP services from Quarkus with the REST Client: an annotated interface, configuration, headers, error mapping, timeouts and testing with mocks.

Make Quarkus calls resilient with SmallRye Fault Tolerance: @Timeout, @Retry, @CircuitBreaker, @Fallback and @Bulkhead, with sensible values and their limits.

Add health checks, Micrometer metrics and OpenTelemetry tracing to a Quarkus service: the extensions, endpoints, custom checks and settings for Kubernetes.

Write Quarkus tests with @QuarkusTest: how the application boots once per run, REST Assured, injecting beans, test profiles, resources and continuous testing.

Replace a bean with a Mockito mock in a Quarkus test using @InjectMock, understand scope rules, Mockito.when stubs and when to use alternatives or a CDI mock.

Compare Micronaut and Quarkus on developer experience: project setup, dev mode, dependency injection, testing, extensions, native builds and documentation.

Build a Quarkus native executable with Mandrel or GraalVM: the native profile, build commands, what you gain and lose, build time and memory, and testing it.
We send one email when a new post is published. No spam.