Support batch mode in HTTP Transport
See original GitHub issueWhat’s the feature?
For performance reason, a batch
mode should be available on http transport to break the 1 log = 1 request and send http request by configurable batches.
What problem is the feature intended to solve?
When using http transport, a request is sent to the http server for every log call. So 100 logs, 100 http requests.
Is the absence of this feature blocking you or your team? If so, how?
Not blocking but it has a bad user experience impact on our web application. We’re using winston http transport to collect all our client logs in our backend log file. During page loading, our web application is a little bit verbose in “info” level. We’ve seen that the http log requests has a direct impact on the load page time (ie disabling http logs made load pagefaster).
Is this feature similar to an existing feature in another tool?
Yes, take a look at winston-splunk-http-transport
Is this a feature you’re prepared to implement, with support from us?
That’s possible… 😃
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Using HTTP and Poller Transports - Service Bus
This chapter provides an overview of the HTTP(S) and poller transports (Email, File, FTP, and SFTP) and describes how to use and configure...
Read more >Having some difficulties starting workflow in batch mode
Trying to run workflow in batch mode (in previos installation it works) knime ... HTTPTransportFactory, org.apache.cxf.transport.http.
Read more >Batch library | Microsoft Learn
Use the functions in the Batch library to package multiple HTTP requests into a single request using a Transport object.
Read more >Send Batch Requests | Google Play EMM API
The Google Play EMM API supports batching, to allow your client to put several API calls into a single request. Here are some...
Read more >Batch Processing | MuleSoft Documentation
Within a Mule application, batch processing provides a construct for asynchronously ... xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yep, we have some other maintainers now, so a release should happen in the near future. Ideally we can fix the child logger / metadata issues that @Maverick1872 is taking the lead on, and then we will cut a new release that includes your PR.
I think the maintainers are unlikely to have time to implement this ourselves, but we’d welcome a PR that adds this type of functionality in a clean way. Thanks!