Share E-Book
Scan to open this page

Scan with your phone to open this page

Author: Vicente Herrera García, John Biggs

Rating No ratings yet

Serverless computing is radically changing the way we build and deploy applications. With cloud providers running servers and managing machine resources, companies now can focus solely on the application’s business logic and functionality. This hands-on book shows experienced programmers how to build and deploy scalable machine learning and deep learning models using serverless architectures with Microsoft Azure. You’ll learn step-by-step how to code machine learning into your projects using Python and pre-trained models that include tools such as image recognition, speech recognition, and classification. You’ll also examine issues around deployment and continuous delivery including scaling, security, and monitoring. This book is divided into four parts: • Cloud-based development: learn the basics of serverless computing with machine learning, functions as a service (FaaS), and the use of APIs • Adding intelligence: create serverless applications using Azure Functions; learn how to use pre-built machine-learning and deep-learning models • Deployment and continuous delivery: get up to speed with Azure Kubernetes Service, as well as Azure Security Center, and Azure Monitoring • Application examples: deliver data at the edge, build conversational interfaces, and use convolutional neural networks for image classification

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

AI guide
# Building Intelligent Cloud Applications: Develop Scalable Models Using Serverless Architectures with Azure ## 【One-Line Pitch】 A practical guide for experienced programmers who want to deploy machine learning and deep learning models using Azure's serverless architecture, covering everything from FaaS fundamentals to production-grade deployment, security, and monitoring—without managing a single server. ## 【Book Arc】 - **Opening (~0%–9%)**: Introduces the core premise—serverless computing lets developers focus on business logic while cloud providers handle infrastructure. Sets up the book's structure: cloud-based development fundamentals, adding intelligence with pre-built models, deployment and continuous delivery, and real-world application examples. - **Early (~9%–25%)**: Explains machine learning and deep learning basics, including the difference between algorithms and training, the value of pre-trained models, and why serverless architectures are ideal for ML workloads. Includes entertaining cautionary tales about ML systems that optimized for the wrong goals. - **Early (~25%–34%)**: Covers the economics and operational advantages of serverless—automatic scaling, pay-per-use pricing, and the ability to chain pre-built models (image recognition, speech-to-text, classification) without deep ML expertise. Contrasts this with traditional server management pain points. - **Middle (~34%–47%)**: Dives into the technical foundations: the shift from monolithic to microservices architectures, the rise of functional programming (from Lambda calculus to modern languages), and how asynchronous programming patterns enable event-driven FaaS design. Includes Python code examples illustrating object-oriented vs. functional approaches. ## 【Key Takeaways】 - **Pre-trained models are the fastest path to ML** (Early): Cloud providers offer ready-made models for image recognition, speech-to-text, and classification that require minimal ML knowledge—you just need to understand what you're trying to infer or detect. - **Serverless means automatic scaling and pay-per-use** (Early): Unlike traditional servers that sit idle and cost money, serverless functions run only when called. The provider handles load balancing, time limits, and downtime—you pay only for actual execution. - **ML models can fail in unexpected ways** (Early): Real-world examples show machines optimizing for the wrong goals (e.g., creatures evolving to eat their offspring for energy). Always validate that your model's objective aligns with your actual business problem. - **Functional programming is the natural fit for FaaS** (Middle): The paradigm's origins in Lambda calculus and its emphasis on stateless functions align perfectly with serverless architectures, where each function is an isolated input/output unit. - **Asynchronous programming is essential for event-driven design** (Middle): Using callback patterns (like JavaScript's `then`/`error` handlers), you can keep your program running while waiting for external API responses—critical for building responsive serverless applications. - **Microservices are functions in disguise** (Middle): Serverless functions work naturally as microservices—each function is essentially a nanoservice that can be independently scaled, monitored, and even monetized. ## 【Reading Tips】 - **Skim the ML theory chapters** (Early): If you're already familiar with machine learning basics, focus on the Azure-specific examples and the serverless advantages rather than the introductory ML content. - **Deep-read the functional programming sections** (Middle): The Python code examples and the discussion of async patterns are foundational for understanding how to structure your serverless functions effectively. - **Pay attention to the "why" behind serverless** (Early): The book makes a strong case for serverless economics—understanding the cost model and scaling advantages will help you make architectural decisions in your own projects. - **Note the Azure-specific tooling** (throughout): While the concepts are universal, the examples focus on Azure services (Functions, Kubernetes Service, Security Center, Monitoring). If you're using another cloud provider, focus on the conceptual patterns rather than the specific service names. - **The excerpts don't cover the later chapters** (deployment, security, monitoring, and application examples): For those topics, you'll need to read the full book—the table of contents shows chapters on Azure Kubernetes Service, authorization levels, API Management, Azure Monitor, and Application Insights. ## 【Coverage Limits】 This guide is based on excerpts covering roughly the first half of the book (through the functional programming and async discussion). The later parts—deployment with Kubernetes, security, monitoring, and the application examples (edge data, conversational interfaces, CNN image classification)—are not covered in the source material. ##
Page 4
the Cloud. . . . . . . . . . . . . . . . . . . . . . . . 3 An Introduction to Machine Learning 3 An Introduction to Deep Learning 7 Neural Networks 7 Difficu...
View in text
Page 17
e very specific, bounded problems. Machine learning lets us train a model to solve something that we initially might not know how to do. We must also remembe...
View in text
Excerpt 3
’s even An Introduction to Serverless Machine Learning | 11 far more granular with their billing and charge you only for the code that you run. In turn, prov...
View in text
Excerpt 4
rk between two machines, and when you want to run code, you need to ask a cloud service provider to spin up an entirely new service. Further, if you build fo...
View in text
Excerpt 5
ribution across any number of Azure regions. API Management Use API Management to publish APIs to external, partner, and employee devel‐ opers, securely and...
View in text
Excerpt 6
the Function App locally using Core Tools via this command: func host start Core Tools starts a local instance of the Azure Functions runtime, with all funct...
View in text
Excerpt 7
rosoft Azure Functions CHAPTER 5 Using Machine Learning and Deep Learning Models In this chapter, we examine the use of machine learning models in the cloud....
View in text
Excerpt 8
her for inference. The following tools support ONNX models: • Microsoft Cognitive Toolkit • MXNet • Caffe2 • PyTorch • Windows Machine Learning Cloud Machine...
View in text
Tags
AI categories
Cloud NativeAIBackend
ISBN: 1492052329
Publisher: O’Reilly Media
Publish Year: 2019
Language: English
Pages: 154
File Format: PDF
File Size: 9.1 MB
Text Preview (First 20 pages)
Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Generating text preview…