5 ms·
Can you give some examples? I've been getting more and more interested in Erlang.
by rhlsthrm 6y ago
Can you give some examples? I've been getting more and more interested in Erlang.
- battery_cowboy 6y agoRPC 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.
- dnautics 6y agoA 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
- battery_cowboy 6y agoThanks, 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.
- dnautics 6y agoto 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.
- carapace 6y agoYou wouldn't happen to have a link handy would you? It would be much appreciated.
- dnautics 6y agoErlef security group guidelines: https://erlef.github.io/security-wg/secure_coding_and_deployment_hardening/ https://erlef.github.io/security-wg/secure_coding_and_deploy... X509 library: https://hex.pm/packages/x509 https://hex.pm/packages/x509 Bram verburg talk: https://youtu.be/0jzcPnsE4nQ https://youtu.be/0jzcPnsE4nQ
- battery_cowboy 6y agoWell 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.
- mleonhard 6y agoWhen 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.