Home » Tag Archives: Akka

Tag Archives: Akka

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 »

Akka Typed Actors: Exploring the receiver pattern

akka-logo

In the previous article we looked at some of the basic features provided by Akka Typed. In this article and the next one we’ll look a bit closer at some more features and do that by looking at the two different patterns provided by Akka Typed: the Receiver and the Receptionist pattern. If you’re new to Akka Typed, it might ...

Read More »

Akka Typed: First steps with typed actors in Scala

akka-logo

With the [release of Akka 2.4.0| http://akka.io/news/] a couple of weeks ago the experimental Akka Typed module was added. With Akka Typed it is possible to create and interact with Actors in a type safe manner. So instead of just sending messages to an untyped Actor, with Akka Typed we can add compile time type checking to our Actor interactions. ...

Read More »

Divided We Win: an event sourcing / CQRS prospective on write and read models separation. Commands and Events.

akka-logo

In today’s post we are going to unveil some very interesting (in my opinion) architecture styles: event sourcing and command query responsibility segregation (CQRS). Essentially, in both of them events are in the heart of the system design and reflect any changes of the state which are happening. It is quite different from the traditional CRUD architecture where usually only ...

Read More »

Backpressure in action with websockets and akka-streams

akka-logo

So in the previous article I showed how you could create a websocket server using akka-streams. In this follow up article we’ll look a bit closer on how backpressure works with websockets (and probably any TCP based protocol on top of akka). To show you this we’ll use the same setup as we did in the article on visualizing backpressure. ...

Read More »

Akka samples with scala and Spring

akka-logo

I was looking around recently for Akka samples with Spring and found a starter project which appeared to fit the bill well. The project however utilizes Spring-Scala which is an excellent project, but is no longer maintained. So I wanted to update the sample to use core Spring java libraries instead. So here is an attempt on a fork of ...

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:

  • Advanced Java Guide
  • Java Design Patterns
  • JMeter Tutorial
  • Java 8 Features Tutorial
  • JUnit Tutorial
  • JSF Programming Cookbook
  • Java Concurrency Essentials