Skip to content

Commit d938d8b

Browse files
author
Alexander Furer
committed
formatting
1 parent a52fa3e commit d938d8b

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

README.adoc

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
= Spring boot starter for http://www.grpc.io/[gRPC framework.]
2+
ifdef::env-github[]
3+
:tip-caption: :bulb:
4+
:note-caption: :information_source:
5+
:important-caption: :heavy_exclamation_mark:
6+
:caution-caption: :fire:
7+
:warning-caption: :warning:
8+
endif::[]
29
:toc:
310

411
image:https://img.shields.io/maven-central/v/io.github.lognet/grpc-spring-boot-starter.svg?label=Maven%20Central[link=https://search.maven.org/search?q=g:%22io.github.lognet%22%20AND%20a:%22grpc-spring-boot-starter%22]
@@ -261,7 +268,11 @@ This gives you the ability to setup the desired order of built-in and your custo
261268

262269
The way grpc interceptor works is that it intercepts the call and returns the server call listener, which in turn can intercept the request message as well, before forwarding it to the actual service call handler :
263270

264-
`interceptor_1(interceptCall)` -> `interceptor_2(interceptCall)` -> `interceptor_3(interceptCall)` -> `interceptor_1(On_Message)`-> `interceptor_2(On_Message)`-> `interceptor_3(On_Message)`-> `actual service call`
271+
****
272+
`interceptor_1(interceptCall)` -> `interceptor_2(interceptCall)` -> `interceptor_3(interceptCall)` -> +
273+
`interceptor_1(On_Message)`-> `interceptor_2(On_Message)`-> `interceptor_3(On_Message)`-> +
274+
`actual service call`
275+
****
265276
266277
By setting `grpc.security.auth.fail-fast` property to `false` all downstream interceptors as well as all upstream interceptors (On_Message) will still be executed +
267278
@@ -270,11 +281,19 @@ Assuming `interceptor_2` is `securityInterceptor` :
270281
* For failed authentication/authorization with `grpc.security.auth.fail-fast=true`(default): +
271282
+
272283
273-
`interceptor_1(interceptCall)` -> `securityInterceptor(interceptCall)` - *Call is Closed* -> +++<del>+++ -> `interceptor_3(interceptCall)` -> `interceptor_1(On_Message)`-> `securityInterceptor(On_Message)`-> `interceptor_3(On_Message)`-> `actual service call`+++</del>+++
284+
****
285+
`interceptor_1(interceptCall)` -> `securityInterceptor(interceptCall)` - *Call is Closed* -> +++<del>+++ `interceptor_3(interceptCall)` -> +
286+
`interceptor_1(On_Message)`-> `securityInterceptor(On_Message)`->`interceptor_3(On_Message)`-> +
287+
`actual service call`+++</del>+++
288+
****
274289
275290
* For failed authentication/authorization with `grpc.security.auth.fail-fast=false`: +
276291
+
277-
`interceptor_1(interceptCall)` -> `securityInterceptor(interceptCall)` -> `interceptor_3(interceptCall)` -> `interceptor_1(On_Message)`-> `securityInterceptor(On_Message)` - *Call is Closed* -> +++<del>+++-> `interceptor_3(On_Message)`-> `actual service call`+++</del>+++
292+
****
293+
`interceptor_1(interceptCall)` -> `securityInterceptor(interceptCall)` -> `interceptor_3(interceptCall)` ->
294+
`interceptor_1(On_Message)`-> `securityInterceptor(On_Message)` - *Call is Closed* +++<del>+++-> `interceptor_3(On_Message)`-> +
295+
`actual service call`+++</del>+++
296+
****
278297
279298
=== Distributed tracing support (Spring Cloud Sleuth integration)
280299

0 commit comments

Comments
 (0)