Skip to content

Question: App structuring in a fully functional way #1232

Answered by louthy
aloslider asked this question in Q&A
Discussion options

You must be logged in to vote

There is some general advice in the Thinking Functionally part of the wiki. But it's maybe a little dated now and could do with a refresh now that the effects system is in language-ext.

  1. echo-process is just one way of building an app. The benefits are that each process is an actor. Actors are single-threaded message-processors with state. Each message processed from their inbox of messages optionally updates that state. The messages and state can be persisted (in Redis). Each process can spawn child processes. This creates a supervision hierarchy.

Because each actor has its own state and it can only be interacted with via messaging (events) it has the benefit of being an encapsulated world

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by aloslider
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants