Skip to content

Commit 7c13d26

Browse files
author
Alexander Furer
committed
4.5.7 release
1 parent 3194e73 commit 7c13d26

File tree

4 files changed

+48
-7
lines changed

4 files changed

+48
-7
lines changed

README.adoc

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ repositories {
3838
3939
}
4040
dependencies {
41-
compile 'io.github.lognet:grpc-spring-boot-starter:4.5.6'
41+
compile 'io.github.lognet:grpc-spring-boot-starter:4.5.7'
4242
}
4343
4444
@@ -48,7 +48,7 @@ By default, starter pulls `io.grpc:grpc-netty-shaded` as transitive dependency
4848

4949
[source,groovy]
5050
----
51-
compile ('io.github.lognet:grpc-spring-boot-starter:4.5.6') {
51+
compile ('io.github.lognet:grpc-spring-boot-starter:4.5.7') {
5252
exclude group: 'io.grpc', module: 'grpc-netty-shaded'
5353
}
5454
compile 'io.grpc:grpc-netty:1.40.0' // <1>
@@ -327,7 +327,7 @@ you should see the `timer` named `grpc.server.calls`.
327327
==== Custom tags support
328328

329329
By defining `GRpcMetricsTagsContributor` bean in your application context, you can add custom tags to the `grpc.server.calls` timer. +
330-
You can also use `RequestAwareGRpcMetricsTagsContributor` bean to tag *unary* calls. +
330+
You can also use `RequestAwareGRpcMetricsTagsContributor` bean to tag *unary* and *streaming* calls. +
331331
Demo is https://github.com/LogNet/grpc-spring-boot-starter/blob/master/grpc-spring-boot-starter-demo/src/test/java/org/lognet/springboot/grpc/GrpcMeterTest.java[here]
332332

333333
[TIP]
@@ -762,7 +762,6 @@ class MyClient{
762762
<3> Turn the binary format on/off: +
763763
* When `true`, the authentication header is sent with `Authentication-bin` key using https://grpc.github.io/grpc-java/javadoc/io/grpc/Metadata.BinaryMarshaller.html[binary marshaller].
764764
* When `false`, the authentication header is sent with `Authentication` key using https://grpc.github.io/grpc-java/javadoc/io/grpc/Metadata.AsciiMarshaller.html[ASCII marshaller].
765-
766765
<4> Provide token generator function (Please refer to link:grpc-spring-boot-starter-demo/src/test/java/org/lognet/springboot/grpc/auth/JwtAuthBaseTest.java[for example].)
767766

768767
Per-call::
@@ -798,6 +797,11 @@ class MyClient{
798797
.tokenSupplier(()->generateMyCustomToken())
799798
----
800799

800+
== Health check
801+
802+
The starter registers the default implementation of https://github.com/grpc/grpc-java/blob/bab1fe38dc/services/src/main/java/io/grpc/protobuf/services/HealthServiceImpl.java[HealthServiceImpl]. +
803+
You can provide you own by registering link:./grpc-spring-boot-starter/src/main/java/org/lognet/springboot/grpc/health/ManagedHealthStatusService.java[ManagedHealthStatusService] bean in your application context.
804+
801805
== Consul Integration
802806

803807
Starting from version `3.3.0`, the starter will auto-register the running grpc server in Consul registry if `org.springframework.cloud:spring-cloud-starter-consul-discovery` is in classpath and
@@ -809,7 +813,26 @@ Setting `spring.cloud.consul.discovery.register-health-check` to true will regis
809813

810814
Tags could be set by defining `spring.cloud.consul.discovery.tags` property.
811815

812-
You can find the test that demonstrates the feature link:grpc-spring-boot-starter-demo/src/test/java/org/lognet/springboot/grpc/ConsulRegistrationTest.java[here].
816+
There are 3 supported registration modes :
817+
818+
. `SINGLE_SERVER_WITH_GLOBAL_CHECK` (default) +
819+
In this mode the running grpc server is registered as single service with single `grpc` check with empty `serviceId`. +
820+
Please note that default implementation https://github.com/grpc/grpc-java/blob/bab1fe38dc50d4178955b79cfb1636afd2aa64df/services/src/main/java/io/grpc/protobuf/services/HealthServiceImpl.java#L64[does nothing] and simply returns `SERVING` status. You might want to provide your custom <<Health check>> implementation for this mode.
821+
. `SINGLE_SERVER_WITH_CHECK_PER_SERVICE` +
822+
In this mode the running grpc server is registered as single service with check per each discovered `grpc` service.
823+
. `STANDALONE_SERVICES` +
824+
In this mode each discovered grpc service is registered as single service with single check. Each registered service is tagged by its own service name.
825+
826+
[source,yml]
827+
.You can control the desired mode from application.properties
828+
----
829+
grpc:
830+
consule:
831+
registration-mode: SINGLE_SERVER_WITH_CHECK_PER_SERVICE
832+
833+
----
834+
835+
813836

814837
== Eureka Integration
815838

ReleaseNotes.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
| Starter Version | gRPC versions |Spring Boot version
22
| -------------------- |:-------------:|:------------------:|
3+
| [4.5.7](#version-457)| 1.40.1 |2.5.0 |
34
| [4.5.6](#version-456)| 1.40.0 |2.5.0 |
45
| [4.5.5](#version-455)| 1.39.0 |2.5.0 |
56
| [4.5.4](#version-454)| 1.38.0 |2.5.0 |
@@ -25,6 +26,23 @@
2526
| [4.0.0](#version-400)| 1.32.1 |2.3.3.RELEASE |
2627
| [3.5.7](#version-357)| 1.31.1 |1.5.13.RELEASE |
2728

29+
# Version 4.5.7
30+
## :star: New Features
31+
32+
- Support RequestAwareGRpcMetricsTagsContributor for Multiary Calls [#244](https://github.com/LogNet/grpc-spring-boot-starter/issues/244)
33+
- Custom service health check support [#242](https://github.com/LogNet/grpc-spring-boot-starter/issues/242)
34+
35+
## :beetle: Bug Fixes
36+
37+
- Interceptors do not block onHalfClose if they block the message [#240](https://github.com/LogNet/grpc-spring-boot-starter/issues/240)
38+
- Potential race condition when reporting running status of grpc server [#238](https://github.com/LogNet/grpc-spring-boot-starter/issues/238)
39+
40+
## :hammer: Dependency Upgrades
41+
42+
- Upgrade grpc to v1.40.1 [#243](https://github.com/LogNet/grpc-spring-boot-starter/issues/243)
43+
44+
45+
2846
# Version 4.5.6
2947
## :star: New Features
3048

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ gradleErrorPronePluginVersion=2.0.2
55
errorProneVersion=2.7.1
66
lombokVersion=1.18.20
77

8-
version=4.5.7-SNAPSHOT
8+
version=4.5.7
99
group=io.github.lognet
1010
description=Spring Boot starter for Google RPC.
1111
gitHubUrl=https\://github.com/LogNet/grpc-spring-boot-starter

grpc-spring-boot-starter-gradle-plugin/README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Bootstraps the project with `com.google.protobuf` gradle plugin (including `grp
2323
----
2424
plugins {
2525
id 'java'
26-
id "io.github.lognet.grpc-spring-boot" version '4.5.6'
26+
id "io.github.lognet.grpc-spring-boot" version '4.5.7'
2727
}
2828
2929
----

0 commit comments

Comments
 (0)