Advertisements

Author: Mayank Bairagi

Tale of a Container’s File System

Reading Time: 4 minutes Namespace, CGroup, and Union file-system are the basic building blocks of a container. Let’s have our focus on file-system. Why yet another file-system for the container? Are Conventional Linux file-systems like ext2, ext3, ext4, XFS etc. not good enough to meet the purpose? In this blog post, I will try to answer these questions. Here we will be delving deeply into the Union File System Continue Reading

Advertisements

Spray authenticate directive : A decoupled way to authenticate your API

Reading Time: 3 minutes Organization exposes critical business data or user’s private data through API. It is required to protect API against any unauthorized access, attack or security breach. In this blog I am not going to discuss API security mechanism. Here I want to detailed out the separation of API authentication from underlying RESTful Api. Authentication / Authorization is cross cutting concern and it must be decoupled from Continue Reading

ScalaKnol : Loan Pattern Revisited

Reading Time: 2 minutes Here I am going to modify the loan pattern described in this article “Scala Knol : Understanding Load Pattern” . Let us take an example from earlier blog, we have all used connections to get to the database and then we need to destroy the connection so that there are no leaks. OK, we can use the connection factory but let us assume that we Continue Reading

Dependency Injection In Scala using Self Type Annotations

Reading Time: 5 minutes Dependency injection is a software design pattern that allows removing hard-coded dependencies and making it possible to change them, whether at run-time or compile-time. Dependency Injection has three kind of software components 1. Dependent or Consumer : Describe what software components, it depends on . 2. Dependencies on which consumer depends 3. Injector also known as provider : Decides what concrete classes satisfy the requirements Continue Reading

Scala lift : Access Session Information In Actors.

Reading Time: 2 minutes Problem: In Scala Lift Application. There are two ways to maintain and access the session information. Either we can use SessionVars or net.liftweb.http.S object. Each of them work significantly well until there are used in the scope of session. Now the actual problem arise when I used Actor to get concurrency in scala lift application. Actor runs outside of the context of the session that Continue Reading

Empower Scala with Apache Solr

Reading Time: 3 minutes Solr is ready to use enterprise search server. Here I am going to show you how we can use both of them together to empower your scala application with solr. Solr is able to achieve fast search responses because, instead of searching the text directly, it searches an index instead. This is like retrieving pages in a book related to a keyword by scanning the index Continue Reading

Knoldus Pune Careers - Hiring Freshers

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