Re:How to Design Programs 2nd Edition
by kmac_ on Tuesday May 02, 2023 @07:42AM
(#35786057)
Great question! I worked with two approaches:
1. Sagas - a centralised place to handle bussines flows
2. Event system
Start with 1. and eventually (pun intended) move to 2.
Both ways allow parallelized interactions with external systems, deferred decisions, etc. whatever the bussines will require.
Re:How to Design Programs 2nd Edition
by segfaltnh on Wednesday May 03, 2023 @11:02AM
(#35803224)
Sorry I wasn't clear, I'm talking about imperative code that coordinates multiple external actions. In a world where it's modeled as jobs in a distributed system, I agree that each job can be nicely functional (and I love this pattern).
Start with 1. and eventually (pun intended) move to 2. Both ways allow parallelized interactions with external systems, deferred decisions, etc. whatever the bussines will require.