Summary
In this chapter, we discussed how to implement scheduling using timers leveraging the Grain.RegisterTimer
method, which requires us to pass a callback function, a timespan to wait before the first timer tick, and finally a timespan to wait between each schedule of the timer. We also discussed how to implement scheduling using reminders leveraging the Grain.RegisterOrUpdateReminder
method, which requires us to pass the reminder name, the timespan to wait before the first reminder tick, and the timespan to wait between each schedule of the reminder. We also discussed how to implement notifications using observers leveraging the Grain.Subscribe
, Grain.Unsubscribe
, and Grain.Notify
methods. You will now be able to implement scheduling using timers and reminders and implement notifications using observers in Orleans.
In the next chapter, we will learn in detail about engineering fundamentals in Orleans.