-
Notifications
You must be signed in to change notification settings - Fork 128
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
Can multiple golang binaries use the same memory mapped file? #33
Comments
It should be possible for the Unix implementation. I'm less sure about the Windows implementation. The Unix implementation specifies the From a very quick scan of Windows docs, it sounds like the two processes would need to specify the same I haven't specifically built with this use case in mind, so am not familiar with all the details. If anyone would like to make improvements to documentation or support for these use cases, I'd be open to contributions. |
Thanks @edsrzf ! I have another question and it has to do with my lack of in-depth understanding of how Memory Mapped files work. I understand that writing to a memory-mapped file does not immediately write to the physical disk unless it is "flushed". Say using binary 1 I write data into memory mapped file How soon will it be available for binary 2 for reading? Is it
|
I believe Whether or not changes are flushed to storage is a separate question. |
My hope is I can share some data between two Golang binaries
Cannot use APIs since it has to be high-performance. I could use local REDIS but I'm looking for more performance and I'm hoping share memory might be the answer
The text was updated successfully, but these errors were encountered: