Building Serverless Applications on Knative - Helion
ISBN: 9781098142032
stron: 252, Format: ebook
Data wydania: 2023-11-15
Księgarnia: Helion
Cena książki: 29,90 zł (poprzednio: 230,00 zł)
Oszczędzasz: 87% (-200,10 zł)
Explore the theory and practice of designing and writing serverless applications using examples from the Knative project. With this practical guide, mid-level to senior application developers and team managers will learn when and why to target serverless platforms when developing microservices or applications. Along the way, you'll also discover warning signs that suggest cases when serverless might cause you more trouble than joy.
Drawing on author Evan Anderson's 15 years of experience developing and maintaining applications in the cloud, and more than 6 years of experience with serverless platforms at scale, this book acts as your guide into the high-velocity world of serverless application development. You'll come to appreciate why Knative is the most widely adopted open source serverless platform available.
With this book, you will:
- Learn what serverless is, how it works, and why teams are adopting it
- Understand the benefits of Knative for cloud native development teams
- Learn how to build a serverless application on Knative
- Explore the challenges serverless introduces for debugging and the tools that can help improve it
- Learn why event-driven architecture and serverless compute are complementary but distinct
- Understand when a serverless approach might not be the right system design
Osoby które kupowały "Building Serverless Applications on Knative", wybierały także:
- Cisco CCNA 200-301. Kurs video. Administrowanie bezpieczeństwem sieci. Część 3 665,00 zł, (39,90 zł -94%)
- Cisco CCNA 200-301. Kurs video. Administrowanie urządzeniami Cisco. Część 2 665,00 zł, (39,90 zł -94%)
- Cisco CCNA 200-301. Kurs video. Podstawy sieci komputerowych i konfiguracji. Część 1 665,00 zł, (39,90 zł -94%)
- Impact of P2P and Free Distribution on Book Sales 427,14 zł, (29,90 zł -93%)
- Cisco CCNP Enterprise 350-401 ENCOR. Kurs video. Programowanie i automatyzacja sieci 443,33 zł, (39,90 zł -91%)
Spis treści
Building Serverless Applications on Knative eBook -- spis treści
- Preface
- Who Is This Book For?
- Background
- Containers
- Cloud Providers
- Kubernetes and Cloud Native
- Cloud-Hosted Serverless
- How This Book Is Organized
- Conventions Used in This Book
- Using Code Examples
- OReilly Online Learning
- How to Contact Us
- Acknowledgments
- I. The Theory of Serverless
- 1. What Is Serverless, Anyway?
- Why Is It Called Serverless?
- A Bit of Terminology
- Whats a Unit of Work?
- Connections
- Requests
- Events
- Its Not (Just) About the Scale
- Blue and Green: Rollout, Rollback, and Day-to-Day
- Creature Comforts: Undifferentiated Heavy Lifting
- Creature Comforts: Managing Inputs
- Creature Comforts: Managing Process Lifecycle
- Summary
- 2. Designing from Scratch
- Setup for This Chapter
- A Single-Page App
- Bootstrapping a React App
- A Basic Web UI
- Packaging Our App
- Locally testing our image
- Into the Cloud on Your Laptop!
- Under the Covers: How Requests Are Handled
- Continuing to Build
- Adding an API
- API Gateways and Composing an App
- Splitting an API into Components
- Augmenting a Proxy
- Complementary Services
- Key-Value Storage
- Object Storage
- Timers (Cron)
- Task Queues
- Workflows
- Summary
- 3. Under the Hood: Knative
- Infrastructure Assumptions
- Hardware and Operating System Management
- Scheduling and the Datacenter as a Computer
- Serving
- Control-Plane Concepts
- Life of a Request
- Load balancer and cluster ingress
- Activator
- Queue-proxy
- Autoscaling Control Loop
- Comparison with AWS Lambda
- Eventing
- Control-Plane Concepts
- Delivery Guarantees
- Life of an Event
- Event source
- Broker Ingress
- Broker storage
- Broker Sender
- Event destination
- Ecosystem
- Comparison with Amazon SNS and Other Cloud Providers
- Comparison with RabbitMQ
- Comparison with Apache Kafka
- Eventing Summary
- Functions
- Summary
- Infrastructure Assumptions
- 4. Forces Behind Serverless
- Top Speed: Reducing Drag
- Continuously Delivering Value
- Winning the (Business) Race
- Microbilling
- A Deal with the Cloud
- Clouding on Your Own
- What Happens When Youre Not Running
- The Gravitational Force of Serverless
- Implications for Languages
- Implications for Sandboxing
- Implications for Tooling
- Implications for Security
- Implications for Infrastructure
- Summary
- Top Speed: Reducing Drag
- II. Designing with Serverless
- 5. Extending the Monolith
- The Monolith Next Door
- Microservice Extension Points
- Asynchronous Cleanup and Extension
- Extract, Transform, Load
- The Strangler Fig Pattern
- Experiments
- Dark Launch and Throwaway Work
- A Serverless Monolith?
- Summary
- The Monolith Next Door
- 6. More on Integration: Event-Driven Architecture
- Events and Messages
- Why CloudEvents
- Events as an API
- What Does Event-Driven Mean?
- Event Distribution
- Content-Based Routing Versus Channels
- Internal and External Events
- Building for Extension with Inner Monologue
- Workflow Orchestration
- Long-Lived Workflows, Short-Lived Compute
- Workflow as Declarative Manifests
- Event Broadcast
- Whats So Tricky About Broadcast?
- Broadcast in Fast-Moving Systems
- Task Queues
- Task Queue Features
- Scaling in Time Instead of Instances
- Summary
- Events and Messages
- 7. Developing a Robust Inner Monologue
- Ambient Event Publishing
- The Active Storage Pattern
- Is Your Database Your Monologue?
- Scenarios for Inner Monologues
- Key Events
- Workflows
- Inner Monologues Versus RPCs
- Sensitive Data and Claim Checks
- How to Use an Inner Monologue
- Extending the Monolith: Workflow Decoration
- Item added to cart
- User login
- Shipping
- Scatter-Gather Advice
- Account Hijacking Detection
- Versioned Events, Unversioned Code
- Extending the Monolith: Workflow Decoration
- Clouds Have Monologues Too
- Kubernetes: Only a Monologue
- Audit Log or Mono-Log?
- Summary
- Ambient Event Publishing
- 8. Too Much of a Good Thing Is Not a Good Thing
- Different Types of Work in the Same Instance
- Work Units That Dont Signal Termination
- Protocol Mismatch
- Inelastic Scaling
- Instance Addressability and Sharding
- Summary
- III. Living with Serverless
- 9. Failing at the Speed of Light
- Meltdown
- Narrowest Bottleneck
- Feedback Loop
- Cold Start, Extra Slow
- The Race to Ready
- Avoiding Cold Starts
- Forecasting Is Hard
- Loopback
- Hotspots Dont Scale
- Graphs and Focal Points
- Data Size
- Locking
- Exactly Once Is Hard
- Summary
- Meltdown
- 10. Cracking the Case: Whodunnit
- Log Aggregation
- Tracing
- Metrics
- Live Tracing and Profiling
- APM Agents
- Summary
- IV. A Brief History of Serverless
- 11. A Brief History of Serverless
- 35 Years of Serverless
- inetd
- CGI
- Stored Procedures
- Heroku
- Google App Engine
- Cloud Foundry
- AWS Lambda
- Azure and Durable Functions
- Knative and Cloud Run
- Cloudflare Workers and Netlify Edge Functions
- Where to Next?
- AI
- Distributed and the Edge
- Beyond Stateless
- Summary
- 35 Years of Serverless
- Index