Discover millions of ebooks, audiobooks, and so much more with a free trial

Only $11.99/month after trial. Cancel anytime.

Akka in Action, Second Edition
Akka in Action, Second Edition
Akka in Action, Second Edition
Ebook1,008 pages6 hours

Akka in Action, Second Edition

Rating: 0 out of 5 stars

()

Read preview

About this ebook

Akka solves the big problems of distributed systems, from multithreading and concurrency to scalability and failure. Learn how to use it effectively.

In Akka in Action, Second Edition you will learn how to:

  • Create basic programs with Akka Typed
  • Work with clusters to build robust, fault-tolerant programs
  • Use Akka with Kubernetes
  • Build microservices with Akka
  • Create and maintain distributed state with strong consistency guarantees
  • Employ actor-based concurrency and parallelism
  • Test Akka software

Akka in Action, Second Edition teaches you to use Akka Typed to solve common problems of distributed systems. You’ll learn how to bring together all of Akka’s moving parts to design and implement highly scalable and maintainable software. Extensively revised by Akka contributor Francisco López-Sancho Abraham, this new edition demonstrates Akka’s complex concepts through engaging hands-on examples. Discover the power of the Actor Model, how Akka works with Kubernetes, and how to utilize Akka modules to create microservices that are reliable and fault tolerant.

About the technology

For large software systems, the action is in the “-ilities.” Scalability. Reliability. Maintainability. Capability. Akka, toolkit for building distributed message-driven applications, delivers on the “ilities.” And recent innovations, including Akka Typed, ensure that this amazing platform will remain the best way to build and deploy distributed Java and Scala applications for years to come.

About the book

Akka in Action, Second Edition is your guide to building message-centric distributed applications systems. This new edition covers all features of Akka, including Akka Typed. You’ll learn to create microservices using Akka’s powerful suite of tools, Akka Sharding, Persistence, Streams, Persistence Query, Projections, and gRPC. Practical examples taken directly from industry guide you through clustering, deploying to Kubernetes, and taking full advantage of Akka’s Actors-based approach to concurrency.

What's inside

  • Work with clusters to build robust, fault-tolerant programs
  • Maintain distributed systems with strong consistency guarantees
  • Utilize concurrency and parallelism
  • Test Akka software

About the reader

For readers comfortable with Java and Scala.

About the author

Francisco Lopez Sancho-Abraham is a senior consultant at Lightbend, and a principal engineer on the Akka Team. Raymond Roestenburg, Rob Bakker, and Rob Williams are the authors of the first edition of Akka in Action.

Table of Contents

1 Introducing Akka
2 Up and running
3 One actor is no actor
4 Akka test kit
5 Fault tolerance
6 Discovery and routing
7 Configuration
8 Clustering
9 Sharding and persistence
10 Streams, persistence queries, and projections
11 Akka ports
12 Real-world example: An Akka betting house
13 Clustering, part 2
14 Connecting to systems with Alpakka
15 Akka betting house, part 2
16 Akka Streams, part 2
LanguageEnglish
PublisherManning
Release dateSep 19, 2023
ISBN9781638352099
Akka in Action, Second Edition
Author

Francisco Lopez-Sancho Abraham

Francisco Lopez Sancho-Abraham is a senior consultant at Lightbend. He is currently contributing to Akka and helping clients to use it to reach their goals. He has extensive experience providing solutions and training around Akka and distributed architectures.

Related to Akka in Action, Second Edition

Related ebooks

Software Development & Engineering For You

View More

Related articles

Reviews for Akka in Action, Second Edition

Rating: 0 out of 5 stars
0 ratings

0 ratings0 reviews

What did you think?

Tap to rate

Review must be at least 10 words

    Book preview

    Akka in Action, Second Edition - Francisco Lopez-Sancho Abraham

    pebook_preview_excerpt.html}r#Gޫf/Q ɽiDI-qDj J,TA ]CK~=KtwLĈMfr[~kjneQe Ed_<z6yׯOi X]fi&Vߢi͋ۗw2t]|Z,Y9y޹?tk'c ;YauqB6߸=s-8U//?^|+{7?f٧/>~{g/]EyxylˎneYfVYX̃_\u3 m,Z h~dmWs}Ag u0êdͮ9V5.D~#H~KU3AL2!!pj+rdBv[]i öUqͺh[ Q2"Er;׹kee@n8_R ܺBTl91Cd j.86+s+"&Z}p fo6.ofrc#[0PUvS>f+jr΃T?1..Z8Ct#k}OC U=XEoNBTnO'1,?% " ml߉QO^S:fߍ\K#z`~M~?qscKjG\'G`<߻V`҃bNwBLJ(Ȕ#5T=dH Ħqvt)bOr=q)\gL3q;xJvbP+袊b˖t!¸z#)Zh՞D $=ډam]#j_ПF;y /E(|S>gySѲO(s>M`8x{d'Sޠ>|*hy[P^"ܨ2L'ar0jͼׄTr(GTy!Bz{R!92TGdf0hKcfoCZ@jѣ%r#Kզý\YLr7~V^GM6 -缺iutQA~eLM;p{ yBR]( vP3;=DEr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