Comments (4)
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.
@cangencer , @asimarslan ?
Should I close this issue?
from hazelcast-csharp-client.
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.
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)
- The memory usage reporting is misleading on SOAK
- Fix Explicit Run for Cloud Tests [API-2064] HOT 1
- Overload `CompactGenericRecord.ToString()`
- Add `arm` based worker to testing process. HOT 1
- [TRACKING ISSUE] [TPC] Allow TLS sockets in TPC Bootstrapping [HZ-2764]
- Remove Moq as a dependency [API-2119] HOT 1
- Error executing SQL query using IN operator [API-2160] HOT 6
- Question: Predicates as a static and building complex expressions HOT 3
- [TRACKING ISSUE] Make tpcEnable for client configurable through system property. [API-2162] HOT 1
- [TRACKING ISSUE] Promote alto auth codecs to stable [API-2161] HOT 1
- Question: Setting In-Memory-Format for a map different than the cluster default possible? HOT 3
- [TRACKING ISSUE] TPC default to 1 connection
- [TRACKING ISSUE] Fix the `ReliableTopicConfig.setName` method to allow empty names [HZ-2274] [API-2172]
- [TRACKING ISSUE] Continue trying if initial membership event retrieval fails and client is failover [API-2171]
- [TRACKING ISSUE] NearCachedClientMapProxy getAsync fix double invocation [API-1811]
- Client shuts down on failover [API-2176] HOT 1
- Compact Serialization: UnknownSchemaException when using Paging Predicates on getEntriesAsync, etc. HOT 3
- Mention `ClusterConnectionTimeoutMilliseconds` on Blue/Green Docs
- .Net 8 Does Not Support Binary Formatter Anymore [API-2225] HOT 1
- CP Session Manager Miss to Release Session Semaphore. [API-2226] HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hazelcast-csharp-client.