pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/feldera/feldera/pull/5626/files

bassets.com/assets/primer-primitives-f9161d06200ae2dc.css" /> Add HTTP body compression between pipeline-manager and pipelines, raise the limit by Karakatiza666 · Pull Request #5626 · feldera/feldera · GitHub
Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion crates/adapters/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ use actix_web::{
get,
http::StatusCode,
http::header,
post, rt,
middleware, post, rt,
web::{self, Data as WebData, Payload, Query},
};
use arrow::ipc::writer::StreamWriter;
Expand Down Expand Up @@ -814,6 +814,7 @@ pub fn run_server(
res
})
})
.wrap(middleware::Compress::default())
.wrap(observability::actix_middleware());
build_app(app, state)
}
Expand Down
26 changes: 18 additions & 8 deletions crates/pipeline-manager/src/api/endpoints/pipeline_interaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ pub(crate) async fn http_input(
req,
body,
Some(Duration::from_secs(30)),
false,
)
.await
}
Expand Down Expand Up @@ -192,6 +193,7 @@ pub(crate) async fn http_output(
req,
body,
None,
false,
)
.await
}
Expand Down Expand Up @@ -674,6 +676,7 @@ pub(crate) async fn get_pipeline_time_series_stream(
request,
body,
None,
false,
)
.await
}
Expand Down Expand Up @@ -716,18 +719,20 @@ pub(crate) async fn get_pipeline_circuit_profile(
tenant_id: ReqData<TenantId>,
path: web::Path<String>,
request: HttpRequest,
body: web::Payload,
) -> Result<HttpResponse, ManagerError> {
let pipeline_name = path.into_inner();
state
.runner
.forward_http_request_to_pipeline_by_name(
.forward_streaming_http_request_to_pipeline_by_name(
client.as_ref(),
*tenant_id,
&pipeline_name,
Method::GET,
"dump_profile",
request.query_string(),
request,
body,
Some(Duration::from_secs(120)),
false,
)
.await
}
Expand Down Expand Up @@ -770,21 +775,24 @@ pub(crate) async fn get_pipeline_circuit_json_profile(
tenant_id: ReqData<TenantId>,
path: web::Path<String>,
request: HttpRequest,
body: web::Payload,
) -> Result<HttpResponse, ManagerError> {
let pipeline_name = path.into_inner();

// Get the JSON profile from the pipeline and return it directly
// The Compress middleware will automatically compress the response based on Accept-Encoding
// Stream the JSON profile from the pipeline with compression passthrough.
// The pipeline's Compress middleware compresses the response; we pass the
// compressed bytes through directly without buffering.
state
.runner
.forward_http_request_to_pipeline_by_name(
.forward_streaming_http_request_to_pipeline_by_name(
client.as_ref(),
*tenant_id,
&pipeline_name,
Method::GET,
"dump_json_profile",
request.query_string(),
request,
body,
Some(Duration::from_secs(120)),
true,
)
.await
}
Expand Down Expand Up @@ -1326,6 +1334,7 @@ pub(crate) async fn get_pipeline_samply_profile(
request,
body,
Some(Duration::MAX),
false,
)
.await
}
Expand Down Expand Up @@ -1766,6 +1775,7 @@ pub(crate) async fn pipeline_adhoc_sql(
request,
body,
Some(Duration::MAX),
false,
)
.await
}
Expand Down
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy