Service Fabric Concept, Guidelines and Patterns #6-Deadlock

Saturday, February 20, 2016

Service Fabric Concept, Guidelines and Patterns #6-Deadlock this post is part of the Service Fabric’s series which covers Service Fabric’s concept, guidelines and common patterns. at this post we will discuss potential deadlock and good practice for avoiding it.   The idea for this post came while speaking with Jeffrey Richter from the Service Fabric team. When would you get deadlock on Service Fabric’s Actor Model? deadlock occurs when Actor A calls instance of Actor B and different call for Actor B (not recurrent) call the same instance of Actor A. A ---->...

Service Fabric Concept, Guidelines and Patterns #5–Map Reduce

Thursday, January 21, 2016

Service Fabric Concept, Guidelines and Patterns #5–Map Reduce this post is part of the Service Fabric’s series which covers Service Fabric’s concept, guidelines and common patterns. at this post we will discuss the Map Reduce pattern. quite like the Fork Join pattern Map Reduce is splitting a work into sub processing units, each handling portion of the overall processing. the difference is that Map Reduce sub processes produce the result in form of Key/Value pairs,while the reduction merge similar keys produced by the sub processing units,into single key value pairs (with no...

Service Fabric Concept, Guidelines and Patterns #4 – Fork Join

Service Fabric Concept, Guidelines and Patterns #4 – Fork Join this post is part of the Service Fabric’s series which covers Service Fabric’s concept, guidelines and common patterns. at this post we will discuss the Fork Join pattern. Fork Join pattern divide a work into sub unit which execute in parallel, the parallel results collected back into single result (PLINQ is classic sample for this pattern).   the following diagram describe the pattern.   when using the Actor model over Service Fabric, Actor Id dictate the actual instantiation. in...

Service Fabric Concept, Guidelines and Patterns #1

Friday, November 13, 2015

Service Fabric Concept, Guidelines and Patterns #1 this is the first post in series which focus on Service Fabric. the series covers Service Fabric’s concept, guidelines and common patterns.   What is Service Fabric? Service Fabric is new framework that can operate either on the cloud (Azure) or on premise. this framework enable to build solution from small parts (concept known as Micro-Services). Micro-Services can be thought as Object-Oriented for cloud (or distributed application). the most granular unit of Micro-Services called Actor. Actor is similar to class in the Object Oriented paradigm. group of Actor can be packed...