
How To Secure Your Elixir Application With Michael Lubas - EMx 208
Elixir Mix
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
00:00
Transcript
Play full episode
Remember Everything You Learn from Podcasts
Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.