2min chapter

Elixir Wizards cover image

Kate Rezentes on GenServers at Simplebet

Elixir Wizards

CHAPTER

Would I Really Need a Gen Server?

You could absolutely use a gen server to kind of take in, let's say these are like events that are coming through your system. If you start to need more concurrent applications, then maybe you would move that data into like ETS or something a little bit more concurrent so that like the calls come through gen server, but then they're actually being handed off to ETS. Would it create a different process for each user? It's generic. Set it up to be so yeah, if you wanted a gen server, you could have like a users gen server, which would be a bottleneck. So that actually kind of raises, I think a point I was struggling to remember that was going

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