Features | REST API | PC4JS |
Use the language and library or your choice | yes | |
REST or JUMP protocol. The JUMP protocol from previous releases is supported in 3.0 and above, although REST is recommended as the preferred protocol for working with Presto. For more information on JUMP, see the About JUMP topic. | REST | REST |
Asynchronous or synchronous connections | language / library specific | asynch |
Number of users/requests per connection | language / library specific | 1 user / + requests |
Supports named parameters and ordered parameters | named only | named only |
HTTP and HTTPS | language / library specific | yes |
Can set HTTP headers in requests | language / library specific | |
Can access local and remote Presto Servers | yes | yes |
Handles cross-domain requests (specific to remote servers and JavaScript) | requires additional code | yes |
Handles authentication and session management | requires additional code | yes |
Supports guest users (anonymous connections) | requires additional code | yes |
Response formats | Native, JSON or XML, requires additional code | JSON or XML |