Microservice experimentation with Quarkus
- Banner customization
- Dev UI -> /q/dev-ui
- Dev services -> https://quarkus.io/guides/dev-services
- Create application
$ quarkus create app xyz.tham:microlab --extension quarkus-rest --no-code
- quarkus update
- quarkus extensions
$ quarkus extension categories
$ quarkus extension list
$ quarkus extension list --installable --category "ai"
(or)
$ quarkus ext list -ic "ai"
- manage extensions
$ quarkus extension add "<artifactid>"
$ quarkus extension remove "<artifactid>"
- Jakarta Annotations
- Jakarta CDI (CDI Lite)
- Jakarta Dependency Injection
- Jakarta Interceptors
- Jakarta JSON Processing
- Jakarta JSON Binding
- Jakarta RESTful Web Services
GET / POST / PUT / DELETE
Query / Mutation / Subscription
x
Manages the application configuration. Refer https://microprofile.io/specifications/config/ for more information
src\main\resources\application.properties
@ConfigProperty(name="<key>")
- prod -> active when application is running in production mode
- dev -> active when application is running in dev mode
- test -> active during tests
- custom -> which can be activated using
quarkus.profileconfiguration property
#1: Add %<profile>. with the configuration property.
%dev.quarkus.http.port=7777
#2: Add -<profile> with the configuration file
application-dev.properties
application-prod.properties
Compile time -> Profile specific configuration properties Runtime:
- System property
- Environment variables
- Configuration property file (application.properties)
Environment property should be capitalized and replace the `.` with `_` value
my.greeting -> MY_GREETING
MY_GREETING="Welcome to earth"
System property should be handled with -D argument
-Dgreeting="Welcome to microlab"
x
x
x
x
x
x