Re:Enigma: Erlang VM Implementation in Rust
by battery_cowboy on Thursday April 30, 2020 @05:18PM
(#23036253)
RPC is basically built in, so you'll probably never use REST internally. There's an in memory database built in (ETS) that will replace redis for most key value storage cases. There's easy recovery from crashes via supervision trees and associated features. You can do hot upgrades while your system is fully operational.
[ Parent
| on HN ]
Re:Enigma: Erlang VM Implementation in Rust
by dnautics on Thursday April 30, 2020 @10:58PM
(#23038659)
A few protips: hot reloads are outside of a few corner cases generally unnecessary these days. Be careful about erlang rpc if you expose it in any fashion over the network and follow the eef security working group guidelines re: erlang term format. I use Elixir's plug.crypto.non_executable_binary_to_term/2
Re:Enigma: Erlang VM Implementation in Rust
by battery_cowboy on Friday May 01, 2020 @12:31AM
(#23039152)
Thanks, I knew both of those bits of info, but I didn't know about the guidelines and how to deal with the RPC issue, very helpful.
to be fair, the guidelines are hot off the presses. I literally went to CodeBEAM, ran into to Bram Verburg (whose fantastic X509 library i had just found a week prior) and he told me about those guidelines, which had just hit hours before we spoke. Bram is great, he's very modest, and was amused that I thought he was some sort of superstar.
Re:Enigma: Erlang VM Implementation in Rust
by battery_cowboy on Friday May 01, 2020 @05:31AM
(#23040446)
Well I'm "hot off the press" when it comes to elixir, so it's a good time for me to learn this stuff, thanks for the link below, too.
You wouldn't happen to have a link handy would you? It would be much appreciated.
Erlef security group guidelines: https://erlef.github.io/security-wg/secure_coding_and_deploy...
X509 library: https://hex.pm/packages/x509
Bram verburg talk: https://youtu.be/0jzcPnsE4nQ
Bless you! "You're a scholar and a gentleman." :-D
Actually I'm a bit of an asshole if you really get to know me, but I'm usually nice on the internet. Thank you!
Re:Enigma: Erlang VM Implementation in Rust
by mleonhard on Friday May 01, 2020 @11:19PM
(#23048853)
When I used Erlang in 2005, there was a problem with message queues growing and OOM-ing the process. The standard solution to that is RPC flow control and backpressure. Does this problem exist with modern Erlang?
Google's gRPC/Stubby has the same problem. It's one reason why gRPC servers are never deployed on the public Internet and always use hefty reverse proxies.