3min chapter

Elixir Mix cover image

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

Elixir Mix

CHAPTER

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

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode