Home » Tag Archives: Akka

Tag Archives: Akka

Unit vs Integration Akka Testing

akka-logo

This is the sixth post in the series about integrating sync clients with async systems (1, 2, 3, 4, 5). Here we’ll see how to test Akka actors with different testing styles. Unit vs Integration Testing Nowadays everybody agrees with the famous testing pyramid:           Harder to achieve is an agreement on what integration, unit, functional ...

Read More »

Coordination in Akka

akka-logo

This is the fifth post in the series about integrating sync clients with async systems (1, 2, 3, 4). Here we’ll see how to manage the actor’s lifecycle, so our service can use the available resources efficiently. Lifecycle Actors, threads, objects, resources… All of them have different states during their lifetime. Some of those states are internal and they shape ...

Read More »

Akka Notes – Finite State Machines – 2

akka-logo

In the first part of notes on Akka FSM, we saw the basics of Akka FSM and the outline of the Coffee vending machine that we planned to build – the structure of the Actor and a list of messages we pass to the Actor. In this second and final part, we will go ahead and implement each of these ...

Read More »

Akka Notes – Finite State Machines – 1

akka-logo

I recently had the opportunity to play with Akka FSM at work for some really interesting use-case. The API (in fact, the DSL) is pretty awesome and the entire experience was amazing. Here’s my attempt to log my notes on building a Finite State Machine using Akka FSM. As an example, we’ll walk through the steps of building an (limited) ...

Read More »

Finite state machines with Akka

akka-logo

As you could remember from previous posts, Part 1 and Part 2, we’re implementing a solution that integrates a sync client with an async system. Today we’ll see how to keep track of the async operations so we can provide a sync response to the client. Let’s start with the architectural diagram.                 ...

Read More »

Akka basics

akka-logo

As the previous post explained our system is based on Akka. Before going into more detail about our solution, I’d like to explain what Akka is about and why it is so awesome. Akka is a toolkit and not a framework, you can simply use the bits that you need for your service. In this series we’ll focus on the ...

Read More »

Reactive Database Access – Part 2 – Actors

akka-logo

We’re very happy to continue our a guest post series on the jOOQ blog by Manuel Bernhardt. In this blog series, Manuel will explain the motivation behind so-called reactive technologies and after introducing the concepts of Futures and Actors use them in order to access a relational database in combination with jOOQ. Manuel Bernhardt is an independent software consultant with ...

Read More »

Reactive file system monitoring using Akka actors

akka-logo

In this article, we will discuss: File system monitoring using Java NIO.2 Common pitfalls of the default Java library Design a simple thread-based file system monitor Use the above to design a reactive file system monitor using the actor model Note: Although all the code samples here are in Scala, it can be rewritten in simple Java too. To quickly ...

Read More »

Testing AKKA application with Spock

scala-logo

AKKA is message-driven and actor model based concurrency toolkit. Although it’s written in Scala, AKKA can be used in any JVM based language project. This post tries to fill the gap of missing information about writing good tests in polyglot JVM projects that leverage AKKA framework. In multi language JVM projects my obvious choice of testing tool is Spock. Powered ...

Read More »

Akka Typed Actors: Exploring the receptionist pattern

akka-logo

In this article we’ll explore another of Akka-Typed patterns. This time we’ll show you how you can use the receptionist patterns. This is the third and last article on a series on Akka-Typed. The other two articles can also be found on this site. If you don’t know anything about Akka-Typed yet, it’s a good idea to first read the ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns