akka-http

Akka HTTP Routing

Reading Time: 2 minutes In this blog, I try to describe some basic routes of Akka-HTTP, redirection of the route and how to handle extra parameters that come in route. so before writing the routes, you have to set the environment for it. implicit val system = ActorSystem(“my-system”) implicit val materializer = ActorMaterializer() implicit val executionContext = system.dispatcher These are the variables that are you need to define provisionally Continue Reading

Getting Started Cockroach with Scala: An Introduction

Reading Time: 2 minutes Today we are going to discuss that how can we use the Scala with the Cockroach DB? As we all know that Cockroach DB is a distributed SQL database built on top of a transactional and consistent key-value store and now we are going to use it with the Scala. But before starting the journey, To those who have caught the train late,ūüėČ this is 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

Solr With Scala : Basic Introduction to Embedded Solr

Reading Time: 2 minutes Hello Folks, As we discussed earlier Solr with Scala and AkkaHttp in our last blog we have used Solr as a service and tried to hit solr service with the AkkaHttp and spray routes. Here is the link for the Recap. When we want to do testing for those methods which are creating connection with the remote solr server, have to use Embedded Solr for Continue Reading

Solr With Scala: Rest End Points with AKKA HTTP

Reading Time: < 1 minute Hello Folks, Today we will discuss about Solr, Scala with Akka-HTTP. We will create rest-endpoints and try to connect with Solr server with them. The basic idea behind using Akka-HTTP for creating Rest end points is modules implement a full server and client-side HTTP stack on top of akka-actor and akka-stream. We can customize these routes according to our use case. We will talk step 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

Event Sourcing with Eventuate

Reading Time: < 1 minute Hi all,Knoldus had organized an hours session on 3rd February 2017 at 4:00 PM. Topic was Event Sourcing with Eventuate.¬†Many enthusiasts ¬†joined and learned from¬†the session. I am ¬†sharing the slides of the session here. Please let me know if you have any question related to linked slides.     you can also watch the video on youtube :   You can find complete code Continue Reading

integrating Cucumber with Akka-Http

Blending Cucumber, Cassandra and Akka-Http

Reading Time: 2 minutes Folks, Knoldus has always pioneered the deep diving into the best ways to use cutting edge technologies. In the past few days, one of our team carried this deed by integrating Cucumber with Akka-Http, Cassandra and of course, Scala. In this blog, we reach out to you to explain and show how this can be done. Cucumber Cucumber is for Behavior Driven Design (BDD). The Continue Reading

Twitter’s tweets analysis using Lambda Architecture

Reading Time: 3 minutes Hello Folks, In this blog i will explain ¬†twitter’s tweets analysis with lambda architecture. So first we need to understand ¬†what is lambda architecture,about its component and usage. According to Wikipedia,¬†Lambda architecture is a data processing architecture designed to handle massive quantities of data by taking advantage of both batch¬†and stream processing methods. Now let us see ¬†lambda architecture components and its detail.

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

Handling HTTPS requests with Akka-HTTPS Server

Reading Time: 2 minutes Hi guys, In my last blogs I explained how one can create a self-signed certificate and KeyStore in PKCS12. You can go through the previous blog,¬†as¬†we’ll be needing¬†certificate and keystore¬†¬†for handling HTTPS requests. https://blog.knoldus.com/2016/10/18/create-a-self-signed-ssl-certificate-using-openssl/ https://blog.knoldus.com/2016/10/26/how-to-create-a-keystore-in-pkcs12-format/ Akka-HTTP provides both Server-Side and Client-Side¬†HTTPS¬†support. In¬†this blog I’ll be covering the¬†Server-Side¬†HTTPS¬†support. Let’s start with “why do we need server-side¬†HTTPS support?” If we want the communication between the browser and Continue Reading

Testing Rejection Handling in Akka-Http

Reading Time: 2 minutes In my previous blog, I discussed how to handle rejections in Akka Http. You may find it here. We left it on terms to explain the testing of it later. Keeping the promise ūüėČ In this blog, we will learn how to be able to write the test cases for rejection handling in Akka-Http. We will be using Akka TestKit and Akka-Http TestKit. Dependencies are Continue Reading