Quantcast
Channel: Cake Solutions Team Blog » spray
Browsing all 26 articles
Browse latest View live

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 Article


Low-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 Article


Composing 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 Article

This 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 Article

Lift 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 Article


API 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 Article

This 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 Article

Spray 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 Article


Purity 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 Article


Errors, 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 Article

This 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 Article

Control-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 Article

This 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 Article


This 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 Article

Spray 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 Article


Akka 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 Article

AngularJS 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 Article


This 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 Article

This 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 Article

Streaming 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
Browsing all 26 articles
Browse latest View live