akka-http

Authorization using JWT

Reading Time: 3 minutes In this blog, we will discuss how to implement Akka HTTP authorization using JWT. So first let’s see what is JWT. What is JWT JSON Web Token (JWT) defines a compact and self-contained way for securely transmitting information between parties as a JSON object. The token is mainly composed of header, payload, signature. These three parts are separated by dots(.). The header contains a hashing Continue Reading

Rejection In The Akka HTTP: Let’s handle errors scenarios more properly

Reading Time: 4 minutes Hello folks, in this blog we will see Rejection in the Akka HTTP and how it helps in handling errors scenarios in our Application. Rejection concept in Akka HTTP helps to deal with errors scenarios more properly. When a filtering directive, like the get directive. It does not allow the request to pass through its inner route . As the filter condition is not satisfy, Continue Reading

Marshalling/Unmarshalling in Akka HTTP

Reading Time: 4 minutes In this blog we are going to discuss about Marshalling/Unmarshalling in Akka HTTP. Before discussing it lets have a look at Akka HTTP. Akka HTTP  offers a toolkit for providing and consuming HTTP-based services. The Akka HTTP modules implement a full server- and client-side HTTP. It provides client-side and server-side API to send HTTP requests and HTTP responses.To transfer data over the network, we need Continue Reading

Getting Started With Akka Http Cache

Reading Time: 3 minutes To build a rest point application, there are many options available like Akka Http, Finagle, Play Framework, Lagom etc. In our project, we are using Akka HTTP for building rest applications. We have lots of requests related to analytics. There are many requests which are very expensive. So, we faced an issue where our application was taking time to respond to some analytics. We have Continue Reading

Trying to use form field and file upload directive together in Akka-Http?

Reading Time: 2 minutes If you are reading this then probably you have encountered the issue that comes while accessing fields with uploading a file, and if not then let me first tell you what’s the situation that I’m talking about here, Let’s see the code where we try to use fileUpload directive and formFields together

Store Semantic Web Triples into Cassandra

Reading Time: 2 minutes The semantic web is the next level of  Web Searching where data is more important and it should be well defined. The semantic web is needed for making the web search more intelligent and intuitive to get the user’s requirement. You all can find some interesting point on the Semantic Web here. Triples is an atomic entity in RDF. It is composed of subject-predicate-object. It Continue Reading

Routing DSL in Akka HTTP

Reading Time: 3 minutes In this blog we’ll be discussing about the Routing DSl provided by Akka HTTP High level Server Side API. Akka HTTP provides a very flexible “Routing DSL” for elegantly defining RESTful web services. It picks up where the low-level API leaves off and offers much of the higher level functionality of typical web servers or frameworks, like deconstruction of URIs, content negotiation or static content serving. Continue Reading

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

Say Hello to “Akka-Http”

Reading Time: 3 minutes Hello folks, Hope you are enjoying your coding days!!! in this blog, I will explain a cool technology named Akka-Http which i have recently explored in my coding days!! Introduction The Akka HTTP implements a full server- and client-side HTTP stack on top of akka-actor and akka-stream. It’s not a web-framework but rather a more general toolkit for providing and consuming HTTP-based services. Akka.Http comes with Continue Reading

Neo4j With Scala: Rest End Points with AKKA HTTP

Reading Time: 3 minutes Hello Folks, Welcome back again in the series of Neo4j with Scala . Let’s start our journey again. But before starting our journey here is the links for recap who join late us in the journey : Getting Started Neo4j with Scala : An Introduction Neo4j with Scala: Defining User Defined Procedures and APOC Neo4j with Scala: Migrate Data From Other Database to Neo4j Neo4j Continue Reading

Document generation of Akka-HTTP using Swagger

Reading Time: 2 minutes Hello All,  In this blog we are using Swagger to generate document of Akka-HTTP. For Swagger you can get more information from  Introduction to Swagger . For Akka you can get more information from Introduction to Akka-Http You can find complete code here. build.sbt file of the project contains all dependency. SwaggerDocService.scala AkkaSwagger.Scala Get the Json in response by hitting localhost:8080/api-docs/swagger.json   You can get Continue Reading