際際滷

際際滷Share a Scribd company logo
Sascha Dittmann
Blog: http://www.sascha-dittmann.de
Twitter: @SaschaDittmann
Azure Service Fabric
Erstellen von leichtgewichtigen Microservices
Microservices
Microservices
Quelle: designritter / pixelio.de
Beispiel Architektur (Heute)
Compute
(Stateless)
Gateway
(Stateless)


Storage
(Stateful) DB (P1) DB (P2) DB (N)

Queue
Beispiel Architektur (Vision)
Compute
(Stateful)
Gateway
(Stateless)


Storage
(Stateful) DB DB DB
Service Fabric Cluster
Windows OS
Windows OS Windows OS
Windows OS
Windows OS
Windows OS
Node
Node
Node
Node
Node
Node
App A v2
App A v2
App A v2
App A v1
App A v1
App A v1
Web App
Web App
Web App
Service Fabric Modelle
Microservices
Virtual Actors
Quelle: U.Weinreich / pixelio.de
Demo  Stateless Virtual Actor
Hochverf端gbarkeit
Primary
Secondary Secondary
Demo  Stateful Virtual Actor
Best Practices
public interface IVoicemailBoxActor : IActor
{
[Readonly]
Task<List<Voicemail>> GetMessagesAsync();
 Read Only Methods
 Actor Garbage Collector
[ActorGarbageCollection(IdleTimeoutInSeconds = 10, ScanIntervalInSeconds = 2)]
class HelloActor : Actor, Ihello
{
public Task<string> SayHello(string greeting)
{
Application Package
Application
Package
Service
Package A
(100 Mb)
Service
Package B
(2.5 GB)
Code
Configuration
Code
Configuration
Service
Type B
Unit of deployment
and activation
Unit of isolation,
lifetimes and versioning
Applicatio
n Type
Windows OS
Windows OS Windows OS
Windows OS
Windows OS
Windows OS
N
o
d
e
N
o
d
e
N
o
d
e
N
o
d
e
N
o
d
e
N
o
d
e
Cluster
Service
Type A
Partitioning

 Singelton
 UniformInt64
 Name
Demo
Ressourcen
 Blog Posts
http://bit.ly/ServiceFabric
 Twitter
@SaschaDittmann
 Offizielle Documentation
http://azure.microsoft.com/en-
us/documentation/services/service-fabric/

More Related Content

dotnet Cologne 2015 - Azure Service Fabric