Designing for Scalability with ErlangOTP by Francesco Cesarini

Designing for Scalability with ErlangOTP by Francesco Cesarini

Author:Francesco Cesarini
Language: eng
Format: epub
Publisher: O'Reilly Media
Published: 2016-05-27T00:00:00+00:00


Basic template for starting a special process

The recommended approach to starting a special process is to use the proc_lib:start_link(Mod, Fun, Args) call instead of the spawn_link/3 BIF. Given a module, a function, and a list of arguments, it synchronously spawns a process and waits for this process to notify that it has correctly started through the proc_lib:init_ack(Value) call. Value is sent back to the parent process, becoming the return value of the start_link/3 call. Note how we are passing optional DbgOpts debug option parameters in our start_link call. We covered them in Chapter 5. For now, assume DbgOpts is an empty list. Note also how we are passing the Parent process ID to the init/3 function; we need it in our main loop. It is the result of the self() BIF in the start_link/2 call.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Popular ebooks
Whisky: Malt Whiskies of Scotland (Collins Little Books) by dominic roskrow(55884)
What's Done in Darkness by Kayla Perrin(26499)
Shot Through the Heart: DI Grace Fisher 2 by Isabelle Grey(18992)
The Fifty Shades Trilogy & Grey by E L James(18930)
Shot Through the Heart by Mercy Celeste(18871)
Wolf & Parchment: New Theory Spice & Wolf, Vol. 10 by Isuna Hasekura and Jyuu Ayakura(16956)
Python GUI Applications using PyQt5 : The hands-on guide to build apps with Python by Verdugo Leire(16852)
Peren F. Statistics for Business and Economics...Essential Formulas 3ed 2025 by Unknown(16783)
Wolf & Parchment: New Theory Spice & Wolf, Vol. 03 by Isuna Hasekura and Jyuu Ayakura & Jyuu Ayakura(16670)
Wolf & Parchment: New Theory Spice & Wolf, Vol. 01 by Isuna Hasekura and Jyuu Ayakura & Jyuu Ayakura(16297)
The Subtle Art of Not Giving a F*ck by Mark Manson(14239)
The 3rd Cycle of the Betrayed Series Collection: Extremely Controversial Historical Thrillers (Betrayed Series Boxed set) by McCray Carolyn(14055)
Stepbrother Stories 2 - 21 Taboo Story Collection (Brother Sister Stepbrother Stepsister Taboo Pseudo Incest Family Virgin Creampie Pregnant Forced Pregnancy Breeding) by Roxi Harding(13380)
Scorched Earth by Nick Kyme(12699)
Drei Generationen auf dem Jakobsweg by Stein Pia(10905)
Suna by Ziefle Pia(10836)
Scythe by Neal Shusterman(10252)
International Relations from the Global South; Worlds of Difference; First Edition by Arlene B. Tickner & Karen Smith(9464)
Successful Proposal Strategies for Small Businesses: Using Knowledge Management ot Win Govenment, Private Sector, and International Contracts 3rd Edition by Robert Frey(9304)
This is Going to Hurt by Adam Kay(9075)