Skip to content

Shared Memory IPC

Sergey Zubarev edited this page Feb 27, 2017 · 7 revisions

Everyone knows shared memory IPC is fast, JS-Collider framework gives an opportunity to use it almost transparently for localhost connections. Application needs to perform following steps:

  • establish TCP/IP connection
  • client side should create a shared memory session descriptor and transmit it to the server by TCP/IP
  • server should apply the descriptor to the session and client should apply the descriptor also

Here is a session throughput comparison for the TCP/IP session and session accelerated with shared memory IPC (100000 messages, 500 bytes length):

More than 2 times better, not bad. Complete example available at shmem_throughput

Clone this wiki locally