11 Akka ports

This chapter covers

  • Creating an HTTP server with Akka HTTP
  • Connecting through HTTP with actors from outside the cluster
  • Creating a gRPC server with Akka gRPC
  • Connecting through gRPC with actors from outside the cluster

In this chapter, you learn how to connect to an ActorSystem to send messages from the outside. This is done so that any application can interact with actors. You see how to create servers in Akka that provide endpoints that can be used by HTTP or gRPC clients.

11.1 Akka HTTP

This module builds on Akka Streams and shares its semantics. Its components are internally defined in terms of Sources, Flows, and Sinks. However, these are hidden, and your interaction with this API is through an expressive DSL that lets you ...

Get Akka in Action, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.