Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
sodapopcan
on Aug 3, 2023
|
parent
|
context
|
favorite
| on:
Elixir for cynical curmudgeons
There's no reason not to write GenServers if you need them. Just don't use them as a class replacement :) But if you need to model some simple runtime state or concurrency, that's what they're there for.
throwawaymaths
on Aug 4, 2023
[–]
use Tasks for simple concurrency, Jose has built an awesome module for us.
sodapopcan
on Aug 4, 2023
|
parent
[–]
Oh I agree! I have a couple of gen servers acting as
very
simple message queues—the kind that don't matter if they are nuked during a deploy.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: