GithubHelp home page GithubHelp logo

Comments (4)

stalek71 avatar stalek71 commented on May 26, 2024

The thread from ThreadPool used by HZ client lib for message handling (encoding/decoding) is used only for really short time (it uses Task so the flow is based on "continuations"). If there are any Wait() operations blocking current thread they should be removed and converted to "continuations".
In case the user exhausted ThreadPool resources (threads) the problem will be serious also for user application (not for HZ client lib only). By me .Net framework management of ThreadPool is optimal in such cases and this issue can be closed.

from hazelcast-csharp-client.

stalek71 avatar stalek71 commented on May 26, 2024

@cangencer , @asimarslan ?
Should I close this issue?

from hazelcast-csharp-client.

asimarslan avatar asimarslan commented on May 26, 2024

I think we should keep it open as @cangencer's initial offer is still true. We should avoid internal usage of default threadPool.
see #224

from hazelcast-csharp-client.

zpqrtbnk avatar zpqrtbnk commented on May 26, 2024

We are about to release version 4.0 of the Hazelcast.Net client, and the code has been vastly refactored, rendering this issue... more or less irrelevant. We do use the default .NET thread pool at the moment, but because we run fully async, we do not block one thread per "task". If a user launches a large number of "tasks", they'll be managed by the async mechanism and use the available threads when needed. Just like most MS code uses the default thread pool.

In case the user manages to bring a machine down because of too many "tasks", replacing the thread pool would not fix the issue. We'd have to revisit the tasks scheduler to limit concurrent execution of tasks, putting back-pressure on the user.

from hazelcast-csharp-client.

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.