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

Constructing the payload

As discussed in the preceding section, the text sentiment analytics API expects the payload to be broken down into a potentially large number of relatively small "documents". When working with short snippets of text, such as tweets or SMS messages, the entire message can be submitted for scoring as a single document. As we move to work with larger texts, the text needs to be split up to avoid reaching the 10 KB limit of a single document. As we move to work with even larger texts, the total input limit of 1 MB per API call also needs to be taken into consideration.

In our implementation of constructing the payload, we will implement a one-size-fits-all approach, which will allow us to process text of any size.

We ...

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