I have done that in the past, there's some nice benefits to that compared to "normal" IPC, like being more resistant to the other side going away.
It's not as fast, but there's a point where one should use shared memory.
And it's not as secure as "real" IPC. But it's really not a bad idea!