Skip to content

Commit 71b45de

Browse files
author
Alexander Furer
committed
formatting
1 parent 96930e7 commit 71b45de

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

README.adoc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -489,8 +489,7 @@ class MyGrpcService extends ...{
489489

490490

491491

492-
Theoretically, and as you can see - https://github.com/LogNet/grpc-spring-boot-starter/issues/187[practically], there is small time-span when client (if the network latency is minimal, and your grpc server encouraged context switch right after +++<i class="conum" data-value="2"></i>
493-
+++) can try to access the database via another grpc call *before* the transaction is committed.
492+
Theoretically, and as you can see - https://github.com/LogNet/grpc-spring-boot-starter/issues/187[practically], there is small time-span when client (if the network latency is minimal, and your grpc server encouraged context switch right after <2>) can try to access the database via another grpc call *before* the transaction is committed.
494493

495494
The solution to overcome this situation is to externalize the transactional logic into separate service class :
496495

@@ -511,7 +510,6 @@ class MyGrpcService extends ...{
511510
@Autowired
512511
private MyService myService;
513512
514-
515513
public void rpcCall(Req request, StreamOvserver<Res> observer) {
516514
Res response = myService.doTransactionalWork();
517515
observer.onNext(response); //<3>

0 commit comments

Comments
 (0)