jeudi 23 août 2018

Is ZeroMQ or Boost::interprocess faster for IPC sharing of objects?

I am contemplating inter-process sharing of custom objects. My current implementation uses ZeroMQ where the objects are packed into a message and sent from process A to process B.

I am wondering whether it would be faster instead to have a concurrent container implemented using boost::interprocess (where process A will insert into the container and process B will retrieve from it). Not sure if this will be faster than having to pack the object into a message format in process A and then unpacking it in process B.

Just wondering if anyone has done benchmarking? Is it conceptually right to compare the two?

Aucun commentaire:

Enregistrer un commentaire