The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
All Aboard The Stateful Train
1. First title line
Second line here
Subtitle goes here — no fancy
color block kthough too fussy
smartly.
smartlogic.io
All Aboard
the Stateful Train
Going Beyond a Simple
Web App with Elixir
Eric Oestrich
smartlogic.io
3. Who is
SmartLogic?
We build custom web
and mobile apps.
Based in Baltimore,
we've built over 150
apps since 2005.
4. ● What does a standard application look like?
● Why would you go stateful?
● What does a stateful application look like?
● Is stateful better?
● Let's go stateful!
Agenda
11. OTP and Processes
● Used to be Open Telecom Platform
● OTP is the standard library of Erlang
● GenServers, supervision trees, :ets, all the fun stuff
● Processes are the base building block of Erlang
concurrency
14. Why Stateful?
● We're on a platform that can handle it
● Local caches
● Speed, less network to the database
● Resilience, craft your processes to withstand anything
● Websites feel “alive”
15. Did I mention Erlang is great at this?
https://unsplash.com/photos/M5tzZtFCOfs
19. What is a MUD?
● Multi-User Dungeon
● Online text adventure
● Connects with telnet
20. What is a text adventure?
This is an open field west of a white house, with a
boarded front door.
There is a small mailbox here.
A rubber mat saying 'Welcome to Zork!' lies by the
door.
>
41. Requires heavy
usage of OTP
You must architect out how your application is laid out in
memory, beyond what Phoenix gives you.
42. Caches are Hard™
There are 2 hard problems in computer science: cache
invalidation, naming things, and off-by-1 errors.
43. Harder to Deploy
● Warm caches on boot
● Long lived connections will drop
○ How will you deal with this?
● Clustered applications need to handle a rolling restart
47. GenServers
● The basic building block of OTP
● Handle messages out of the HTTP process
● Background tasks
● Any kind of state you want to hang on to
65. Season 3 of Smart Software
podcast.smartlogic.io
66. Season 3 of Smart Software
podcast.smartlogic.io
67. Season 3 of Elixir Wizards
podcast.smartlogic.io
68. First title line
Second line here
Subtitle goes here — no fancy
color block kthough too fussy
smartly.
smartlogic.io
Thanks!
smartlogic.io
69. First title line
Second line here
Subtitle goes here — no fancy
color block kthough too fussy
smartly.
smartlogic.io
We build custom web
We’ve built 150+ applications since 2005.
Need a custom web/mobile app? We can help.
and mobile applications.
888-544-SMRT / contact@smartlogic.io