SlideShare ist ein Scribd-Unternehmen logo
1 von 43
Downloaden Sie, um offline zu lesen
blog.oio.de@ThorstenMaier
Serverless - Ist das was für mich?
Thorsten Maier
Thorsten
• Mannheim - OIO ist die Drehscheibe der Trivadis-
Gruppe für Softwareentwicklung mit Java und JavaScript.
• Ehemann, Vater und Hausumbauer
• Faustballer
• Smart Home Begeisterter
@ThorstenMaier blog.oio.de
Serverless?
wir brauchen weiterhin Server!
Was ist Serverless?
≅
Function as a Service (FaaS)
Function
Eingabe Ausgabe
add
a = 4, b = 3 7
add
a = 4, b = 3 7
automatische
Skalierung
Kurzlebig Zustandslos
„Durable Functions“ in Azure
Warum Serverless?
Elastisch Pay per useSLAs24/7Managed
Microsoft Azure Functions
Microsoft Azure Functions - Kosten
~580 Tage CPU-Zeit
Serverless?
für welche Anwendungen?
Serverless
eignet sich am besten für
Event-Verarbeitung
Text → MP3
Quelle: https://aws.amazon.com/de/polly/
Warenkorb
article price
TV A 799 €
TV B 749 €
ARTICLES
customer articles
4711 TV B, …
CARTS
Warenkorb
article price
TV A 799 €
ARTICLES
customer articles
CARTS
EVENTS
event payload
ADD ARTICLE TV A; 799 €
Warenkorb
article price
TV A 799 €
TV B 829 €
ARTICLES
customer articles
CARTS
EVENTS
event payload
ADD ARTICLE TV A; 799 €
ADD ARTICLE TV B; 829 €
Warenkorb
article price
TV A 799 €
TV B 829 €
ARTICLES
customer articles
4711 TV A, …
CARTS
EVENTS
event payload
ADD ARTICLE TV A; 799 €
ADD ARTICLE TV B; 829 €
ADD CART 4711; TV A
Warenkorb
article price
TV A 799 €
TV B 749 €
ARTICLES
customer articles
4711 TV A, …
CARTS
EVENTS
event payload
ADD ARTICLE TV A; 799 €
ADD ARTICLE TV B; 829 €
ADD CART 4711; TV A
CHANGE ARTICLE TV B; 749 €
Warenkorb
article price
TV A 799 €
TV B 749 €
ARTICLES
customer articles
4711 TV A,
TV B
CARTS
EVENTS
event payload
ADD ARTICLE TV A; 799 €
ADD ARTICLE TV B; 829 €
ADD CART 4711; TV A
CHANGE ARTICLE TV B; 749 €
ADD CART 4711; TV B
Warenkorb
article price
TV A 799 €
TV B 749 €
ARTICLES
customer articles
4711 -
TV B
CARTS
EVENTS
event payload
ADD ARTICLE TV A; 799 €
ADD ARTICLE TV B; 829 €
ADD CART 4711; TV A
CHANGE ARTICLE TV B; 749 €
ADD CART 4711; TV B
REMOVE CART 4711; TV A
Event Sourcing
article price
TV A 799 €
TV B 749 €
ARTICLES
customer articles
4711 -
TV B
CARTS
EVENTS
event payload
ADD ARTICLE TV A; 799 €
ADD ARTICLE TV B; 829 €
ADD CART 4711; TV A
CHANGE ARTICLE TV B; 749 €
ADD CART 4711; TV B
REMOVE CART 4711; TV A
Datenbank
Beim Bedarf „berechnen“
Event Sourcing
EVENTS
event payload
ADD ARTICLE TV A; 799 €
ADD ARTICLE TV B; 829 €
ADD CART 4711; TV A
Preis TV B
reduzieren?
„Ich bin Entwickler“
npm install –g func
func init
func new
func start
func azure functionapp publish
tvdCalc
Serverless – Azure Functions CLI
Function App erstellen
Function erstellen
Lokal starten
Install CLI
Deploy to Azure
Serverless – JavaScript Beispiel
• Function
module.exports = async function (context, req) {
context.res = {
body: (parseInt(req.query.a) + parseInt(req.query.b))
};
};
• Konfiguration
{
"bindings": [
{
"authLevel": "function",
"type": "httpTrigger",
"direction": "in",
"name": "req",
"methods": [
"get"
]
},
{
"type": "http",
"direction": "out",
"name": "res"
}
]
}
Herausforderungen
KostenCold start
latency
Kontrolle Umdenken
(Events, …)
256 MB RAM
>1s Start-Up Zeit
GC zur Laufzeit
Ressourcen zur Laufzeit
JIT
Reflection
WANN?
Cloud Anbieter
Wer nutzt Serverless?
OIOGewinnspielIntent dass ich etwas gewinnen möchte
OIOGewinnspielIntent dass ich am Gewinnspiel teilnehmen möchte
OIOGewinnspielIntent ich möchte am Gewinnspiel teilnehmen
OIOGewinnspielIntent ich möchte etwas gewinnen
OIOGewinnspielIntent dass ich etwas gewinnen will
OIOGewinnspielIntent dass ich am Gewinnspiel teilnehmen will
OIOGewinnspielIntent ich will am Gewinnspiel teilnehmen
OIOGewinnspielIntent ich will etwas gewinnen
OIOGewinnspielIntent ob ich etwas gewinnen kann
OIOGewinnspielIntent ob ich am Gewinnspiel teilnehmen darf
OIOGewinnspielIntent was es zu gewinnen gibt
OIOGewinnspielIntent was ich gewinnen kann
Netflix
Publishers upload thousands of files […] and
every bit of those files need to be encoded and sorted
before they end up being streamed to the user.
Once the files get uploaded to S3,
Amazon triggers an event calling an AWS Lambda
function that splits the video into 5-minute chunks
that get encoded into 60 different parallel streams that Netflix needs.
Coca Cola
“Coca-cola went from $13.000 per year to $4.500
per year after switching to serverless”
Das Kleingedruckte:
”the break-even point, where having infrastructure as a service would even begin to make sense
would be around 80 million calls per month. That’s 3 times what they were expecting to get at the time.”
Netflix
OFFENE
FRAGEN
IDE?
Debugging?
Versionierung?
Migration?
Plattformunabhängig?
Der neue Hype? Sicher!
Qualitätssicherung?
Tests?
Versionsverwaltung?
Kostenoptimierung?
Die Zukunft?
Sprache?
Wartbar?
Session Feedback – now
• Please use the Trivadis Events mobile app to give feedback on each session
• Use "My schedule" if you have registered for a session
• Otherwise use "Agenda" and the search function
• If the mobile app does not work (or if you have a Windows smartphone /
Desktop), use your smartphone browser
• URL: http://trivadis.quickmobileplatform.eu/
• User name: <your_loginname> (such as “svv”)
• Password: sent by e-mail...

Weitere ähnliche Inhalte

Ähnlich wie TechEvent 2019: Serverless - Ist das was für mich?; Thorsten Maier - Trivadis

From Zero to still Zero: Die schönsten Fehler auf dem Weg in die Cloud
From Zero to still Zero: Die schönsten Fehler auf dem Weg in die CloudFrom Zero to still Zero: Die schönsten Fehler auf dem Weg in die Cloud
From Zero to still Zero: Die schönsten Fehler auf dem Weg in die CloudOPEN KNOWLEDGE GmbH
 
Eine Referenzarchitektur für das Digitale Produkt
Eine Referenzarchitektur für das Digitale ProduktEine Referenzarchitektur für das Digitale Produkt
Eine Referenzarchitektur für das Digitale ProduktIntelliact AG
 
Intelligent Edge - breaking the storage hype (Michael Beeck, mibeeck GmbH)
Intelligent Edge - breaking the storage hype (Michael Beeck, mibeeck GmbH)Intelligent Edge - breaking the storage hype (Michael Beeck, mibeeck GmbH)
Intelligent Edge - breaking the storage hype (Michael Beeck, mibeeck GmbH)data://disrupted®
 
Mehrserver Lösungen
Mehrserver LösungenMehrserver Lösungen
Mehrserver LösungenAvarteq
 
Tochtergesellschaften in die Konzern ERP-Welt integrieren
Tochtergesellschaften in die Konzern ERP-Welt integrierenTochtergesellschaften in die Konzern ERP-Welt integrieren
Tochtergesellschaften in die Konzern ERP-Welt integrierenall4cloud GmbH & Co. KG
 
Von „less Server“ bis „Serverless“: Wie viel Cloud soll es sein?
Von „less Server“ bis „Serverless“: Wie viel Cloud soll es sein?Von „less Server“ bis „Serverless“: Wie viel Cloud soll es sein?
Von „less Server“ bis „Serverless“: Wie viel Cloud soll es sein?OPEN KNOWLEDGE GmbH
 
Auf geht‘s in die Cloud: „Das kann doch nicht so schwer sein!“
Auf geht‘s in die Cloud: „Das kann doch nicht so schwer sein!“Auf geht‘s in die Cloud: „Das kann doch nicht so schwer sein!“
Auf geht‘s in die Cloud: „Das kann doch nicht so schwer sein!“OPEN KNOWLEDGE GmbH
 
Digitalisierung mit Skype for Business
Digitalisierung mit Skype for Business Digitalisierung mit Skype for Business
Digitalisierung mit Skype for Business A. Baggenstos & Co. AG
 
Wird das Datacenter künstlich-intelligent?
Wird das Datacenter künstlich-intelligent?Wird das Datacenter künstlich-intelligent?
Wird das Datacenter künstlich-intelligent?Jesus Villar-Rodriguez
 
Webcast: SAP on Azure für den Mittelstand - Erfolgsfaktor Integration
Webcast: SAP on Azure für den Mittelstand - Erfolgsfaktor IntegrationWebcast: SAP on Azure für den Mittelstand - Erfolgsfaktor Integration
Webcast: SAP on Azure für den Mittelstand - Erfolgsfaktor IntegrationQUIBIQ Hamburg
 
Webinar Virtuelle Arbeiten mit Microsoft Technologien
Webinar Virtuelle Arbeiten mit Microsoft TechnologienWebinar Virtuelle Arbeiten mit Microsoft Technologien
Webinar Virtuelle Arbeiten mit Microsoft TechnologienJenniferMete1
 
Auf gehts in die Cloud: „Das kann doch nicht so schwer sein!“
Auf gehts in die Cloud: „Das kann doch nicht so schwer sein!“Auf gehts in die Cloud: „Das kann doch nicht so schwer sein!“
Auf gehts in die Cloud: „Das kann doch nicht so schwer sein!“OPEN KNOWLEDGE GmbH
 
Elastic Compute Cloud: Darf es noch ein Server mehr sein?
Elastic Compute Cloud: Darf es noch ein Server mehr sein?Elastic Compute Cloud: Darf es noch ein Server mehr sein?
Elastic Compute Cloud: Darf es noch ein Server mehr sein?Lothar Wieske
 
Mit Prozessautomatisierung und Co-Creation zur Digitalisierung der Öffentlich...
Mit Prozessautomatisierung und Co-Creation zur Digitalisierung der Öffentlich...Mit Prozessautomatisierung und Co-Creation zur Digitalisierung der Öffentlich...
Mit Prozessautomatisierung und Co-Creation zur Digitalisierung der Öffentlich...Dominik Horn
 
IPC 2017 - Alexa Skills für Amazon Echo mit PHP entwickeln
IPC 2017 - Alexa Skills für Amazon Echo mit PHP entwickelnIPC 2017 - Alexa Skills für Amazon Echo mit PHP entwickeln
IPC 2017 - Alexa Skills für Amazon Echo mit PHP entwickelnRalf Eggert
 
Frank Schlotter, Mag. Christoph Domanig (Active Business Consult – Cenit)
Frank Schlotter, Mag. Christoph Domanig (Active Business Consult – Cenit)Frank Schlotter, Mag. Christoph Domanig (Active Business Consult – Cenit)
Frank Schlotter, Mag. Christoph Domanig (Active Business Consult – Cenit)Praxistage
 
Wie kommt die Milch eigentlich in die Buchhaltung? Reisekostenabrechnung am S...
Wie kommt die Milch eigentlich in die Buchhaltung? Reisekostenabrechnung am S...Wie kommt die Milch eigentlich in die Buchhaltung? Reisekostenabrechnung am S...
Wie kommt die Milch eigentlich in die Buchhaltung? Reisekostenabrechnung am S...Christian Kiesewetter
 

Ähnlich wie TechEvent 2019: Serverless - Ist das was für mich?; Thorsten Maier - Trivadis (20)

From Zero to still Zero: Die schönsten Fehler auf dem Weg in die Cloud
From Zero to still Zero: Die schönsten Fehler auf dem Weg in die CloudFrom Zero to still Zero: Die schönsten Fehler auf dem Weg in die Cloud
From Zero to still Zero: Die schönsten Fehler auf dem Weg in die Cloud
 
Eine Referenzarchitektur für das Digitale Produkt
Eine Referenzarchitektur für das Digitale ProduktEine Referenzarchitektur für das Digitale Produkt
Eine Referenzarchitektur für das Digitale Produkt
 
Intelligent Edge - breaking the storage hype (Michael Beeck, mibeeck GmbH)
Intelligent Edge - breaking the storage hype (Michael Beeck, mibeeck GmbH)Intelligent Edge - breaking the storage hype (Michael Beeck, mibeeck GmbH)
Intelligent Edge - breaking the storage hype (Michael Beeck, mibeeck GmbH)
 
Mehrserver Lösungen
Mehrserver LösungenMehrserver Lösungen
Mehrserver Lösungen
 
Tochtergesellschaften in die Konzern ERP-Welt integrieren
Tochtergesellschaften in die Konzern ERP-Welt integrierenTochtergesellschaften in die Konzern ERP-Welt integrieren
Tochtergesellschaften in die Konzern ERP-Welt integrieren
 
Von „less Server“ bis „Serverless“: Wie viel Cloud soll es sein?
Von „less Server“ bis „Serverless“: Wie viel Cloud soll es sein?Von „less Server“ bis „Serverless“: Wie viel Cloud soll es sein?
Von „less Server“ bis „Serverless“: Wie viel Cloud soll es sein?
 
Auf geht‘s in die Cloud: „Das kann doch nicht so schwer sein!“
Auf geht‘s in die Cloud: „Das kann doch nicht so schwer sein!“Auf geht‘s in die Cloud: „Das kann doch nicht so schwer sein!“
Auf geht‘s in die Cloud: „Das kann doch nicht so schwer sein!“
 
Digitalisierung mit Skype for Business
Digitalisierung mit Skype for Business Digitalisierung mit Skype for Business
Digitalisierung mit Skype for Business
 
Wird das Datacenter künstlich-intelligent?
Wird das Datacenter künstlich-intelligent?Wird das Datacenter künstlich-intelligent?
Wird das Datacenter künstlich-intelligent?
 
Webcast: SAP on Azure für den Mittelstand - Erfolgsfaktor Integration
Webcast: SAP on Azure für den Mittelstand - Erfolgsfaktor IntegrationWebcast: SAP on Azure für den Mittelstand - Erfolgsfaktor Integration
Webcast: SAP on Azure für den Mittelstand - Erfolgsfaktor Integration
 
Webinar Virtuelle Arbeiten mit Microsoft Technologien
Webinar Virtuelle Arbeiten mit Microsoft TechnologienWebinar Virtuelle Arbeiten mit Microsoft Technologien
Webinar Virtuelle Arbeiten mit Microsoft Technologien
 
Auf gehts in die Cloud: „Das kann doch nicht so schwer sein!“
Auf gehts in die Cloud: „Das kann doch nicht so schwer sein!“Auf gehts in die Cloud: „Das kann doch nicht so schwer sein!“
Auf gehts in die Cloud: „Das kann doch nicht so schwer sein!“
 
Elastic Compute Cloud: Darf es noch ein Server mehr sein?
Elastic Compute Cloud: Darf es noch ein Server mehr sein?Elastic Compute Cloud: Darf es noch ein Server mehr sein?
Elastic Compute Cloud: Darf es noch ein Server mehr sein?
 
Continuous Delivery in ADF Projekten
Continuous Delivery in ADF ProjektenContinuous Delivery in ADF Projekten
Continuous Delivery in ADF Projekten
 
Mit Prozessautomatisierung und Co-Creation zur Digitalisierung der Öffentlich...
Mit Prozessautomatisierung und Co-Creation zur Digitalisierung der Öffentlich...Mit Prozessautomatisierung und Co-Creation zur Digitalisierung der Öffentlich...
Mit Prozessautomatisierung und Co-Creation zur Digitalisierung der Öffentlich...
 
IPC 2017 - Alexa Skills für Amazon Echo mit PHP entwickeln
IPC 2017 - Alexa Skills für Amazon Echo mit PHP entwickelnIPC 2017 - Alexa Skills für Amazon Echo mit PHP entwickeln
IPC 2017 - Alexa Skills für Amazon Echo mit PHP entwickeln
 
Serverless Survival Guide
Serverless Survival GuideServerless Survival Guide
Serverless Survival Guide
 
Hands-On Microservices mit Java
Hands-On Microservices mit JavaHands-On Microservices mit Java
Hands-On Microservices mit Java
 
Frank Schlotter, Mag. Christoph Domanig (Active Business Consult – Cenit)
Frank Schlotter, Mag. Christoph Domanig (Active Business Consult – Cenit)Frank Schlotter, Mag. Christoph Domanig (Active Business Consult – Cenit)
Frank Schlotter, Mag. Christoph Domanig (Active Business Consult – Cenit)
 
Wie kommt die Milch eigentlich in die Buchhaltung? Reisekostenabrechnung am S...
Wie kommt die Milch eigentlich in die Buchhaltung? Reisekostenabrechnung am S...Wie kommt die Milch eigentlich in die Buchhaltung? Reisekostenabrechnung am S...
Wie kommt die Milch eigentlich in die Buchhaltung? Reisekostenabrechnung am S...
 

Mehr von Trivadis

Azure Days 2019: Azure Chatbot Development for Airline Irregularities (Remco ...
Azure Days 2019: Azure Chatbot Development for Airline Irregularities (Remco ...Azure Days 2019: Azure Chatbot Development for Airline Irregularities (Remco ...
Azure Days 2019: Azure Chatbot Development for Airline Irregularities (Remco ...Trivadis
 
Azure Days 2019: Trivadis Azure Foundation – Das Fundament für den ... (Nisan...
Azure Days 2019: Trivadis Azure Foundation – Das Fundament für den ... (Nisan...Azure Days 2019: Trivadis Azure Foundation – Das Fundament für den ... (Nisan...
Azure Days 2019: Trivadis Azure Foundation – Das Fundament für den ... (Nisan...Trivadis
 
Azure Days 2019: Business Intelligence auf Azure (Marco Amhof & Yves Mauron)
Azure Days 2019: Business Intelligence auf Azure (Marco Amhof & Yves Mauron)Azure Days 2019: Business Intelligence auf Azure (Marco Amhof & Yves Mauron)
Azure Days 2019: Business Intelligence auf Azure (Marco Amhof & Yves Mauron)Trivadis
 
Azure Days 2019: Master the Move to Azure (Konrad Brunner)
Azure Days 2019: Master the Move to Azure (Konrad Brunner)Azure Days 2019: Master the Move to Azure (Konrad Brunner)
Azure Days 2019: Master the Move to Azure (Konrad Brunner)Trivadis
 
Azure Days 2019: Keynote Azure Switzerland – Status Quo und Ausblick (Primo A...
Azure Days 2019: Keynote Azure Switzerland – Status Quo und Ausblick (Primo A...Azure Days 2019: Keynote Azure Switzerland – Status Quo und Ausblick (Primo A...
Azure Days 2019: Keynote Azure Switzerland – Status Quo und Ausblick (Primo A...Trivadis
 
Azure Days 2019: Grösser und Komplexer ist nicht immer besser (Meinrad Weiss)
Azure Days 2019: Grösser und Komplexer ist nicht immer besser (Meinrad Weiss)Azure Days 2019: Grösser und Komplexer ist nicht immer besser (Meinrad Weiss)
Azure Days 2019: Grösser und Komplexer ist nicht immer besser (Meinrad Weiss)Trivadis
 
Azure Days 2019: Get Connected with Azure API Management (Gerry Keune & Stefa...
Azure Days 2019: Get Connected with Azure API Management (Gerry Keune & Stefa...Azure Days 2019: Get Connected with Azure API Management (Gerry Keune & Stefa...
Azure Days 2019: Get Connected with Azure API Management (Gerry Keune & Stefa...Trivadis
 
Azure Days 2019: Infrastructure as Code auf Azure (Jonas Wanninger & Daniel H...
Azure Days 2019: Infrastructure as Code auf Azure (Jonas Wanninger & Daniel H...Azure Days 2019: Infrastructure as Code auf Azure (Jonas Wanninger & Daniel H...
Azure Days 2019: Infrastructure as Code auf Azure (Jonas Wanninger & Daniel H...Trivadis
 
Azure Days 2019: Wie bringt man eine Data Analytics Plattform in die Cloud? (...
Azure Days 2019: Wie bringt man eine Data Analytics Plattform in die Cloud? (...Azure Days 2019: Wie bringt man eine Data Analytics Plattform in die Cloud? (...
Azure Days 2019: Wie bringt man eine Data Analytics Plattform in die Cloud? (...Trivadis
 
Azure Days 2019: Azure@Helsana: Die Erweiterung von Dynamics CRM mit Azure Po...
Azure Days 2019: Azure@Helsana: Die Erweiterung von Dynamics CRM mit Azure Po...Azure Days 2019: Azure@Helsana: Die Erweiterung von Dynamics CRM mit Azure Po...
Azure Days 2019: Azure@Helsana: Die Erweiterung von Dynamics CRM mit Azure Po...Trivadis
 
TechEvent 2019: Kundenstory - Kein Angebot, kein Auftrag – Wie Du ein individ...
TechEvent 2019: Kundenstory - Kein Angebot, kein Auftrag – Wie Du ein individ...TechEvent 2019: Kundenstory - Kein Angebot, kein Auftrag – Wie Du ein individ...
TechEvent 2019: Kundenstory - Kein Angebot, kein Auftrag – Wie Du ein individ...Trivadis
 
TechEvent 2019: Oracle Database Appliance M/L - Erfahrungen und Erfolgsmethod...
TechEvent 2019: Oracle Database Appliance M/L - Erfahrungen und Erfolgsmethod...TechEvent 2019: Oracle Database Appliance M/L - Erfahrungen und Erfolgsmethod...
TechEvent 2019: Oracle Database Appliance M/L - Erfahrungen und Erfolgsmethod...Trivadis
 
TechEvent 2019: Security 101 für Web Entwickler; Roland Krüger - Trivadis
TechEvent 2019: Security 101 für Web Entwickler; Roland Krüger - TrivadisTechEvent 2019: Security 101 für Web Entwickler; Roland Krüger - Trivadis
TechEvent 2019: Security 101 für Web Entwickler; Roland Krüger - TrivadisTrivadis
 
TechEvent 2019: Trivadis & Swisscom Partner Angebote; Konrad Häfeli, Markus O...
TechEvent 2019: Trivadis & Swisscom Partner Angebote; Konrad Häfeli, Markus O...TechEvent 2019: Trivadis & Swisscom Partner Angebote; Konrad Häfeli, Markus O...
TechEvent 2019: Trivadis & Swisscom Partner Angebote; Konrad Häfeli, Markus O...Trivadis
 
TechEvent 2019: DBaaS from Swisscom Cloud powered by Trivadis; Konrad Häfeli ...
TechEvent 2019: DBaaS from Swisscom Cloud powered by Trivadis; Konrad Häfeli ...TechEvent 2019: DBaaS from Swisscom Cloud powered by Trivadis; Konrad Häfeli ...
TechEvent 2019: DBaaS from Swisscom Cloud powered by Trivadis; Konrad Häfeli ...Trivadis
 
TechEvent 2019: Status of the partnership Trivadis and EDB - Comparing Postgr...
TechEvent 2019: Status of the partnership Trivadis and EDB - Comparing Postgr...TechEvent 2019: Status of the partnership Trivadis and EDB - Comparing Postgr...
TechEvent 2019: Status of the partnership Trivadis and EDB - Comparing Postgr...Trivadis
 
TechEvent 2019: More Agile, More AI, More Cloud! Less Work?!; Oliver Dörr - T...
TechEvent 2019: More Agile, More AI, More Cloud! Less Work?!; Oliver Dörr - T...TechEvent 2019: More Agile, More AI, More Cloud! Less Work?!; Oliver Dörr - T...
TechEvent 2019: More Agile, More AI, More Cloud! Less Work?!; Oliver Dörr - T...Trivadis
 
TechEvent 2019: Kundenstory - Vom Hauptmann zu Köpenick zum Polizisten 2020 -...
TechEvent 2019: Kundenstory - Vom Hauptmann zu Köpenick zum Polizisten 2020 -...TechEvent 2019: Kundenstory - Vom Hauptmann zu Köpenick zum Polizisten 2020 -...
TechEvent 2019: Kundenstory - Vom Hauptmann zu Köpenick zum Polizisten 2020 -...Trivadis
 
TechEvent 2019: Vom Rechenzentrum in die Oracle Cloud - Übertragungsmethoden;...
TechEvent 2019: Vom Rechenzentrum in die Oracle Cloud - Übertragungsmethoden;...TechEvent 2019: Vom Rechenzentrum in die Oracle Cloud - Übertragungsmethoden;...
TechEvent 2019: Vom Rechenzentrum in die Oracle Cloud - Übertragungsmethoden;...Trivadis
 
TechEvent 2019: The sleeping Power of Data; Eberhard Lösch - Trivadis
TechEvent 2019: The sleeping Power of Data; Eberhard Lösch - TrivadisTechEvent 2019: The sleeping Power of Data; Eberhard Lösch - Trivadis
TechEvent 2019: The sleeping Power of Data; Eberhard Lösch - TrivadisTrivadis
 

Mehr von Trivadis (20)

Azure Days 2019: Azure Chatbot Development for Airline Irregularities (Remco ...
Azure Days 2019: Azure Chatbot Development for Airline Irregularities (Remco ...Azure Days 2019: Azure Chatbot Development for Airline Irregularities (Remco ...
Azure Days 2019: Azure Chatbot Development for Airline Irregularities (Remco ...
 
Azure Days 2019: Trivadis Azure Foundation – Das Fundament für den ... (Nisan...
Azure Days 2019: Trivadis Azure Foundation – Das Fundament für den ... (Nisan...Azure Days 2019: Trivadis Azure Foundation – Das Fundament für den ... (Nisan...
Azure Days 2019: Trivadis Azure Foundation – Das Fundament für den ... (Nisan...
 
Azure Days 2019: Business Intelligence auf Azure (Marco Amhof & Yves Mauron)
Azure Days 2019: Business Intelligence auf Azure (Marco Amhof & Yves Mauron)Azure Days 2019: Business Intelligence auf Azure (Marco Amhof & Yves Mauron)
Azure Days 2019: Business Intelligence auf Azure (Marco Amhof & Yves Mauron)
 
Azure Days 2019: Master the Move to Azure (Konrad Brunner)
Azure Days 2019: Master the Move to Azure (Konrad Brunner)Azure Days 2019: Master the Move to Azure (Konrad Brunner)
Azure Days 2019: Master the Move to Azure (Konrad Brunner)
 
Azure Days 2019: Keynote Azure Switzerland – Status Quo und Ausblick (Primo A...
Azure Days 2019: Keynote Azure Switzerland – Status Quo und Ausblick (Primo A...Azure Days 2019: Keynote Azure Switzerland – Status Quo und Ausblick (Primo A...
Azure Days 2019: Keynote Azure Switzerland – Status Quo und Ausblick (Primo A...
 
Azure Days 2019: Grösser und Komplexer ist nicht immer besser (Meinrad Weiss)
Azure Days 2019: Grösser und Komplexer ist nicht immer besser (Meinrad Weiss)Azure Days 2019: Grösser und Komplexer ist nicht immer besser (Meinrad Weiss)
Azure Days 2019: Grösser und Komplexer ist nicht immer besser (Meinrad Weiss)
 
Azure Days 2019: Get Connected with Azure API Management (Gerry Keune & Stefa...
Azure Days 2019: Get Connected with Azure API Management (Gerry Keune & Stefa...Azure Days 2019: Get Connected with Azure API Management (Gerry Keune & Stefa...
Azure Days 2019: Get Connected with Azure API Management (Gerry Keune & Stefa...
 
Azure Days 2019: Infrastructure as Code auf Azure (Jonas Wanninger & Daniel H...
Azure Days 2019: Infrastructure as Code auf Azure (Jonas Wanninger & Daniel H...Azure Days 2019: Infrastructure as Code auf Azure (Jonas Wanninger & Daniel H...
Azure Days 2019: Infrastructure as Code auf Azure (Jonas Wanninger & Daniel H...
 
Azure Days 2019: Wie bringt man eine Data Analytics Plattform in die Cloud? (...
Azure Days 2019: Wie bringt man eine Data Analytics Plattform in die Cloud? (...Azure Days 2019: Wie bringt man eine Data Analytics Plattform in die Cloud? (...
Azure Days 2019: Wie bringt man eine Data Analytics Plattform in die Cloud? (...
 
Azure Days 2019: Azure@Helsana: Die Erweiterung von Dynamics CRM mit Azure Po...
Azure Days 2019: Azure@Helsana: Die Erweiterung von Dynamics CRM mit Azure Po...Azure Days 2019: Azure@Helsana: Die Erweiterung von Dynamics CRM mit Azure Po...
Azure Days 2019: Azure@Helsana: Die Erweiterung von Dynamics CRM mit Azure Po...
 
TechEvent 2019: Kundenstory - Kein Angebot, kein Auftrag – Wie Du ein individ...
TechEvent 2019: Kundenstory - Kein Angebot, kein Auftrag – Wie Du ein individ...TechEvent 2019: Kundenstory - Kein Angebot, kein Auftrag – Wie Du ein individ...
TechEvent 2019: Kundenstory - Kein Angebot, kein Auftrag – Wie Du ein individ...
 
TechEvent 2019: Oracle Database Appliance M/L - Erfahrungen und Erfolgsmethod...
TechEvent 2019: Oracle Database Appliance M/L - Erfahrungen und Erfolgsmethod...TechEvent 2019: Oracle Database Appliance M/L - Erfahrungen und Erfolgsmethod...
TechEvent 2019: Oracle Database Appliance M/L - Erfahrungen und Erfolgsmethod...
 
TechEvent 2019: Security 101 für Web Entwickler; Roland Krüger - Trivadis
TechEvent 2019: Security 101 für Web Entwickler; Roland Krüger - TrivadisTechEvent 2019: Security 101 für Web Entwickler; Roland Krüger - Trivadis
TechEvent 2019: Security 101 für Web Entwickler; Roland Krüger - Trivadis
 
TechEvent 2019: Trivadis & Swisscom Partner Angebote; Konrad Häfeli, Markus O...
TechEvent 2019: Trivadis & Swisscom Partner Angebote; Konrad Häfeli, Markus O...TechEvent 2019: Trivadis & Swisscom Partner Angebote; Konrad Häfeli, Markus O...
TechEvent 2019: Trivadis & Swisscom Partner Angebote; Konrad Häfeli, Markus O...
 
TechEvent 2019: DBaaS from Swisscom Cloud powered by Trivadis; Konrad Häfeli ...
TechEvent 2019: DBaaS from Swisscom Cloud powered by Trivadis; Konrad Häfeli ...TechEvent 2019: DBaaS from Swisscom Cloud powered by Trivadis; Konrad Häfeli ...
TechEvent 2019: DBaaS from Swisscom Cloud powered by Trivadis; Konrad Häfeli ...
 
TechEvent 2019: Status of the partnership Trivadis and EDB - Comparing Postgr...
TechEvent 2019: Status of the partnership Trivadis and EDB - Comparing Postgr...TechEvent 2019: Status of the partnership Trivadis and EDB - Comparing Postgr...
TechEvent 2019: Status of the partnership Trivadis and EDB - Comparing Postgr...
 
TechEvent 2019: More Agile, More AI, More Cloud! Less Work?!; Oliver Dörr - T...
TechEvent 2019: More Agile, More AI, More Cloud! Less Work?!; Oliver Dörr - T...TechEvent 2019: More Agile, More AI, More Cloud! Less Work?!; Oliver Dörr - T...
TechEvent 2019: More Agile, More AI, More Cloud! Less Work?!; Oliver Dörr - T...
 
TechEvent 2019: Kundenstory - Vom Hauptmann zu Köpenick zum Polizisten 2020 -...
TechEvent 2019: Kundenstory - Vom Hauptmann zu Köpenick zum Polizisten 2020 -...TechEvent 2019: Kundenstory - Vom Hauptmann zu Köpenick zum Polizisten 2020 -...
TechEvent 2019: Kundenstory - Vom Hauptmann zu Köpenick zum Polizisten 2020 -...
 
TechEvent 2019: Vom Rechenzentrum in die Oracle Cloud - Übertragungsmethoden;...
TechEvent 2019: Vom Rechenzentrum in die Oracle Cloud - Übertragungsmethoden;...TechEvent 2019: Vom Rechenzentrum in die Oracle Cloud - Übertragungsmethoden;...
TechEvent 2019: Vom Rechenzentrum in die Oracle Cloud - Übertragungsmethoden;...
 
TechEvent 2019: The sleeping Power of Data; Eberhard Lösch - Trivadis
TechEvent 2019: The sleeping Power of Data; Eberhard Lösch - TrivadisTechEvent 2019: The sleeping Power of Data; Eberhard Lösch - Trivadis
TechEvent 2019: The sleeping Power of Data; Eberhard Lösch - Trivadis
 

TechEvent 2019: Serverless - Ist das was für mich?; Thorsten Maier - Trivadis

  • 1. blog.oio.de@ThorstenMaier Serverless - Ist das was für mich? Thorsten Maier
  • 2. Thorsten • Mannheim - OIO ist die Drehscheibe der Trivadis- Gruppe für Softwareentwicklung mit Java und JavaScript. • Ehemann, Vater und Hausumbauer • Faustballer • Smart Home Begeisterter @ThorstenMaier blog.oio.de
  • 4. Was ist Serverless? ≅ Function as a Service (FaaS)
  • 6. add a = 4, b = 3 7
  • 7. add a = 4, b = 3 7
  • 10. Warum Serverless? Elastisch Pay per useSLAs24/7Managed
  • 12. Microsoft Azure Functions - Kosten ~580 Tage CPU-Zeit
  • 14. Serverless eignet sich am besten für Event-Verarbeitung
  • 15. Text → MP3 Quelle: https://aws.amazon.com/de/polly/
  • 16. Warenkorb article price TV A 799 € TV B 749 € ARTICLES customer articles 4711 TV B, … CARTS
  • 17. Warenkorb article price TV A 799 € ARTICLES customer articles CARTS EVENTS event payload ADD ARTICLE TV A; 799 €
  • 18. Warenkorb article price TV A 799 € TV B 829 € ARTICLES customer articles CARTS EVENTS event payload ADD ARTICLE TV A; 799 € ADD ARTICLE TV B; 829 €
  • 19. Warenkorb article price TV A 799 € TV B 829 € ARTICLES customer articles 4711 TV A, … CARTS EVENTS event payload ADD ARTICLE TV A; 799 € ADD ARTICLE TV B; 829 € ADD CART 4711; TV A
  • 20. Warenkorb article price TV A 799 € TV B 749 € ARTICLES customer articles 4711 TV A, … CARTS EVENTS event payload ADD ARTICLE TV A; 799 € ADD ARTICLE TV B; 829 € ADD CART 4711; TV A CHANGE ARTICLE TV B; 749 €
  • 21. Warenkorb article price TV A 799 € TV B 749 € ARTICLES customer articles 4711 TV A, TV B CARTS EVENTS event payload ADD ARTICLE TV A; 799 € ADD ARTICLE TV B; 829 € ADD CART 4711; TV A CHANGE ARTICLE TV B; 749 € ADD CART 4711; TV B
  • 22. Warenkorb article price TV A 799 € TV B 749 € ARTICLES customer articles 4711 - TV B CARTS EVENTS event payload ADD ARTICLE TV A; 799 € ADD ARTICLE TV B; 829 € ADD CART 4711; TV A CHANGE ARTICLE TV B; 749 € ADD CART 4711; TV B REMOVE CART 4711; TV A
  • 23. Event Sourcing article price TV A 799 € TV B 749 € ARTICLES customer articles 4711 - TV B CARTS EVENTS event payload ADD ARTICLE TV A; 799 € ADD ARTICLE TV B; 829 € ADD CART 4711; TV A CHANGE ARTICLE TV B; 749 € ADD CART 4711; TV B REMOVE CART 4711; TV A Datenbank Beim Bedarf „berechnen“
  • 24. Event Sourcing EVENTS event payload ADD ARTICLE TV A; 799 € ADD ARTICLE TV B; 829 € ADD CART 4711; TV A Preis TV B reduzieren?
  • 26. npm install –g func func init func new func start func azure functionapp publish tvdCalc Serverless – Azure Functions CLI Function App erstellen Function erstellen Lokal starten Install CLI Deploy to Azure
  • 27. Serverless – JavaScript Beispiel • Function module.exports = async function (context, req) { context.res = { body: (parseInt(req.query.a) + parseInt(req.query.b)) }; }; • Konfiguration { "bindings": [ { "authLevel": "function", "type": "httpTrigger", "direction": "in", "name": "req", "methods": [ "get" ] }, { "type": "http", "direction": "out", "name": "res" } ] }
  • 28. Herausforderungen KostenCold start latency Kontrolle Umdenken (Events, …) 256 MB RAM >1s Start-Up Zeit GC zur Laufzeit Ressourcen zur Laufzeit JIT Reflection
  • 29. WANN?
  • 32.
  • 33.
  • 34. OIOGewinnspielIntent dass ich etwas gewinnen möchte OIOGewinnspielIntent dass ich am Gewinnspiel teilnehmen möchte OIOGewinnspielIntent ich möchte am Gewinnspiel teilnehmen OIOGewinnspielIntent ich möchte etwas gewinnen OIOGewinnspielIntent dass ich etwas gewinnen will OIOGewinnspielIntent dass ich am Gewinnspiel teilnehmen will OIOGewinnspielIntent ich will am Gewinnspiel teilnehmen OIOGewinnspielIntent ich will etwas gewinnen OIOGewinnspielIntent ob ich etwas gewinnen kann OIOGewinnspielIntent ob ich am Gewinnspiel teilnehmen darf OIOGewinnspielIntent was es zu gewinnen gibt OIOGewinnspielIntent was ich gewinnen kann
  • 35.
  • 36.
  • 37.
  • 38. Netflix Publishers upload thousands of files […] and every bit of those files need to be encoded and sorted before they end up being streamed to the user. Once the files get uploaded to S3, Amazon triggers an event calling an AWS Lambda function that splits the video into 5-minute chunks that get encoded into 60 different parallel streams that Netflix needs.
  • 40. “Coca-cola went from $13.000 per year to $4.500 per year after switching to serverless” Das Kleingedruckte: ”the break-even point, where having infrastructure as a service would even begin to make sense would be around 80 million calls per month. That’s 3 times what they were expecting to get at the time.” Netflix
  • 41. OFFENE FRAGEN IDE? Debugging? Versionierung? Migration? Plattformunabhängig? Der neue Hype? Sicher! Qualitätssicherung? Tests? Versionsverwaltung? Kostenoptimierung? Die Zukunft? Sprache? Wartbar?
  • 42.
  • 43. Session Feedback – now • Please use the Trivadis Events mobile app to give feedback on each session • Use "My schedule" if you have registered for a session • Otherwise use "Agenda" and the search function • If the mobile app does not work (or if you have a Windows smartphone / Desktop), use your smartphone browser • URL: http://trivadis.quickmobileplatform.eu/ • User name: <your_loginname> (such as “svv”) • Password: sent by e-mail...