Presentation is loading. Please wait.

Presentation is loading. Please wait.

Latency Unpredictability Load Unreliability Data Consistency Errors Failure Performance Concurrency Responsive Decoupled.

Similar presentations


Presentation on theme: "Latency Unpredictability Load Unreliability Data Consistency Errors Failure Performance Concurrency Responsive Decoupled."— Presentation transcript:

1

2

3 Latency Unpredictability Load Unreliability Data Consistency Errors Failure Performance Concurrency Responsive Decoupled Resilient Scalable

4

5

6

7

8 0424 To: 0438 "Hi!" 0438 To: 0438 "Hi!"

9 public interface ISmsGrain : IGrainWithStringKey { Task NewMessage(string message); Task > GetMessages(); } IGrainWithIntegerKey or IGrainWithGuidKey or

10 var bill = GrainFactory.GetGrain ("0438"); await bill.NewMessage("Hi!");

11 [StorageProvider(ProviderName = "MyStore")] public class SmsGrain : Grain, ISmsGrain { public async Task NewMessage(string message) { this.State.Messages.Add(message); await this.State.WriteStateAsync(); } public Task > GetMessages() { return Task.FromResult(this.State.Messages); } public interface IMessageState : IGrainState { List Messages { get; set; } }

12

13

14 Simple Messaging smsorleans.cloudapp.net

15

16 public interface ISmsObserver : IGrainObserver { void NewMessage(string message); }

17 Observe Closely

18

19

20

21 A Tour of FreeBay

22

23


Download ppt "Latency Unpredictability Load Unreliability Data Consistency Errors Failure Performance Concurrency Responsive Decoupled."

Similar presentations


Ads by Google