Comments (4)
Do you want the worker to continue it's work even when the caller has died?
from poolboy.
Well, that's a good question. Sometimes yes, sometimes no. In our particular case, usually no. Either the write is not that important, or it's a read, in which case it's wasted.
from poolboy.
I had two thoughts:
- Get the worker to check itself back in. Requires adding some stuff to handle_call, which is awkward.
- link the two processes. If the caller dies, the worker dies. Poolboy will create a replacement worker, no?
from poolboy.
@rlipscombe You have many options, I don't find no. 1 awkward at all.
You can kill the worker as soon as it captures the caller EXITs. Many options are available to you, they all depend on your use case.
from poolboy.
Related Issues (20)
- Allow poolboy to manage supervisors
- Can you update the version in hex.pm? HOT 6
- pool size question HOT 2
- Failure to start worker crashes pool HOT 8
- Question: Is it possible to use an alternative process registry for worker processes?
- Improvements to Project's README Introduction
- No Labels for Issues
- Contributing Doc or Information
- Issues for readme.md HOT 3
- Improving the performance of Poolboy up 2 to 3 times HOT 2
- No error message when process is crashed
- WorkerArgs specs are too narrow HOT 1
- exception exit: timeout in gen_server:call HOT 1
- please Publishing a new package to hex.pm for fifo performance
- All connections timeout when doing high enough number of concurrent transactions HOT 1
- Where is the `lifo` strategy? HOT 2
- erlang:get_stacktrace/0 removed from Erlang 24 HOT 1
- hexdocs are down HOT 1
- Proper handling of exceptions in workers
- Is it possible to make the example on the `README.md` more obvious? 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 poolboy.