APIs for Akka applications
Let me follow up on yesterday’s post covering web sockets in Akka by showing you how to structure your APIs and, of course, how to provide both HTTP REST API as well as the web socket [push] API. To...
View ArticleLow-power ARM kernel and akka
Rummaging through my hardware cupboard, I found the iMX53 board and I decided to build a kernel that maximizes power saving and then to deploy akka application with its REST API implemented in spray...
View ArticleComposing Akka & Spray application
Scala calls itself scalable, because it brings–amongst many other things–mixin composition, allowing you to have functional components (functional in sense of containing some functionality) and then...
View ArticleThis week in #Scala (15/06/2012)
Welcome to another week in #Scala. I’m a few hours late in releasing this week’s issue; that code simply doesn’t just write itself. Neither does this blog for that matter.. But that would be cool....
View ArticleLift JSON & java.util.Set[_]
My last article, Akka eye for the Spring guy, infuriatingly glossed over marshalling and unmarshalling. It turns out that these are difficult problems in statically typed languages. You need to tell...
View ArticleAPI first REST in Akka and Spray
Another update to https://github.com/janm399/akka-patterns shows how to build and test REST application in Akka and Spray using API first approach, where we begin by defining the API and writing tests...
View ArticleThis week in #Scala (12/10/2012)
Welcome to another roundup of Scala content. Presentations from JavaOne have been made freely available, so naturally, I have picked out the best Scala options for you. However, it wouldn’t be right...
View ArticleSpray client, Spray and text messages
This is another sample that will make its way to the Akka Patterns project. But for now, you’ll have to settle for a short blog post explaining how Akka Patterns is going to implement two-phase login...
View ArticlePurity and dirty secrets
I left a dirty secret lurking in my previous post about 2 phase authentication with text messages. I hope many of you felt uneasy reading the val secret = generateSecret line. The generateSecret thing...
View ArticleErrors, failures: I’m a teapot
Imagine you want to use the HTTP status codes to indicate failures in your Akka & Spray application. You receive a (JSON) request that maps to known route and can be unmarshalled into an instance...
View ArticleThis week in #Scala (11/01/2013)
Welcome to another edition of #ThisWeekInScala. I’d like to begin with an introduction to the Scala Improvement Process or SIP for short. Martin Odersky encouraged participation during his keynote at...
View ArticleControl-Allow-Origin in Spray
It is 2013, we have modern browsers. And these browsers do not like to load resources from origin that’s different from the resource being displayed. So, if you have a page at http://www.foo.com and...
View ArticleThis week in #Scala (03/06/2013)
Welcome to another edition of #ThisWeekInScala. My choice chirp: @purijatin7: Mark my words, languages coming up in the next decade will all be compared to #Scala. Such an high standard it has set....
View ArticleThis week in #Scala (24/06/2013)
Welcome to another edition of #ThisWeekInScala. Credit for the photo goes to @alvinalexander who tweeted it in relation to his Akka video (see below). Last week I said the Scala Days 2013 videos were...
View ArticleSpray Client and the new Akka 2.2.0 IO
It just so happens that the [@akkateam](https://twitter.com/akkateam) [released Akka 2.2](http://akka.io). Akka 2.2 includes, amongst others, the new IO. In this post, I will show how to use the 1.2...
View ArticleAkka and Spray
This application shows how to build Akka application with Spray API. In this tutorial, I am going to use Spray’s spray-can, spray-httpx, spray-json artefacts with the Akka artefacts to build an...
View ArticleAngularJS in Akka and Spray
This post follows up on the Akka and Spray post, and it extends it by adding a file upload handler. This allows us to upload images to the user’s account. (Note that, as usual, the Akka code does...
View ArticleThis week in #Scala (18/10/2013)
Welcome to another edition of #ThisWeekInScala. I’m covering for Chris again this week to bring you the weekly fix of Scala news. Not a great deal to tell you about but there is one HUGE piece of...
View ArticleThis week in #Scala (25/11/2013)
Welcome to another edition of #ThisWeekInScala! My choice chirp this week would have to be: “Monads are return types that guide you through the happy path.” -Erik Meijer #coursera #scala Credit:...
View ArticleStreaming Twitter API in Akka and Spray
In this tutorial, I am going to use the Spray Client, Akka IO and core Akka to build an application that streams tweets and then performs trivial analysis of the received data. It shows you how to...
View Article