Play Framework

Introduction to play framework

Reading Time: 3 minutes In this blog we will discuss about the basics of the play framework. So let’s start with the introduction of the play framework. What is Play framework? Play is a lightweight open source framework develop by the Lightbend. Companies such as LinkedIn, Coursera, Verizon and many more already work with Play. So basically it is a web framework for the JVM that breaks away from Continue Reading

Let’s Have A Look At MVC (Model View Controller) Architecture

Reading Time: 3 minutes MVC Architecture or Model View Controller Architecture is an architectural pattern where the application is separated into three important parts: The model part, the view part, and the controller part. Nowadays this Architecture is widely used to develop mobile and web applications. If you are interested in web development or mobile application development then this blog can help you to know about the basics of Continue Reading

Serialization in Lagom

Reading Time: 2 minutes In my previous blogs on Lagom, we discussed Persistent Entity and Read-side and Write side in Lagom. In this blog, I’m going to discuss how serialization is handled in Lagom. But before that let’s understand what serialization is ? Serialization is a process of converting an object into the stream of bytes so that you can store or transmit it in memory, database etc. Its Continue Reading

Custom ErrorHandlers and Lagom

Reading Time: 3 minutes Hello everyone, it’s been quite a while now since I started working on Lagom(java) and it was only recently when I came across a scenario wherein I was required to override the ErrorHandler provided by Play in my Lagom microservice. As you all already know that Lagom is built on top of Play and Akka, so there will be times when we’ll be required to Continue Reading

Stream a file to AWS S3 using Akka Streams (via Alpakka) in Play Framework

Reading Time: 5 minutes In this blog post we’ll see how a file can be streamed from a client (eg: browser) to Amazon S3 (AWS S3) using Alpakka’s AWS S3 connector. Aplakka provides various Akka Stream connectors, integration patterns and data transformations for integration use cases. The example in this blog post uses Play Framework to provide a user interface to submit a file from a web page directly to Continue Reading

Response size compression in Lagom: GZip Encoding

Reading Time: 2 minutes This is a small blog post, in which we will go through the steps to add response compression in our Java-based Lagom service. If you are not familiar with the concepts of Lagom, read through this blog to gain a brief idea of what Lagom is all about. Then, come back here and we will add quickly add compression to the service you’d have implemented. Continue Reading

Lagom

Lagom 1.4: What’s new?

Reading Time: 7 minutes Lagom is a reactive microservice framework, which is increasingly becoming the go-to solution for building a microservice-based architecture for industry-wide services. In case you still haven’t heard of it, this blog post will not only familiarize you with the idea behind Lagom but will also walk you through some history of Lagom since its 1.0 launch, what’s new in the latest stable release, and some Continue Reading

Streaming data from PostgreSQL using Akka Streams and Slick in Play Framework

Reading Time: 4 minutes In this blog post I’ll try to explain the process wherein you can stream data directly from PostgreSQL database using Scala Slick (which is Scala’s database access/query library) and Akka Streams (which is an implementation of Reactive Streams specification on top of Akka toolkit) in Play Framework. The process is going to be pretty straightforward in terms of implementation where data is read from one Continue Reading

Internationalization with Play Framework(2.6.x)

Reading Time: 2 minutes In this blog, I will demonstrate how your application can support different languages using Play Framework 2.6.0    What is Application/Website Internationalization ?   Application/Website Internationalization can be defined as a process of developing and designing an application that supports not only single language but also different languages so that it can be easily adapted by the users from any language, region, or geography. It ensures that the code base of your application is flexible enough Continue Reading

Play around with Microservices

Reading Time: 3 minutes What is microservice architecture Microservice architecture is a method of developing software applications as a suite of independently deployable, modular services in which each service runs a unique process and communicates through a well-defined, lightweight mechanism to serve a business goal. In other words, it is an architectural style that structures an application as a collection of loosely coupled services, which implement business capabilities. Why Continue Reading

Actions in Play Framework

Authentication using Actions in Play Framework

Reading Time: < 1 minute Actions in Play Framework plays an important, the requests received by a Play application are handled by an Action. Action composition is an incredibly powerful way to enhance or restrict controller behaviour. In Play Framework controllers consist of methods that create Action objects to handle the incoming requests. A play.api.mvc.Action is basically a (play.api.mvc.Request => play.api.mvc.Result) function that handles a request and generates a result to be sent to the client. We can 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

Play-Spark2 A simple Application

Reading Time: 3 minutes In This Blog We Will Create  a very simple application with Play FrameWork And Spark. Apache Spark is a fast and general-purpose cluster computing system. It provides high-level APIs in Scala, Java, and Python that make parallel jobs easy to write, and an optimized engine that supports general computation graphs. It also supports a rich set of higher-level tools including Shark and Spark Streaming. Play Continue Reading