Skip to Content
Diseñar para la escalabilidad con Erlang/OTP
book

Diseñar para la escalabilidad con Erlang/OTP

by Francesco Cesarini, Steve Vinoski
October 2024
Intermediate to advanced
482 pages
15h 41m
Spanish
O'Reilly Media, Inc.
Content preview from Diseñar para la escalabilidad con Erlang/OTP

Capítulo 6. Máquinas de estados finitos

Este trabajo se ha traducido utilizando IA. Agradecemos tus opiniones y comentarios: translation-feedback@oreilly.com

Ahora que nos hemos convertido en expertos en escribir servidores genéricos, ha llegado el momento de dominar nuestro siguiente comportamiento. Cuando prototipaban sistemas con lo que finalmente se convirtió en Erlang, los inventores del lenguaje Joe Armstrong, Mike Williams y Robert Virding estaban implementando un conmutador de telefonía suave que les permitía llamarse por teléfono y saludarse.1 Cada teléfono que accedía al conmutador se prototipó como un proceso que actuaba como un FSM. En un momento dado, la función representaría el estado en que se encontraba el teléfono (colgado, descolgado, marcando, sonando, etc.) y recibiría eventos asociados a ese estado (llamada entrante, marcación, descolgado, colgado, etc.).

Uno de los resultados de esta actividad de creación de prototipos fue garantizar que Erlang se convirtiera en un lenguaje adecuado y optimizado para construir FSM no triviales y escalables, un componente clave en muchos sistemas complejos. Los desarrolladores utilizan los FSM de para programar pilas de protocolos, conectores, proxies, sistemas de flujo de trabajo, motores de juegos y simulaciones, por mencionar sólo algunos ejemplos. Así que no fue ninguna sorpresa que, cuando aparecieron los comportamientos OTP, incluyeran FSM genéricos.

En este capítulo, presentamos los FSM implementados en Erlang puro. Dividimos ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Creación de servicios de IA generativa con FastAPI

Creación de servicios de IA generativa con FastAPI

Alireza Parandeh
Arquitectura de la información, 4ª edición

Arquitectura de la información, 4ª edición

Louis Rosenfeld, Peter Morville, Jorge Arango
Convertirse en SRE

Convertirse en SRE

David N. Blank-Edelman

Publisher Resources

ISBN: 9798341602861