The beautiful simplicity of Apache Ranger plugin

If you are here, you already know what Apache Ranger is. It is the most popular, if not the only, way to manage security in the Hadoop framework. It has integrations with Active Directory, Kerberos and various others for authentication but I believe the most interesting feature is its authorization…

Akka Notes - Finite State Machines - 2

In the first part of notes on Akka FSM, we saw the basics of Akka FSM and the outline of the Coffee vending machine that we planned to build - the structure of the Actor and a list of messages we pass to the Actor. In this second and final…

Akka Notes - Finite State Machines - 1

I recently had the opportunity to play with Akka FSM at work for some really interesting use-case. The API (in fact, the DSL) is pretty awesome and the entire experience was amazing. Here's my attempt to log my notes on building a Finite State Machine using Akka FSM. As an…

Akka Notes - Actor Supervision - 8

Failures are more like a feature among distributed systems. And with Akka's let it crash fault tolerance model, you could achieve a clear separation between your business logic and your failure handling logic (supervision logic). All with very little effort. It's pretty amazing. This is the topic of our discussion…

Akka Notes - DeathWatch - 7

When we talked about Actor lifecycle, we saw that Actors could be stopped by various means (using ActorSystem.stop or ActorContext.stop or sending a PoisonPill - there's also the Kill and the gracefulStop). Whatever reason an Actor dies, there are cases when a few other actors in the system…

Akka Notes - Child Actors and ActorPath - 6

Actors are completely hierarchical. Whatever Actors that you create HAS to be a child of some other Actor. Let's analyze that a bit : Path Say, we create an ActorRef using ActorSystem.actorOf and try to print its path. val actorSystem=ActorSystem("SupervisionActorSystem") val actorRef=actorSystem.actorOf(Props[BasicLifecycleLoggingTeacherActor]) println (actorRef.…

Akka Notes - Actor Lifecycle - Basic - 5

(Please note that this lifecycle write-up does not cover the preRestart or the postRestart methods. We'll talk about them when we discuss supervision) The basic Actor lifecycle is very much intuitive. You could actually compare the basic Actor lifecycle with a Java servlet lifecycle with one special difference. 1. Just…

Akka Notes - ActorSystem (Configuration and Scheduling) - 4

As we saw from our previous posts, we could create an Actor using the actorOf method of the ActorSystem. There's actually much more you could do with ActorSystem. We'll touch upon just the Configuration and the Scheduling bit in this write-up Let's look at the subsets of methods available in…