Kod- och demotung föreläsning.
What is Serverless?
- Abstraction of servers
- event-driven/instant scale
- micro-billing
Run my code, at an running tab cost, event driven.
Monolith ==> N microservices ==> N*M Functions (==> A LOT of moving parts…)
From On-prem servers to serverless
Hardware =:= servers = a lot of management on every level
Virtualization =:= OS = just give me SSH and I’m good to go!
Kubernetes =:= container = just run my container
Serverless platform =:= Function = just take my code
Options
Cook your own
- Apache OpenWhisk
- OpenFaaS
- Fn Project
- Project Riff
- Kubeless
Cloud platforms
- AWS Lambda
- Azure function
- Google Cloud Functions
- IBM Cloud Functions
- Pivotal Function Service (coming soon)
Azure Functions
Demonstration.
Open Source (med ett kommersiellt hostingalternativ)
.NET runtime.
Stöder ett antal språk.
Spring Cloud Function tillåter att man skriver adaptrar för att separera verksamhetslogik från annat, och mappa mot deployade funktioner.
Enterprise Integration Patterns
NM Functions need to communicate in an ordered manner somehow.
Boktips: Enterprise Integration Patterns
Apache Camel.
Demo vanligt förekommande mönster i Camel.
Repetition syntax.
Solutions for Application Integrations
Cloud Integrations Services
Azure Logic Apps, Oracle Integration Cloud, etc
Integration frameworks
Camel, etc
ESB patterns
Camel and Serverless Functions
Integrationsskikt med Camel som klistrer mellan serverlösa funktioner.
Demo!