-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for GRPC Endpoints #77
Comments
@c5racing Thanks for your interest in DTM. DTM support both GRPC endpoints and REST endpoint. What kind of examples do you need? |
In all of the DTM examples, calling a GRPC service appears to rely on calling a URL specifically, not using the C# service Client. See my vary simple example below, I am calling two GRPC Services using the Service Client, and comparing the result for my return value. If I implement DTM, can I use the C# Service Client and how do I get access to the result of each GRPC call, assuming they both succeed? Further, can I use the result of the first call, in the second call and then compensate them both in one or both fail?
|
For SAGA, you can take a look on the following sample. client-csharp/tests/Dtmgrpc.IntegrationTests/SagaGrpcTest.cs Lines 55 to 63 in 585d2aa
You do not need to use C# Service Client, and the DTM server will tell you if the transaction was successful. Take a look on the following link.
Take a look on the log of DTM server. |
All of our microservices are GRPC. I'm interested in using DTM from my aggregator to call multiple GRPC services and if one fails, use DTM to call the compensating transaction.
Can DTM be used to call GRPC endpoints or only REST? I don't see any examples of the GRPC.
The text was updated successfully, but these errors were encountered: