Skip to content
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

Introduction to GRPC blog #239

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

hegek87
Copy link

@hegek87 hegek87 commented Jan 25, 2023

No description provided.

Comment on lines +171 to +174
reference. You can find on the application available on repository, shared on this article, some additional configurations
related to the familiar spring patterns. Among other things, we have a `@Configuration` class which is used to configure
our gRPC server to be running inside our spring application. In this configuratioon, `DerivativeCalculatorService`
houses our previously shown derivative logic.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
reference. You can find on the application available on repository, shared on this article, some additional configurations
related to the familiar spring patterns. Among other things, we have a `@Configuration` class which is used to configure
our gRPC server to be running inside our spring application. In this configuratioon, `DerivativeCalculatorService`
houses our previously shown derivative logic.
reference. You can find in the application available on the repository and shared in this article some additional configurations related to the familiar spring patterns. Among other things, we have a `@Configuration` class to configure our gRPC server to run inside our spring application. In this configuration, `DerivativeCalculatorService` houses our previously shown derivative logic.

Comment on lines +216 to +218
Feel free to play around with the example and try other simple polynomials. Some caveats when using this, be aware that
some requirements exist, for one, our polynomials we send include all exponents and coefficients (even 1 and 0), and
that’s why we see `1x^1 + 1x^0` instead of `x + 1`, this is simply due to our simple parsing of the string polynomial.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Feel free to play around with the example and try other simple polynomials. Some caveats when using this, be aware that
some requirements exist, for one, our polynomials we send include all exponents and coefficients (even 1 and 0), and
that’s why we see `1x^1 + 1x^0` instead of `x + 1`, this is simply due to our simple parsing of the string polynomial.
Feel free to play around with the example and try other simple polynomials. Some caveats when using this, be aware that the polynomials we send to the server must include all exponents and coefficients (even 1 and 0), and
that’s why we see `1x^1 + 1x^0` instead of `x + 1`. This is simply due to our simple parsing of the string polynomial.


We’ve now completed our simple GRPC example, this has a small protobuf definition, but these can be much more complex,
if needed. We also created a simple docker configuration to get everything running locally and communication between
the service and client.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a conclusion and call to action pls! This was a really fun exercise to read about!

Comment on lines +63 to +64
It seems like we have two simple ways to represent the polynomial, a naive way (which we handle in our rest
call) to do this is by sending it as a raw string. While this works, it could be cumbersome, as we will
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 simple ways... maybe state what they are first then go into the details?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants