Skip to content

Docs for Native Images #2483

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions spring-kafka-docs/src/main/asciidoc/appendix.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,16 @@ include::../docs/generated/spans.adoc[]

include::../docs/generated/conventions.adoc[]

[appendix]
[[native-images]]
== Native Images

https://docs.spring.io/spring-framework/docs/current/reference/html/core.html#aot[Spring AOT] native hints are provided to assist in developing native images for Spring applications that use Spring for Apache Kafka, including hints for AVRO generated classes used in `@KafkaListener` s.

IMPORTANT: `spring-kafka-test` (and, specifically, its `EmbeddedKafkaBroker`) is not supported in native images.

Some examples can be seen in the https://github.com/spring-projects/spring-aot-smoke-tests/tree/main/integration[`spring-aot-smoke-tests` GitHub repository].

[appendix]
[[history]]
== Change History
Expand Down
6 changes: 6 additions & 0 deletions spring-kafka-docs/src/main/asciidoc/whats-new.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ See <<exactly-once>> and https://cwiki.apache.org/confluence/display/KAFKA/KIP-4
Enabling observation for timers and tracing using Micrometer is now supported.
See <<observation>> for more information.

[[x30-Native]]
==== Native Images

Support for creating native images is provided.
See <<native-images>> for more information.

[[x30-global-embedded-kafka]]
==== Global Single Embedded Kafka

Expand Down