Comments (6)
@ratanasov1 there is no termination safety. Do you have any ideas on how to achieve it?
Timeout? Write process ID into the disruptor and check if it's still alive?
from shared-memory-disruptor.
@davedoesdev Thanks for replying. With Disruptor designed so carefully I have no idea how to detect this condition and how to report it to client code in a sensible way. Timeout is an option, but what will happen to latency? Writing PID into the disruptor, there must be some policy how to reuse that slot, i.e. some clean up agent.
from shared-memory-disruptor.
Yes, even writing PID will affect latency.
I wonder if this just has to be delegated to an application level?
Maybe you'd just have a supervisor which monitors all the processes involved and kills them all when any exit or stop responding to ping messages.
from shared-memory-disruptor.
On reflection I think this should be left to an application-level supervisor.
from shared-memory-disruptor.
You may take a look at https://github.com/vmware-labs/advanced-same-machine-interprocess-communication-protocol-suite which is a solution that is termination safe.
from shared-memory-disruptor.
@ratanasovvmw thanks for the pointer, looks good!
from shared-memory-disruptor.
Related Issues (6)
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 shared-memory-disruptor.