Posted by Aleksandr Ivanov
Fri, Feb 26, 2016

I wrote the initial version of this article about two years ago, back then Spray had not yet been acquired by Typesafe, hence no Akka-Http existed. Nevertheless I decided to repost it, primarily because Spray is still being used by many and the material in this article has some nice examples of how various FP concepts can be used for fun and profit. Gist for the code can be found here.

Posted by Aleksandr Ivanov
Wed, Aug 19, 2015

Surprisingly many questions on the Scala Stack Overflow are related to the issues with ambiguity during implicits resolution. Indeed if one breaks the basic implicit scope management rules, it’s very easy to fall into the ambiguity trap. One source of such issues is the Spray toolkit, which has a routing DSL that heavily depends on Scala’s implicit mechanism. Unfortunately, some of these issues are not very clear, especially when working with its json library and Scala’s compiler doesn’t help us much. In todays post I’d like to take a deeper look at this problem, why it occurs and how we can solve it. 

Posted by Aleksandr Ivanov
Mon, Jul 6, 2015

Posted by Jan Machacek
Thu, May 8, 2014

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 application that receives HTTP requests with JSON payloads, unmarshals the JSON into instances of our own classes (case classes, to be exact). It then sends these instances to the appropriate Actors for processing. When the actors reply, it marshals the responses into JSON, and uses that to construct the HTTP responses.

Posted by Marios Papasofokli
Mon, Apr 28, 2014

Welcome to another edition of #ThisWeekInScala!

After last week's release for Scala 2.11.0 many projects have been published for it, check the list out!

Lets catch-up on the latest Scala happenings...

Posted by Jan Machacek
Wed, Apr 23, 2014

Hello, world

We start with the HelloWorld app and the HelloWorldService, which show the low-level Spray API. We begin with

Posted by Marios Papasofokli
Mon, Apr 14, 2014

Welcome to another edition of #ThisWeekInScala!

An exciting week since we have new releases for Scala, Play and Akka!

Since I will be away next week, my colleague Mario Arias (@dh44t) will be producing the next roundup which will be released on a Tuesday because of Monday's holiday.

Lets catch-up on the latest Scala happenings...

Posted by Marios Papasofokli
Mon, Mar 17, 2014

Welcome to another edition of #ThisWeekInScala!

The Akka team is asking for help building their new community page so if you are interested then please show your support here.

Lets catch-up on the latest Scala happenings ...

Posted by Jan Machacek
Sat, Dec 14, 2013

In the previous post, I showed you the improvements to the chunked request handling. Unfortunately, I had to deal with uri.path.toString(), which I hope you too found rather unsatisfactory. Let me improve the API, and add some tests while I'm at it!

Posted by Jan Machacek
Tue, Dec 10, 2013

In my Scala Days 2013 talk, I showed a computer vision application that sent chunks of the H.264 or MJPEG stream to my Scala application using chunked HTTP post. Naturally, I used Spray for the HTTP layer of the application, but not everything was as well as it could have been.

Posts by Topic

see all

Subscribe to Email Updates