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

[native] Add Prestissimo documentation page to Developer Guide #20564

Merged
merged 1 commit into from
Aug 15, 2023

Conversation

pedroerp
Copy link
Contributor

Adding a new documentation page for Prestissimo to the Developer Guide, and adding some of the configuration parameters for remote function execution.

== NO RELEASE NOTE ==

@pedroerp pedroerp requested a review from a team as a code owner August 14, 2023 23:09
@github-actions
Copy link

github-actions bot commented Aug 14, 2023

Codenotify: Notifying subscribers in CODENOTIFY files for diff 6f332a3...1dbf8e5.

Notify File(s)
@steveburnett presto-docs/src/main/sphinx/develop/presto-native.rst

Copy link
Contributor

@tdcmeehan tdcmeehan left a comment

Choose a reason for hiding this comment

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

Couple of minor but important nits, otherwise great document to build on. :) CC: @steveburnett for docs review

===========================

Prestissimo is a C++ drop-in replacement for Presto workers based on the Velox
library. It implements the same RESTful API as Java workers using the Proxygen
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
library. It implements the same RESTful API as Java workers using the Proxygen
library. It implements the same RESTful endpoints as Java workers using the Proxygen

I would avoid using the word API because I would argue Presto doesn't have an API, it has an SPI.

Prestissimo is a C++ drop-in replacement for Presto workers based on the Velox
library. It implements the same RESTful API as Java workers using the Proxygen
C++ HTTP framework. Since communication with the Java coordinator and across
workers in only done via the REST APIs, Prestissimo does not use JNI and it is
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
workers in only done via the REST APIs, Prestissimo does not use JNI and it is
workers in only done via the REST endpoints, Prestissimo does not use JNI and it is

Prestissimo is a C++ drop-in replacement for Presto workers based on the Velox
library. It implements the same RESTful API as Java workers using the Proxygen
C++ HTTP framework. Since communication with the Java coordinator and across
workers in only done via the REST APIs, Prestissimo does not use JNI and it is
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggest "workers is only done", not "in".
Also, suggest not using Latin terms such as via. Consider alternatives such as with, through, or by using. (Reference: see "via" in Gitlab's documentation style guide.)

Other HTTP endpoints include:

* POST: v1/memory
* This just reports memory, but no assignments are adjusted unlike in Java
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* This just reports memory, but no assignments are adjusted unlike in Java
* This reports memory, but no assignments are adjusted unlike in Java

* **Default value:** ``0``

The port that hosts the remote function server. If not specified and remote
functions are trying to be registered, throws.
Copy link
Contributor

Choose a reason for hiding this comment

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

It feels like something, maybe only a word or two, is missing after "throws".

* **Type:** ``string``
* **Default value:** ``""``

The local filesystem path where json files containing remote function
Copy link
Contributor

Choose a reason for hiding this comment

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

"JSON file" is capitalized in the previous paragraph but not in this paragraph. Consider standardizing how "json file" is capitalized throughout the document for consistency.

@steveburnett
Copy link
Contributor

Great work! I made a few minor comments about consistency and style, but the overall structure, organization, and content looks very good.

@pedroerp
Copy link
Contributor Author

Thanks @tdcmeehan and @steveburnett for the quick review! Comments are addressed, please take another look when you have a moment.

Copy link
Contributor

@tdcmeehan tdcmeehan left a comment

Choose a reason for hiding this comment

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

Thank you!

* **Default value:** ``0``

The port that hosts the remote function server. If not specified and remote
functions are trying to be registered, and exception is thrown.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
functions are trying to be registered, and exception is thrown.
functions are trying to be registered, an exception is thrown.

Copy link
Contributor

@steveburnett steveburnett left a comment

Choose a reason for hiding this comment

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

Looks great, thanks for all the changes! I found one (1) typo I marked a comment on you might consider if it's worth fixing now or not.

Adding a new documentation page for Prestissimo to the Developer Guide,
and adding some of the configuration parameters for remote function
execution.
@pedroerp
Copy link
Contributor Author

Fixed the last typo. Thank you guys!

@pedroerp pedroerp merged commit 1753d68 into master Aug 15, 2023
50 checks passed
@ethanyzhang ethanyzhang deleted the prestissimo-docs branch November 1, 2024 07:32
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