Skip to content

Shared Memory IPC

js-labs edited this page Mar 11, 2014 · 7 revisions

Everybody 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 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 tests/src/org/jsl/tests/shmem_throughput

Clone this wiki locally