Home » Tag Archives: Akka

Tag Archives: Akka

Deploying akka-http app to Cloud Foundry

In a preceding post I had gone over the steps to deploy a simple akka-http app to Cloud Foundry. The gist of it was that as long there is a way to create a runnable fat(uber) jar, the deployment is very straightforward – Cloud Foundry’s Java buildpack can take the bits and wire up everything needed to get it up an running in ...

Read More »

Deploying akka-http app to Cloud Foundry

It is easy to deploy an akka-http application to Cloud Foundry. I experimented with a few variations recently and will cover ways to deploy an Akka-http based REST app in two parts – first a simple app with no external resource dependencies, the second a little more complex CRUD app that maintains state in a MySQL database. Pre Requisites A quick way to ...

Read More »

Unit vs Integration Akka Testing

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

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

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

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

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

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 »