- Mastering Akka
- Christian Baxter
- 240字
- 2021-07-08 11:06:05
Chapter 2. Simplifying Concurrent Programming with Actors
Before we get started on our refactoring journey (which I promise will start in earnest in Chapter 3, Curing Anemic Models with Domain-Driven Design), it makes sense to refresh ourselves on the actor model and Akka's implementation of it. We will tear down the walls and reframe our house with new programming techniques, but Akka's actors will always be the foundation to that house. Even though some of the newer aspects of Akka (such as Streams and HTTP) abstract up one level from directly using actors, the actor is still a core building block of those frameworks. As such, we should have a solid understanding of what an actor is and how they fit into the world of concurrent programming. We'll even do a little bit of refactoring work in this chapter as we have some bad actor debt (the SalesOrderManager
) to clean up first. Here are the things you can expect to learn in this chapter:
- The origins of the actor model and how Akka originated from it
- What concurrency and parallelism are, and how you can use Akka actors to achieve them
- The different types of Dispatchers and Mailboxes in Akka and what use cases each one is good for
- How to employ Akka's FSM feature to simplify the coding of complex workflows
- The different types of automated testing within the testing pyramid
- How to test your Akka actors
- 程序員面試白皮書
- 自己動手寫搜索引擎
- 大學計算機基礎實驗教程
- Mastering Natural Language Processing with Python
- Wireshark Network Security
- Python 3網(wǎng)絡爬蟲實戰(zhàn)
- 教孩子學編程:C++入門圖解
- 算法訓練營:提高篇(全彩版)
- Cocos2d-x學習筆記:完全掌握Lua API與游戲項目開發(fā) (未來書庫)
- SQL Server與JSP動態(tài)網(wǎng)站開發(fā)
- Swift 4從零到精通iOS開發(fā)
- 匯編語言編程基礎:基于LoongArch
- C編程技巧:117個問題解決方案示例
- Machine Learning for Developers
- Mastering Gephi Network Visualization