Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Concurrent requests/reply IPC #86

Open
alexec opened this issue Oct 12, 2021 · 2 comments
Open

Concurrent requests/reply IPC #86

alexec opened this issue Oct 12, 2021 · 2 comments

Comments

@alexec
Copy link

alexec commented Oct 12, 2021

I'm trying to improve the throughput of an app I'm building. Essentially, it currently uses Unix Domain Sockets to transfer messages between two processes. This is because they are well supported in many programming languages, and easy to use for request/reply.

But combining the two process into a single process I get 10x the TPS. So I know there is up-to 10x potential improvement.

My questions is, can mmap do this, give some constraints:

  • Request/reply (like HTTP).
  • Concurrent, multiple request/replies in flight.
@aman-arista
Copy link

You should totally give it a try though I don't think bigqueue would be a right fit across processes given the current state of things. We do plan to improve bigqueue to work across processes but that is not the case today.

@alexec
Copy link
Author

alexec commented Oct 21, 2021

Thank you for your reply.

I'd like to do request/reply between two processes, but faster than Unix Domain Socket.

Just wondered if you'd had some ideas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants