How to use Azure Durable Entities to see who's the strongest Avenger

Click for: original source

In the movies, Thor keeps saying that he “is the strongest Avenger”. Some people say that it’s actually Hulk, but I guess it’s a matter of perspective. How can we find a solution to this riddle? By using Azure Durable Entities of course! By Davide Guida.

Azure Durable Functions have been a very nice addition to the Azure ecosystem. They basically let you write stateful functions and run them serverless. There’s as usual a whole plethora of patterns you can apply with them, like Function Chaining.

Durable Functions currently come in four different types: Activity, Orchestrator, Entity, and Client. Author has done a bit of work with all of them and this tutorial he is going to talk a bit about Entity Functions.

It is also very important to note that Entity Functions focus on reliability more than performance, by using reliable queues to handle messaging.

Entity Functions are basically another form of the Actor Model and share a lot of similarities with Project Orleans, although with some interesting differences.

To showcase how they work, author prepared a super-duper example, WhoIsTheStrongest 😀 It’s a distribute voting platform, aimed to decide who’s the strongest Avenger! The code is available on GitHub, feel free to wander around. The UI is written in Blazor. Nice read!

[Read More]

Tags serverless cloud azure machine-learning