Death Stars & River Deltas
Toward a Functional Programming Analogy for Microservices
Death Stars & River Deltas Toward a Functional Programming - - PowerPoint PPT Presentation
Death Stars & River Deltas Toward a Functional Programming Analogy for Microservices Hi, Im Bobby Im on the Technology Fellows team at I dislike accidental complexity bobby.calderwood@capitalone.com @bobbycalderwood
Toward a Functional Programming Analogy for Microservices
I’m on the Technology Fellows team at I dislike accidental complexity bobby.calderwood@capitalone.com @bobbycalderwood https://github.com/bobby
formal models of OO and FP to the distributed case
and principles
AWS Death Star diagram, circa 2008 as per Werner Vogels tweet https://twitter.com/Werner/status/741673514567143424
values
immutable values over time
Object Oriented Functional Data Access Encapsulated Ubiquitous State Change Mutable, in-place Immutable, values over time Organization Dependency graph Data-flow graph Orchestration Imperative, sequential Declarative, parallelizable Referentially… Opaque Transparent
talk…)
time?
Source: NASA, Public Domain
distributed case!
consistency in between)
notifications on a particular account
balance exceeds limit for time period
additional transactions until end of period, send notification, etc.)
(carefully!) to an immutable event stream
the event stream
value
state and events carefully
(Events) and customer requests for action (Commands)
(probably using aggregate state)
trigger further events downstream
respective use-cases
access pattern
Streams’ KTable)
command processing
Event
bounded context to cause “side-effects”
reading or writing the streams or aggregates, e.g.
compensating action
package)
sagas.pdf
build-services-backbone-events/
Values
v=ROor6_NGIWU