Skip to content

Commit 2c60d51

Browse files
feat: remove compression from engine responses (#9667)
* test uncompressed get blobs v2 Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net> * comment Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net> * changelog Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net> --------- Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net> Co-authored-by: Simon Dudley <simon.dudley@consensys.net>
1 parent c5adf9c commit 2c60d51

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
- Update to log4j 2.25.3 [#9600](https://github.com/hyperledger/besu/pull/9600)
2727
- Add `engine_getBlobsV3` method [#9582](https://github.com/hyperledger/besu/pull/9582)
2828
- Verify plugins on start [#9601](https://github.com/hyperledger/besu/pull/9601)
29+
- Improved `getBlobsV2` performance by disabling HTTP response compression, with up to 10× throughput improvement observed for large numbers of blobs. [#9667](https://github.com/hyperledger/besu/pull/9667)
30+
2931

3032
### Bug fixes
3133
- Fix promotion to prioritized layer for gas price fee markets [#9635](https://github.com/hyperledger/besu/pull/9635)

ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/EngineJsonRpcService.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,9 @@ private HttpServerOptions getHttpServerOptions() {
523523
.setHost(config.getHost())
524524
.setPort(config.getPort())
525525
.setHandle100ContinueAutomatically(true)
526-
.setCompressionSupported(true);
526+
// Disable compression due performance degradation for large responses (e.g.,
527+
// getBlobsV2)
528+
.setCompressionSupported(false);
527529

528530
httpServerOptions.setMaxWebSocketFrameSize(socketConfiguration.getMaxFrameSize());
529531
httpServerOptions.setMaxWebSocketMessageSize(socketConfiguration.getMaxFrameSize() * 4);

0 commit comments

Comments
 (0)