Chaffelson / nipyapi

A convenient Python wrapper for Apache NiFi
Other
243 stars 76 forks source link

Compression support on NiFi api requests #273

Closed rsaggino closed 2 years ago

rsaggino commented 3 years ago

Description

The generated swagger client for NiFi makes uncompressed requests, this is unbearable on larger clusters.

What I Did

As a workaround I manually added support for gzip in the api_client.py and tested the solution. Listing the controllers previously required 5 minutes, after the patch just 20 seconds.

If there is no long term solution on the swagger/openapi side, should we consider manually patching it?

Thanks, Raffaele