12 Commits

Author SHA1 Message Date
Dave Syer
08988c042f Add default service config to GrpcClientProperties
Ensure that it doesn't conflict with health service configuration.

Also ensure random port is used in all tests.

Fixes gh-171 (as far as we can)
2025-06-16 09:22:23 +01:00
Dave Syer
38eed22a0f Revert to src/main/proto for samples 2025-05-30 10:47:25 +01:00
Andrey Litvitski
f598916c19 switch maven samples to ascopes/protobuf-maven-plugin protoc plugin (#179)
Signed-off-by: Andrey Litvitski <andrey1010102008@gmail.com>
2025-05-21 20:41:53 +01:00
Dave Syer
d8995bb59a Add support for @EnableGrpcClients
Automatic bean definition registration for stubs

Fixes #91
2025-03-07 08:56:30 +00:00
Dave Syer
ae46cdffe5 Remove native-image.properties in samples 2025-03-03 10:50:36 +00:00
Dave Syer
d43823c575 Wrists slapped 2025-01-22 07:59:59 +00:00
Dave Syer
8219e26c1e Make sample run OOTB with 2 ports 2025-01-22 07:55:44 +00:00
Dave Syer
e0a744ba25 Add stack walker to discover main class 2025-01-06 15:15:23 +00:00
Andrey Litvitski
ddef9007af Disable in-process transport by default and add @AutoConfigureInProcessTransport annotation 2025-01-06 14:07:04 +00:00
Chris Bono
81990f0fd6 Use channel factory API w/o customizer in tests 2025-01-03 22:04:28 +00:00
Chris Bono
b08e11ad39 Improve channel factory API
This commit improves the GrpcChannelFactory createChannel API by
introducing `ChannelBuilderOptions` that can be specified during
channel creation.

Additionally, concrete Netty channel factory implementations have
been added as well as adding type to the GrpcChannelBuilderCustomizer
which helps match customizers to channel factories.
2025-01-03 22:04:28 +00:00
Dave Syer
b3271be918 Add explicit support for running on separate port
If the user wants a second port for gRPC that should be possible
(and was the only way with the old ecosystem projects). This change
adds a webflux sample and support for
spring.grpc.server.{servlet,reactive}.enabled to be explicitly
"false" to disable the embedded services.

N.B. embedded services are not yet supported in webflux so the flag
has no effect, except to disable gRPC completely if it is "true".
2024-12-23 15:02:45 +00:00