Elixir Mix cover image

How To Secure Your Elixir Application With Michael Lubas - EMx 208

Elixir Mix

00:00

Elixir Shared Access to a Large Chunk of Memory

The problem that you'll run into if you're using the ip try library which is what i did is the ip try is represented as just a map in elixir ets does not have like a native data type for maps so let's say it's like 20 megabytes every process that calls in to ets that's a 20 megabyte memory copy out to the calling process. If you get enough requests then you just blew up your memory consumption there's a feature though in earlang called persistent term and it's created for the purpose of kind of shared access to a big chunk of memory  you can't update it as frequently so for this problem of the IP addresses let's just

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app