-
Notifications
You must be signed in to change notification settings - Fork 23
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
feat: upgrade ZIO http client to improve performance #850
Conversation
ports: | ||
- "9995:9187" | ||
environment: | ||
- DATA_SOURCE_NAME=postgresql://postgres:postgres@holder-db:5432/postgres?sslmode=disable |
Check failure
Code scanning / SonarCloud
PostgreSQL database passwords should not be disclosed
ports: | ||
- "9996:9187" | ||
environment: | ||
- DATA_SOURCE_NAME=postgresql://postgres:postgres@issuer-db:5432/postgres?sslmode=disable |
Check failure
Code scanning / SonarCloud
PostgreSQL database passwords should not be disclosed
Signed-off-by: David Poltorak <[email protected]>
Signed-off-by: David Poltorak <[email protected]>
Signed-off-by: David Poltorak <[email protected]>
Signed-off-by: David Poltorak <[email protected]>
…ance Signed-off-by: David Poltorak <[email protected]>
Signed-off-by: David Poltorak <[email protected]>
Signed-off-by: David Poltorak <[email protected]>
…requests Signed-off-by: Benjamin Voiturier <[email protected]>
…e) to agent's configuration file Signed-off-by: Benjamin Voiturier <[email protected]>
…f the active ZIO Scope Signed-off-by: Benjamin Voiturier <[email protected]>
Signed-off-by: David Poltorak <[email protected]>
Signed-off-by: David Poltorak <[email protected]>
Signed-off-by: David Poltorak <[email protected]>
Signed-off-by: David Poltorak <[email protected]>
Signed-off-by: David Poltorak <[email protected]>
Signed-off-by: David Poltorak <[email protected]>
Signed-off-by: David Poltorak <[email protected]>
Signed-off-by: David Poltorak <[email protected]>
Signed-off-by: David Poltorak <[email protected]>
...-agent/service/server/src/main/scala/io/iohk/atala/agent/notification/WebhookPublisher.scala
Outdated
Show resolved
Hide resolved
prism-agent/service/server/src/main/scala/io/iohk/atala/agent/server/Main.scala
Show resolved
Hide resolved
prism-agent/service/server/src/test/scala/io/iohk/atala/ZioHttpTest.scala
Outdated
Show resolved
Hide resolved
pollux/lib/core/src/main/scala/io/iohk/atala/pollux/core/service/HttpURIDereferencerImpl.scala
Outdated
Show resolved
Hide resolved
Signed-off-by: David Poltorak <[email protected]>
Signed-off-by: David Poltorak <[email protected]>
…error case Signed-off-by: Benjamin Voiturier <[email protected]>
980ad1d
to
53ae046
Compare
Quality Gate passedThe SonarCloud Quality Gate passed, but some issues were introduced. 2 New issues |
# [1.25.0](prism-agent-v1.24.0...prism-agent-v1.25.0) (2024-01-25) ### Features * **prism-agent:** add JWT auth support for agent-admin role ([#840](#840)) ([3ccd56e](3ccd56e)) * upgrade ZIO http client to improve performance ([#850](#850)) ([7aa9b4c](7aa9b4c)) Signed-off-by: Anton Baliasnikov <[email protected]>
Signed-off-by: David Poltorak <[email protected]> Signed-off-by: Benjamin Voiturier <[email protected]> Co-authored-by: Benjamin Voiturier <[email protected]> Signed-off-by: Shota Jolbordi <[email protected]>
# [1.25.0](prism-agent-v1.24.0...prism-agent-v1.25.0) (2024-01-25) ### Features * **prism-agent:** add JWT auth support for agent-admin role ([#840](#840)) ([3ccd56e](3ccd56e)) * upgrade ZIO http client to improve performance ([#850](#850)) ([7aa9b4c](7aa9b4c)) Signed-off-by: Anton Baliasnikov <[email protected]> Signed-off-by: Shota Jolbordi <[email protected]>
Signed-off-by: David Poltorak <[email protected]> Signed-off-by: Benjamin Voiturier <[email protected]> Co-authored-by: Benjamin Voiturier <[email protected]> Signed-off-by: Shota Jolbordi <[email protected]>
# [1.25.0](prism-agent-v1.24.0...prism-agent-v1.25.0) (2024-01-25) ### Features * **prism-agent:** add JWT auth support for agent-admin role ([#840](#840)) ([3ccd56e](3ccd56e)) * upgrade ZIO http client to improve performance ([#850](#850)) ([7aa9b4c](7aa9b4c)) Signed-off-by: Anton Baliasnikov <[email protected]> Signed-off-by: Shota Jolbordi <[email protected]>
Signed-off-by: David Poltorak <[email protected]> Signed-off-by: Benjamin Voiturier <[email protected]> Co-authored-by: Benjamin Voiturier <[email protected]> Signed-off-by: Shota Jolbordi <[email protected]>
# [1.25.0](prism-agent-v1.24.0...prism-agent-v1.25.0) (2024-01-25) ### Features * **prism-agent:** add JWT auth support for agent-admin role ([#840](#840)) ([3ccd56e](3ccd56e)) * upgrade ZIO http client to improve performance ([#850](#850)) ([7aa9b4c](7aa9b4c)) Signed-off-by: Anton Baliasnikov <[email protected]> Signed-off-by: Shota Jolbordi <[email protected]>
Signed-off-by: David Poltorak <[email protected]> Signed-off-by: Benjamin Voiturier <[email protected]> Co-authored-by: Benjamin Voiturier <[email protected]>
Signed-off-by: David Poltorak <[email protected]> Signed-off-by: Benjamin Voiturier <[email protected]> Co-authored-by: Benjamin Voiturier <[email protected]>
Signed-off-by: David Poltorak <[email protected]> Signed-off-by: Benjamin Voiturier <[email protected]> Co-authored-by: Benjamin Voiturier <[email protected]> Signed-off-by: Shota Jolbordi <[email protected]>
# [1.25.0](prism-agent-v1.24.0...prism-agent-v1.25.0) (2024-01-25) ### Features * **prism-agent:** add JWT auth support for agent-admin role ([#840](#840)) ([3ccd56e](3ccd56e)) * upgrade ZIO http client to improve performance ([#850](#850)) ([7aa9b4c](7aa9b4c)) Signed-off-by: Anton Baliasnikov <[email protected]> Signed-off-by: Shota Jolbordi <[email protected]>
Signed-off-by: David Poltorak <[email protected]> Signed-off-by: Benjamin Voiturier <[email protected]> Co-authored-by: Benjamin Voiturier <[email protected]> Signed-off-by: Shota Jolbordi <[email protected]>
Signed-off-by: David Poltorak <[email protected]> Signed-off-by: Benjamin Voiturier <[email protected]> Co-authored-by: Benjamin Voiturier <[email protected]>
Signed-off-by: David Poltorak <[email protected]> Signed-off-by: Benjamin Voiturier <[email protected]> Co-authored-by: Benjamin Voiturier <[email protected]> Signed-off-by: Shota Jolbordi <[email protected]>
Signed-off-by: David Poltorak <[email protected]> Signed-off-by: Benjamin Voiturier <[email protected]> Co-authored-by: Benjamin Voiturier <[email protected]> Signed-off-by: Shota Jolbordi <[email protected]>
# [1.25.0](prism-agent-v1.24.0...prism-agent-v1.25.0) (2024-01-25) ### Features * **prism-agent:** add JWT auth support for agent-admin role ([#840](#840)) ([3ccd56e](3ccd56e)) * upgrade ZIO http client to improve performance ([#850](#850)) ([7aa9b4c](7aa9b4c)) Signed-off-by: Anton Baliasnikov <[email protected]> Signed-off-by: Shota Jolbordi <[email protected]>
Signed-off-by: David Poltorak <[email protected]> Signed-off-by: Benjamin Voiturier <[email protected]> Co-authored-by: Benjamin Voiturier <[email protected]> Signed-off-by: Shota Jolbordi <[email protected]>
Signed-off-by: David Poltorak <[email protected]> Signed-off-by: Benjamin Voiturier <[email protected]> Co-authored-by: Benjamin Voiturier <[email protected]> Signed-off-by: Shota Jolbordi <[email protected]>
Signed-off-by: David Poltorak <[email protected]> Signed-off-by: Benjamin Voiturier <[email protected]> Co-authored-by: Benjamin Voiturier <[email protected]> Signed-off-by: Shota Jolbordi <[email protected]>
Signed-off-by: David Poltorak <[email protected]> Signed-off-by: Benjamin Voiturier <[email protected]> Co-authored-by: Benjamin Voiturier <[email protected]>
Overview
Previous to this PR, when using ZIO HTTP RC2 - we saw a very long delay when making HTTP requests (>2 seconds for each request) - we identified that this was not only an issue with the version of ZIO HTTP we were using but also how it was managing and shuting down the ZIO HTTP stack - essentially every request was starting and stopping the full stack.
After, with upgrading to ZIO HTTP RC4 and refactoring the ZIO layer composition for scope and client, we now see requests completing within 100 ms as the full stack doens't shutdown with every request
Also included in this PR are several improvements to the performance testing framework for error handling when polling background jobs and for managing exceptions when deserialising JSON - previously, any exception thrown was not counted as a failure in the test execution and dropped - now - metrics are available for when the background job does not complete a state transition within the given number of polls
Fixes ATL-6318
Checklist
My PR contains...
My changes...
Documentation
Tests