Skip to Content
Serverless computing in Azure with .NET
book

Serverless computing in Azure with .NET

by Sasha Rosenbaum
August 2017
Intermediate to advanced
468 pages
12h 5m
English
Packt Publishing
Content preview from Serverless computing in Azure with .NET

Finding an existing entity

To ensure that we are not storing an average score every time the function runs, we need to have a unique identifier for the average. For AverageDocumentScore table, we chose the date as the unique property. Thus, only a single average score will be stored for each day, and this score will be updated if the function re-runs.

To ensure that we are not storing duplicates, we need to find the entity (SQL table row) if it already exists. Loading all the data stored in the AverageDocumentScore table and then searching for existing entities on a particular date can become a very "costly" operation as the table grows. To avoid doing that, we are going to use the query parameter of the ListEntitiesAsync() method, which ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Azure Serverless Computing

Mastering Azure Serverless Computing

Lorenzo Barbieri, Massimo Bonanni
Implementing Azure: Putting Modern DevOps to Use

Implementing Azure: Putting Modern DevOps to Use

Florian Klaffenbach, Oliver Michalski, Markus Klein, Mohamed Wali

Publisher Resources

ISBN: 9781787288393Supplemental Content