Spray

Akka HTTP vs Other REST API Tools

Reading Time: 3 minutes Hi Folks ! Lately there have been a lot of tools that allow us to build rest APIs like the following : Akka Http Play Scalatra http4s Finch Spray In my blog today, I will be discussing Akka Http and its counterparts(competitors) in terms of their advantages, disadvantages, performance and use cases. Let us begin comparsion of Akka-Http with Scalatra. Scalatra is a thread based,it Continue Reading

Spark with Spray Starter Kit

Reading Time: 3 minutes Over the last few months, Spark has gained a lot of momentum in Big Data world. It has won a lot competitions & surveys, like Daytona Gray Sort 100TB competition or becoming top level Apache Project and many more. Irrespective of whether it is a product which is a fast/general engine for large-scale data processing, Spark has found its use everywhere. The best part about Spark being that is it can Continue Reading

How To Implement logRequestResponse in Spray

Reading Time: 1 minute Spray has the feature to log request and response of every route through logRequestResponse. We needn’t to add log in each route because it could be done from a single place. This also helps to maintain clean code. Please see below example:- class HubServices extends Actor with HubRoutes { def actorRefFactory: ActorContext = context // logs just the request method and response status at info Continue Reading

Spray with Akka Starter Kit

Reading Time: 3 minutes Over the last few months, Spray is fast becoming the de-facto for all the products that we are working on. Irrespective of whether it is a product which has a full featured UI or a gaming component which needs to provide services for the game to execute in a performant way, Spray has found its use. The best part about Spray being that is very Continue Reading

How to extract data from multipart/mixed request in Spray

Reading Time: 1 minute If you are getting multipart/mixed response then how should we handle that in spray so that we can extract all the data from that. Suppose we are getting email request in which contains all the information such as: from , to, attachment etc. So here is the way to extract those : entity(as[MultipartContent]) { emailData => post { val dataInParts = emailData.parts.seq map { emailPart Continue Reading

Knoldus Big Data Presentation at National Big Data Conference

Reading Time: 1 minute Recently, I was at the Big Data conference where I was speaking on the subject of attacking the Big Data riddle with Scala and Akka. The ambience was awesome with big consulting companies rubbing shoulders with niche providers like Knoldus. There were some great initiatives which came to light in the fields of social big data gathering, in genomics and how the auto industry is Continue Reading

Knoldus Pune Careers - Hiring Freshers

Get a head start on your career at Knoldus. Join us!