So far, we have seen multi-threaded concurrency. In this recipe, we will look at distributed concurrency, where the concurrency can be achieved through multiple processes either on the same machine or a cluster of machines. In this recipe, we will create a local node and communicate with it using tcp transport.
Working with Cloud Haskell
Getting ready
We will use cloud-haskell libraries for this.
How to do it...
- Create a new project called working-with-cloud-haskell with the simple stack template:
stack new working-with-cloud-haskell simple
- Add a dependency...