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

2016/01/21

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: Let Your Voice Be Heard

2015/12/25

Service Fabric: Let Your Voice Be Heard Service Fabric SDK is still in its early stage and your voice may affect the final outcome. your voice can be heard at the Service Fabric User Voice all you have to do is vote for feature and the Team will do effort for addressing the top feature requested by the community.   personally I can recommend looking at the following * Adoption of RX 3 * Custom Actor's Queue Extensibility * Immutable Invocation * Provide more control over actor lifetime * Open Source Service Fabric * Cross Actors/Services Transaction
no comments

Service Fabric Concept, Guidelines and Patterns #3 – Pool

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

2015/12/22

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

FW: ValueTask

2015/12/05

you may want to read this blog post in short ValueTask suggestions for corefx is quite cool and can save memory allocation   credit: this post brought to my attention by Avi Avni
one comment

apologize for comment approval

2015/11/25

apologize for comment approval I want to apologize for those of you which sent comments and didn’t got approved. historically there was so much spam comments so I stopped checking the comments. recently I spot that most comment are real and I will go on the comments periodically for approval.
no comments

Awaiting RX

2015/11/21

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

2015/11/13

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