Coder Social home page Coder Social logo

Comments (6)

davedoesdev avatar davedoesdev commented on September 25, 2024

@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.

ratanasov1 avatar ratanasov1 commented on September 25, 2024

@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.

davedoesdev avatar davedoesdev commented on September 25, 2024

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.

davedoesdev avatar davedoesdev commented on September 25, 2024

On reflection I think this should be left to an application-level supervisor.

from shared-memory-disruptor.

ratanasovvmw avatar ratanasovvmw commented on September 25, 2024

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.

davedoesdev avatar davedoesdev commented on September 25, 2024

@ratanasovvmw thanks for the pointer, looks good!

from shared-memory-disruptor.

Related Issues (6)

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.