Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to configure the queue capacity for ChunkedOutput #5621

Commits on Apr 23, 2024

  1. Update ChunkedOutput.java

    Adding constructors which sets the queue capacity.
    
    This allows for calling write from different threads until the queue is full. Subsequent write calls will block until the queue is emptied.
    This change allows to prevent memory issues in case of slow clients. Basically, a backpressure mechanism based on the queue size.
    
    This change provides a way to call write on ChunkedOutput from multiple threads to improve throughput, while preventing memory issues in case of slow clients. The queue is bounded and thus cannot grow endlessly.
    rutterpaul-personal committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    9a58a6f View commit details
    Browse the repository at this point in the history
  2. Update ChunkedOutput.java

    Update year
    rutterpaul-personal committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    5176818 View commit details
    Browse the repository at this point in the history
  3. Update ChunkedOutput.java

    Use builder instead.
    rutterpaul-personal committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    9069a05 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    95b77b7 View commit details
    Browse the repository at this point in the history
  5. Update ChunkedOutput.java

    Copyright
    rutterpaul-personal committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    a91c120 View commit details
    Browse the repository at this point in the history
  6. Update ChunkedOutput.java

    Add chunkType, String by default.
    rutterpaul-personal committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    df15d68 View commit details
    Browse the repository at this point in the history
  7. Update ChunkedOutput.java

    Add javadoc
    rutterpaul-personal committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    270210e View commit details
    Browse the repository at this point in the history
  8. Update ChunkedOutput.java

    Typo
    rutterpaul-personal committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    2aa9218 View commit details
    Browse the repository at this point in the history
  9. Update ChunkedOutput.java

    Hide constructor
    rutterpaul-personal committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    3428f2b View commit details
    Browse the repository at this point in the history
  10. Update ChunkedInputOutputTest.java

    Add e2e test that uses builder with queue capacity of 2.
    rutterpaul-personal committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    5fefe35 View commit details
    Browse the repository at this point in the history
  11. Update ChunkedInputOutputTest.java

    copyright
    rutterpaul-personal committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    383a883 View commit details
    Browse the repository at this point in the history
  12. Update async.xml

    Update documentation with an example of the builder with the capacity
    rutterpaul-personal committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    370bde2 View commit details
    Browse the repository at this point in the history
  13. Update async.xml

    Copyright
    rutterpaul-personal committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    baaae71 View commit details
    Browse the repository at this point in the history
  14. Update ChunkedOutput.java

    Make chunkType a required argument to the builder.
    Change builder methods.
    rutterpaul-personal committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    e15ab82 View commit details
    Browse the repository at this point in the history
  15. Update async.xml

    Update doc.
    rutterpaul-personal committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    14cd830 View commit details
    Browse the repository at this point in the history
  16. Update ChunkedInputOutputTest.java

    Update test
    rutterpaul-personal committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    673b088 View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2024

  1. Update ChunkedInputOutputTest.java

    Fix checkstyle issue
    rutterpaul-personal committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    b436843 View commit details
    Browse the repository at this point in the history
  2. Update ChunkedOutput.java

    Add two builders, one with and one without type.
    rutterpaul-personal committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    6fb8775 View commit details
    Browse the repository at this point in the history
  3. Update ChunkedInputOutputTest.java

    Update test
    rutterpaul-personal committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    da8bbbe View commit details
    Browse the repository at this point in the history
  4. Update async.xml

    Update docs
    rutterpaul-personal committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    6e2d1f0 View commit details
    Browse the repository at this point in the history
  5. Update ChunkedInputOutputTest.java

    Copyright
    rutterpaul-personal committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    d8dba05 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5827f67 View commit details
    Browse the repository at this point in the history
  7. Update ChunkedInputOutputTest.java

    Fix checkstyle
    rutterpaul-personal committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    318610f View commit details
    Browse the repository at this point in the history
  8. Update ChunkedOutput.java

    Drain queue on exception, to prevent deadlock in threads waiting on the queue to be drained while an exception occurred.
    rutterpaul-personal committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    86e4a50 View commit details
    Browse the repository at this point in the history