armeria-examples
armeria-examples copied to clipboard
Armeria examples
Armeria examples
-
- Learn how to write an HTTP service using annotations.
- See Annotated services.
-
- Learn how to write an HTTP service using annotations with Kotlin Coroutines.
- See Kotlin coroutines support.
-
context-propagation- Learn how to propagate Armeria's
RequestContextfor use in scenarios like tracing. daggerprovides an example using the Dagger asynchronous framework for automatic propagation.manualprovides an example manually propagating the context with Java's standardCompletableFuture.reactorprovides an example using the Reactor asynchronous framework for automatic propagation.rxjavaprovides an example using the RxJava3 asynchronous framework for automatic propagation.
- Learn how to propagate Armeria's
-
- Learn how to write a gRPC service with Armeria gRPC module.
- See Running a gRPC service and Calling a gRPC service.
-
grpc-kotlin- Learn how to write a gRPC service with Armeria gRPC module (Kotlin).
- See Running a gRPC service and Calling a gRPC service.
-
- Learn how to write a gRPC service with Armeria gRPC module,
reactive-grpcand Project Reactor libraries for asynchronous processing with non-blocking back pressure. - See Running a gRPC service and Calling a gRPC service.
- Learn how to write a gRPC service with Armeria gRPC module,
-
- Learn how to make a proxy server which leverages client side load balancing.
- See Client-side load balancing
-
- Learn how to authenticate users using SAML.
- See SAML Single Sign-on.
-
- Learn how to serve Server-Sent Events.
- See Serving Server-Sent Events.
-
- Learn how to use Armeria with the minimal Spring Boot dependencies.
-
spring-boot-minimal-kotlin- Learn how to use Armeria with the minimal Spring Boot dependencies (Kotlin).
-
- Learn how to make Armeria serve your Spring Boot web application.
-
- Learn how to make Armeria serve your Spring Boot reactive web application.
- See Using Armeria with Spring WebFlux.
-
- Learn how to make Armeria serve your Dropwizard web application.
- See Using Armeria with Dropwizard.
-
- Learn how to serve static files.
- See Serving static files.
-
- Learn how to write a Thrift service with Armeria Thrift module.
- See Running a Thrift service and Calling a Thrift service.
- Install Thrift compiler locally before generating Thrift services.
- Use
brew install thriftfor macOS.
- Use
Configure -parameters javac option
You can omit the value of @Param if you compiled your code with -parameters javac option.
Please refer to Configure -parameters javac option for more information.
How to run
- Use
runorbootRuntask to run an example from Gradle. - See Open an existing Gradle project to import an example into IntelliJ IDEA.
- See Configure
-parametersjavac option to configure IntelliJ IDEA. - See Build and run the application to run an example from IntelliJ IDEA.
License
All files under this directory (examples) belong to
the public domain.
Please feel free to copy-and-paste and start your awesome project with Armeria!