42 ms·
well, trade offs are trade offs because then one has to worry about intraprocess communication. can you elaborate on security exploits? i would assume a closed
by nikofeyn 8y ago
well, trade offs are trade offs because then one has to worry about intraprocess communication. can you elaborate on security exploits? i would assume a closed off system with interprocess communication would be less vulnerable than that with intraprocess communication, which seems like it could be intercepted. but i do not know much about security.
process crashes are of course a problem in terms of bringing down the whole process, but that generally isn’t a problem for me.
- pjmlp 8y agoEach process would execute with the minimal set of permissions that it needs to perform its tasks. Whereas in interprocess, each thread can do everything that the whole process is allowed to do, so a security exploit in e.g. file parser, opens the door for doing other stuff that a file parser shouldn't be allowed to start with. An easy to use IPC is to use pipes, mailboxes, message queues, just like channels. Yes it might be slower, but for a large set of problems it is fast enough.