Author: Pankhurie

Lagom 1.4: Response compression | GZip Encoding

Reading Time: 2 minutes In the previous blog, we discussed response compression using GZip filter for Lagom 1.3. Here, we will go over the steps we use to add similar response compression in Lagom 1.4. The steps remain the same with minor changes due to underlying changes that came as Lagom upgraded from Play 2.5 to Play 2.6. Step 1: The code The first step is to write the 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

Do GIT Right – The 10 commandments!

Reading Time: 4 minutes In this blog post, I’ll be sharing with you the 10 commandments for doing GIT right. Let’s get to it! 1. The KISS principle – Keep It Simple Silly! Commits should be small, clear and precise. For e.g., two different bugs should have two different commits. If there is a task that requires touching multiple files, break those changes into small logical commits with neat Continue Reading

Lagom HeaderServiceCall: What, Why and How?

Reading Time: 5 minutes For those of you who are already familiar with Lagom services, this blog post should be a breeze, and you can skip directly to Section B, where the primary focus is to differentiate between three possible ways to implement a service call in Lagom. And for those of you who are new to Lagom, I’ll make sure there is a small brief and enough links Continue Reading

Lagom Circuit Breaker: What, Why and How?

Reading Time: 5 minutes When our service depends on a third party service’s end point for response, it is possible that due to various reasons, that may vary from bad connection to an internal server error from the third party, our own service fails. A circuit breaker is employed to prevent cascading failures in our services if such scenarios were to occur. And if you are here, you are Continue Reading

CockroachDB: Beginner’s Guide to Setup a Secure Cluster

Reading Time: 7 minutes This blog talks about CockroachDB, which is a distributed SQL database built on a transactional and strongly-consistent key-value store. It scales horizontally; survives disk, machine, rack, and even datacenter failures with minimal latency disruption and no manual intervention; supports strongly-consistent ACID transactions; and provides a familiar SQL API for structuring, manipulating, and querying data. In this blog, we will go through the following: Installing CockroachDB Setting up Continue Reading

Apache Solr with Java: Result Grouping with Solrj

Reading Time: 4 minutes This blog is a detailed, step-by-step guide on implementing group by field in Apache Solr using Solrj. Note: Grouping is different from Faceting in Apache Solr. While grouping returns the documents grouped by the specified field, faceting returns the count of documents for each of the different values for the specified field. However you can combine grouping and faceting in Solr. This blog talks about grouping without the Continue Reading