Book Image

Akka Cookbook

By : Vivek Mishra, Héctor Veiga Ortiz
Book Image

Akka Cookbook

By: Vivek Mishra, Héctor Veiga Ortiz

Overview of this book

Akka is an open source toolkit that simplifies the construction of distributed and concurrent applications on the JVM. This book will teach you how to develop reactive applications in Scala using the Akka framework. This book will show you how to build concurrent, scalable, and reactive applications in Akka. You will see how to create high performance applications, extend applications, build microservices with Lagom, and more. We will explore Akka's actor model and show you how to incorporate concurrency into your applications. The book puts a special emphasis on performance improvement and how to make an application available for users. We also make a special mention of message routing and construction. By the end of this book, you will be able to create a high-performing Scala application using the Akka framework.
Table of Contents (18 chapters)
Title Page
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

Introduction


Akka HTTP is a streaming-first library that focuses on leveraging Akka Streams and Akka actors. Akka HTTP is another module under the Lightbend umbrella that provides comprehensive and easy APIs to create both HTTP servers and clients.

Akka HTTP defines different layers to do so and lets the developer decide how abstracted he or she wants to be compared to the low-level implementation protocol, depending on the use case. From the low-level point of view, it allows you to have actors deal with the incoming HTTP messages as messages. From the high-level point of view, it provides a directive-based routing DSL that helps you define what to do with the incoming requests, depending on their headers or content. The library also provides great flexibility regarding marshaling, encoding, customization, and extensibility to cover all the possible scenarios.  

Akka HTTP was initially developed as a different project named Spray. Currently, it is maintained by the Akka team, but it is also...