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

A new test type that involves outgoing REST communication #9615

Open
martintmk opened this issue Mar 4, 2025 · 1 comment
Open

A new test type that involves outgoing REST communication #9615

martintmk opened this issue Mar 4, 2025 · 1 comment

Comments

@martintmk
Copy link

In modern applications, especially in microservice architectures, outgoing REST calls play a critical role in communication with external APIs and services. While the current test suite covers many scenarios, there isn’t a dedicated test type that evaluates the performance of HTTP clients during these REST interactions.

The idea is to create a test that simulates a typical REST communication flow, which would involve:

  • Constructing and sending an HTTP request.
  • Serializing the request payload.
  • Receiving the response.
  • Deserializing the response.

This test would effectively assess the performance and robustness of various HTTP clients across different frameworks and languages. By using a minimal REST dependency as the data source (instead of a database, as in some of our current tests), it can directly measure client-side REST handling capabilities.

The specification for the new test type is TBD (it could be just a variation of existing single database query). I am just wondering if you would entertain such idea before investing more time into it.

@joanhey
Copy link
Contributor

joanhey commented Apr 12, 2025

I think that is the same that the single database query.
The json encode-decode are similar in performance, in all frameworks.

PD: some fws have worst performance decoding application/x-www-form-urlencoded and multipart/form-data.

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

No branches or pull requests

2 participants