elixir-lang.org/getting-started/mix-otp/genserver.html
1 Users
0 Comments
48 Highlights
0 Notes
Tags
Top Highlights
agents are processes
each bucket has a process identifier (pid)
register processes
atom names
atoms are not garbage collected
Generating atoms from user input would mean the user can inject enough different names to exhaust our system memory!
process registry
associates the bucket name to the bucket process.
guarantee that it is always up to
erving stale entries
monitor
A GenServer is a process that invokes a limited set of functions under specific conditions
GenServer
two separate functions,
ceremony
calls and casts.
the client is waiting.
Calls
asynchronous
won’t send a response back
Glasp is a social web highlighter that people can highlight and organize quotes and thoughts from the web, and access other like-minded people’s learning.