Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Тема доклада
Тема доклада
Тема доклада
KYIV 2019
Stas Lebedenko
Practical serverless use cases in Azure.
.NET CONFERENCE #...
The ultimate goal is to
minimize the lifetime cost of
the system and to maximize
programmer productivity.
@martinfowler
● Azure Functions
● Azure API Management
● Azure Logic Apps
● Azure SQL Serverless
● Azure Event Grid
● KEDA - Kubernetes-...
Most popular use cases.
Functions cold start
Usage with classic
applications
The catch with legacy
01 | Cannot handle spike loads.
02 | Caching is a must.
03 | Rate limit via API Facades.
04 | Adjust...
Client applications
● Implement retry.
● Track connection issues.
● Handle 50x and 40x.
● Use additional responses
429 - T...
Serverless API facades
Azure Functions Proxy Azure API Management
VS
Serverless Web App
Serverless API
Stateless actors
Event-driven
applications
Durable functions
01 | Based on Durable Task Framework.
02 | Stateful coordination.
03 | Partially in preview.
04 | Orches...
IoT Hub message pipelines
Event processing pipelines
ETL via Fan-in => Fan-out
Big Data pipelines
Durable orchestration
Serverless best
practices and pitfalls
Best practices
01 | Keep function small and stateless.
02 | Control connection limits.
03 | Design for failure and use thr...
Pitfalls
01 | Consumption compute slow
02 | Scale-out have limits.
03 | Bad fit with legacy.
04 | Cold start.
06 | Cloud v...
Know your limits
01 | Functions connections limits.
02 | Processing time limit.
03 | External rate limits.
04 | Scale-out ...
SECURITY ● Function code auth.
● 5 App Service options.
● No custom OIDC option.
● CSP, CORS settings.
● Azure Managed Ide...
Just a few tricks
Premium scaler
Massive scale increase
probability of the
massive failure.
● Consumption plan is cheap
● Billing estimation is
complicated.
● Cheapest possible ETL.
● Long running functions
with po...
Cloud-agnostic
serverless
Any platform, any cloud?
01 | Vendor lock-in problem.
02 | Multicloud is a tech debt.
03 | Consider local run option.
04 |...
Pulumi framework
Serverless framework
Wrap-up
Demo. Your rate prediction.
Ask Zoltar
Keep up with technology
Questions?
Linked IN Twitter
.NET Fest 2019. Stas Lebedenko. Practical serverless use cases in Azure with a trick or two
Upcoming SlideShare
Loading in …5
×

of

.NET Fest 2019. Stas Lebedenko. Practical serverless use cases in Azure with a trick or two Slide 1 .NET Fest 2019. Stas Lebedenko. Practical serverless use cases in Azure with a trick or two Slide 2 .NET Fest 2019. Stas Lebedenko. Practical serverless use cases in Azure with a trick or two Slide 3 .NET Fest 2019. Stas Lebedenko. Practical serverless use cases in Azure with a trick or two Slide 4 .NET Fest 2019. Stas Lebedenko. Practical serverless use cases in Azure with a trick or two Slide 5 .NET Fest 2019. Stas Lebedenko. Practical serverless use cases in Azure with a trick or two Slide 6 .NET Fest 2019. Stas Lebedenko. Practical serverless use cases in Azure with a trick or two Slide 7 .NET Fest 2019. Stas Lebedenko. Practical serverless use cases in Azure with a trick or two Slide 8 .NET Fest 2019. Stas Lebedenko. Practical serverless use cases in Azure with a trick or two Slide 9 .NET Fest 2019. Stas Lebedenko. Practical serverless use cases in Azure with a trick or two Slide 10 .NET Fest 2019. Stas Lebedenko. Practical serverless use cases in Azure with a trick or two Slide 11 .NET Fest 2019. Stas Lebedenko. Practical serverless use cases in Azure with a trick or two Slide 12 .NET Fest 2019. Stas Lebedenko. Practical serverless use cases in Azure with a trick or two Slide 13 .NET Fest 2019. Stas Lebedenko. Practical serverless use cases in Azure with a trick or two Slide 14 .NET Fest 2019. Stas Lebedenko. Practical serverless use cases in Azure with a trick or two Slide 15 .NET Fest 2019. Stas Lebedenko. Practical serverless use cases in Azure with a trick or two Slide 16 .NET Fest 2019. Stas Lebedenko. Practical serverless use cases in Azure with a trick or two Slide 17 .NET Fest 2019. Stas Lebedenko. Practical serverless use cases in Azure with a trick or two Slide 18 .NET Fest 2019. Stas Lebedenko. Practical serverless use cases in Azure with a trick or two Slide 19 .NET Fest 2019. Stas Lebedenko. Practical serverless use cases in Azure with a trick or two Slide 20 .NET Fest 2019. Stas Lebedenko. Practical serverless use cases in Azure with a trick or two Slide 21 .NET Fest 2019. Stas Lebedenko. Practical serverless use cases in Azure with a trick or two Slide 22 .NET Fest 2019. Stas Lebedenko. Practical serverless use cases in Azure with a trick or two Slide 23 .NET Fest 2019. Stas Lebedenko. Practical serverless use cases in Azure with a trick or two Slide 24 .NET Fest 2019. Stas Lebedenko. Practical serverless use cases in Azure with a trick or two Slide 25 .NET Fest 2019. Stas Lebedenko. Practical serverless use cases in Azure with a trick or two Slide 26 .NET Fest 2019. Stas Lebedenko. Practical serverless use cases in Azure with a trick or two Slide 27 .NET Fest 2019. Stas Lebedenko. Practical serverless use cases in Azure with a trick or two Slide 28 .NET Fest 2019. Stas Lebedenko. Practical serverless use cases in Azure with a trick or two Slide 29 .NET Fest 2019. Stas Lebedenko. Practical serverless use cases in Azure with a trick or two Slide 30 .NET Fest 2019. Stas Lebedenko. Practical serverless use cases in Azure with a trick or two Slide 31 .NET Fest 2019. Stas Lebedenko. Practical serverless use cases in Azure with a trick or two Slide 32 .NET Fest 2019. Stas Lebedenko. Practical serverless use cases in Azure with a trick or two Slide 33 .NET Fest 2019. Stas Lebedenko. Practical serverless use cases in Azure with a trick or two Slide 34 .NET Fest 2019. Stas Lebedenko. Practical serverless use cases in Azure with a trick or two Slide 35 .NET Fest 2019. Stas Lebedenko. Practical serverless use cases in Azure with a trick or two Slide 36 .NET Fest 2019. Stas Lebedenko. Practical serverless use cases in Azure with a trick or two Slide 37
Upcoming SlideShare
What to Upload to SlideShare
Next

0 Likes

Share

.NET Fest 2019. Stas Lebedenko. Practical serverless use cases in Azure with a trick or two

Serverless technology is trending, but in-depth details are missing. How does it fit with non-serverless components? What are the practical use cases? Should you fight vendor lock-in? And what about limits and pitfalls with Azure? I will answer those questions, share a few tricks and short demo.
I'll cover serverless usage scenarios with Azure, what problems can be solved, and what is a viable adoption strategy. Then I'm going to talk about technology shortcomings, when to omit it and how to rip all benefits. There are circumstances when a cloud-agnostic approach is beneficial, so I discuss serverless frameworks too and why vendor lock is not that bad. Finally, we'll look at a short demo that illustrates why you have to use specific serverless patterns.

Related Audiobooks

Free with a 30 day trial from Scribd

See all
  • Be the first to like this

.NET Fest 2019. Stas Lebedenko. Practical serverless use cases in Azure with a trick or two

  1. 1. Тема доклада Тема доклада Тема доклада KYIV 2019 Stas Lebedenko Practical serverless use cases in Azure. .NET CONFERENCE #1 IN UKRAINE
  2. 2. The ultimate goal is to minimize the lifetime cost of the system and to maximize programmer productivity. @martinfowler
  3. 3. ● Azure Functions ● Azure API Management ● Azure Logic Apps ● Azure SQL Serverless ● Azure Event Grid ● KEDA - Kubernetes-based event-driven autoscale
  4. 4. Most popular use cases.
  5. 5. Functions cold start
  6. 6. Usage with classic applications
  7. 7. The catch with legacy 01 | Cannot handle spike loads. 02 | Caching is a must. 03 | Rate limit via API Facades. 04 | Adjust outgoing throughput. 05 | Limit scalability. 06 | Tune connection pool of SQL Server.
  8. 8. Client applications ● Implement retry. ● Track connection issues. ● Handle 50x and 40x. ● Use additional responses 429 - Too many requests 420 - Enhance your calm
  9. 9. Serverless API facades Azure Functions Proxy Azure API Management VS
  10. 10. Serverless Web App
  11. 11. Serverless API
  12. 12. Stateless actors
  13. 13. Event-driven applications
  14. 14. Durable functions 01 | Based on Durable Task Framework. 02 | Stateful coordination. 03 | Partially in preview. 04 | Orchestrator function. 05 | Entity function. 06 | Ideal for complex Coordinated pipelines.
  15. 15. IoT Hub message pipelines
  16. 16. Event processing pipelines
  17. 17. ETL via Fan-in => Fan-out
  18. 18. Big Data pipelines
  19. 19. Durable orchestration
  20. 20. Serverless best practices and pitfalls
  21. 21. Best practices 01 | Keep function small and stateless. 02 | Control connection limits. 03 | Design for failure and use throttling. 04 | Avoid long runs and direct chaining. 05 | Use HttpClient via static. 06 | Use scalable storages. 07 | Build communications via queues and hubs.
  22. 22. Pitfalls 01 | Consumption compute slow 02 | Scale-out have limits. 03 | Bad fit with legacy. 04 | Cold start. 06 | Cloud vendor lock-in. 07 | Failure at scale.
  23. 23. Know your limits 01 | Functions connections limits. 02 | Processing time limit. 03 | External rate limits. 04 | Scale-out limit. 05 | ACU per instance limit. 06 | Storage limit.
  24. 24. SECURITY ● Function code auth. ● 5 App Service options. ● No custom OIDC option. ● CSP, CORS settings. ● Azure Managed Identity. ● VNet only in Premium plan.
  25. 25. Just a few tricks Premium scaler
  26. 26. Massive scale increase probability of the massive failure.
  27. 27. ● Consumption plan is cheap ● Billing estimation is complicated. ● Cheapest possible ETL. ● Long running functions with poor design will result in excessive cost. ● Vulnerable for Denial-of- wallet attacks.
  28. 28. Cloud-agnostic serverless
  29. 29. Any platform, any cloud? 01 | Vendor lock-in problem. 02 | Multicloud is a tech debt. 03 | Consider local run option. 04 | Storage is the real problem. 05 | Think in terms of code. 06 | Estimate multi cloud.
  30. 30. Pulumi framework
  31. 31. Serverless framework
  32. 32. Wrap-up
  33. 33. Demo. Your rate prediction.
  34. 34. Ask Zoltar
  35. 35. Keep up with technology
  36. 36. Questions? Linked IN Twitter

Serverless technology is trending, but in-depth details are missing. How does it fit with non-serverless components? What are the practical use cases? Should you fight vendor lock-in? And what about limits and pitfalls with Azure? I will answer those questions, share a few tricks and short demo. I'll cover serverless usage scenarios with Azure, what problems can be solved, and what is a viable adoption strategy. Then I'm going to talk about technology shortcomings, when to omit it and how to rip all benefits. There are circumstances when a cloud-agnostic approach is beneficial, so I discuss serverless frameworks too and why vendor lock is not that bad. Finally, we'll look at a short demo that illustrates why you have to use specific serverless patterns.

Views

Total views

138

On Slideshare

0

From embeds

0

Number of embeds

0

Actions

Downloads

0

Shares

0

Comments

0

Likes

0

×