There are a couple of things to be considered: 1. size request and response buffers to avoid deadlocks (there is an interesting topic on this list re it too) -> could be used a broadcast buffer too to avoid it, but it change the semantic by adding a new "failure" state 2. consider liveness of processes and blocking operations while submitting/reading from the buffers -> Agrona ring buffers has the proper API to perform such tests/ops but need to implement the logic
Il giorno venerdì 30 marzo 2018 10:55:23 UTC+2, Roman Leventov ha scritto: > > I think about the possibility of building an asynchronous application with > back pressure where some upstream operators are in Java and some downstream > ones are in C++. For this purpose, some queues would be needed to pass the > data between Java and C++ layers. It seems that porting JCTools's bounded > array queues to off-heap should be doable, but I couldn't find existing > prototypes or discussions of such thing so maybe I overlook some inherent > complications with this idea. > > Did anybody think about something like this or has implemented in > proprietary systems? > -- You received this message because you are subscribed to the Google Groups "mechanical-sympathy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
