Actors

Thread confinement works fine for the scenario mentioned previously, but say that we need a way to scale it for scenarios in which we need to modify the shared state from many different parts of the app, or if we want more flexibility on our atomic block. For more complicated scenarios, we can build upon the idea of thread confinement and improve our solution by using a concurrency primitive that we saw before: channels. By mixing both of them we can create an actor.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.21.246.223