New SDK for Service Fabric

Wednesday, March 9, 2016

New SDK for Service Fabric Service fabric has new preview SDK with have some breaking changes and lot of improvements, some of the improvements was was based on user voice feedback. The team is listening to your voice, which mean that the API can further improve. Take your time and vote for the feature you care for.   You can find the new SDK’s web installer at this link. The SDK release note can be found at this link.   I will go over some of the changes on future posts.
no comments

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 #3 – Pool

Friday, December 25, 2015

Service Fabric Concept, Guidelines and Patterns #3 – Pool 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 Pool pattern. there are many reasons for using pools, you may need a set of initialized resources, for boosting performance, limit memory allocations or limiting of concurrent access to resource (like connection string).  not matter what motivation you have, the pattern is quite simple to implement while using the Service Fabric Actor model.   remember that the Service Fabric’s...
no comments

Service Fabric Concept, Guidelines and Patterns #2 – Singleton

Tuesday, December 22, 2015

Service Fabric Concept, Guidelines and Patterns #2 – Singleton 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 Singleton pattern. when using the Actor model, Service Fabric’s ActorId is the key component for implementation of most pattern when the Service Fabric resolve Actor instantiation it’s using ActorId for returning existing Actor or creating new one. for example: (Update the sample was wrong idx wasn’t “A”) var idA = new ActorId("A");var idB = new ActorId("B");var...

Awaiting RX

Saturday, November 21, 2015

Awaiting RX this post discuss the meaning of awaiting RX stream. many languages including .NET embrace the concept of async / await. async / await on .NET is usually refer to Task, but Task in not the only await-able type in .net, in matter of fact there is a few type which can be awaited, one of those type is IObservable.   what happens when you’re awaiting IObservable? When awaiting IObservable the await schedule on completion and resume with the last value. for example: Code Snippet int i = await Observable.Range(0,...
one comment

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...