Git Product home page Git Product logo

Comments (7)

okkez avatar okkez commented on July 3, 2024

Could you take the benchmark?
Is node's core Agent class http.Agent?
This module uses net.Socket because Fluentd does not speak HTTP(S).

from fluent-logger-node.

okkez avatar okkez commented on July 3, 2024

No response.

from fluent-logger-node.

NawarA avatar NawarA commented on July 3, 2024

Sorry, didnt see your question until I got the most recent GitHub notification.

And yes, that's right.

When you say
This module uses net.Socket because Fluentd does not speak HTTP(S).

Do you mean it speaks UDP, not TCP?

from fluent-logger-node.

okkez avatar okkez commented on July 3, 2024

This module uses TCP to talk with Fluentd.
All fluent-logger follow Forward protocol specification.

from fluent-logger-node.

NawarA avatar NawarA commented on July 3, 2024

Exactly. Instead of creating a new socket every time, you can use's Node's built in HTTP (TCP) module, which will manage socket reuse / pooling for you. This will make this module more efficient than creating a new socket every log -- which is not a good idea of high throughput servers. Socket reuse makes more sense

@JoshFerge does this make sense and do you concur?

from fluent-logger-node.

okkez avatar okkez commented on July 3, 2024

HTTP is constructed on TCP and also Fluentd's forward protocol is original protocol constructed on TCP.
Fluentd's forward protocol is not HTTP.
So we cannot use Node's build-in HTTP module for Fluentd's forward protocol.

from fluent-logger-node.

okkez avatar okkez commented on July 3, 2024

No response.

from fluent-logger-node.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.