This talk introduced both OpenFaaS & OpenFaaS Cloud before demonstrating the Kafka Connector. Based on the Connector SDK, the Kafka Connector enables Kubernetes based functions to be triggered using messages consumed from Kafka topics. The connector easily integrates with your existing Kafka installations enabling you to flexibly complement your existing systems' functionality with serverless functions.
12. OpenFaaS: Functions as a Service
• Started in Nov 2016
• Containers, Alexa, Swarm
• CNCF landscape
13. OpenFaaS: Functions as a Service
• Started in Nov 2016
• Containers, Alexa, Swarm
• CNCF landscape
14. OpenFaaS: Functions as a Service
• Started in Nov 2016
• Containers, Alexa, Swarm
• CNCF landscape
• Multiple Production users
15. OpenFaaS: Functions as a Service
• Started in Nov 2016
• Containers, Alexa, Swarm
• CNCF landscape
• Multiple Production users
• 2 InfoWorld Bossies##
16. OpenFaaS: Functions as a Service
• Started in Nov 2016
• Containers, Alexa, Swarm
• CNCF landscape
• Multiple Production users
• 2 InfoWorld Bossies##
• Ecosystem Partners
18. Growth of OpenFaaS 17k
Developer-
First
Operator-
Friendly
Community-
Centric
DRIVEN BY CORE VALUES
19. OpenFaaS: Serverless on your terms
Anywhere
Avoid lock-in through
the use of Docker.
Run on any public or
private cloud.
20. OpenFaaS: Serverless on your terms
Anywhere
Avoid lock-in through
the use of Docker.
Run on any public or
private cloud.
Any scale
Auto-scale with
demand and to
zero when idle.
21. OpenFaaS: Serverless on your terms
You decide the limits
Anywhere
Avoid lock-in through
the use of Docker.
Run on any public or
private cloud.
Any code
Build microservices
& functions in any
language. Legacy
code and binaries.
Any scale
Auto-scale with
demand and to
zero when idle.
29. Demo - What we saw
• Created a new PHP7 function
• faas up to Build, Push & Deploy locally
• Added a second function
• Portability - Deploying remotely
• Using the Function Store
• Function Auto-scaling
31. Case Study 1: Bullet-proof
Bulletproof are using OpenFaaS to
build an on demand and scalable
Vulnerability Scanning (VA) engine.
Using OpenFaaS allows us to use
compute resource efficiently yet
maintain the ability to grow to meet
customer scanning demands.
We also like the ability to use pure
docker containers to compose
multiple scanning tools with different
technologies into a single, coherent
interface. This has reduced the time
need to add new tools to the platform.
Case-study 1: BT Research, UK
• Production usage
• Heavily reliant
• Research platform &
internal tools
• Shrink-wrap into
products
• KPIs
Case Study 1:Case Study 1: BT Research, UK
32. Case Study 2: Vision Banco, Paraguay
- Digital Transformation
- OpenFaaS in production with
HomeServe
- Initial deployment with Swarm
- KubeCon talk @ Seattle
- Completely on-prem with
GitLab
33. Case Study 3: Parking Application
Swarm
OpenFaaS
Scheduler
Routing / TLS
FrontEnd
External State
Fully Immutable
Flexible / Extensible
Portable
CI/CD with GitLab
Fn Fn Fn Fn Fn Fn
Fn Fn Fn Fn Fn Fn
34.
35. OpenFaaS Cloud
Focus on shipping functions without worrying
about the CI/CD pipeline or underlying
infrastructure
36. OpenFaaS Cloud is OpenFaaS, with
• Multi-user
• Personal dashboard & HTTPS
• CI/CD built-in (GitOps)
• Feedback via GitHub
• Free Community Cluster
• Self Hosted
45. 13
● Communication
asynchronous
● Applications fully
decoupled
● No restriction on
schema, no shared
datastore
● Microservices
independent,
increased
resiliency
● Microservices state
still important,
persistent
ORDERING
INVOICING WAREHOUSE SHIPPING
LOGGING
MESSAGE QUEUE
Order
Placed
Order
Placed
Invoice
Generated
Order
Placed
Item
Found
Item
Found
Item
Shipped
Order
Placed
Item
Shipped
All
Events
Invoice
Generated
Mike Bywater - https://bit.ly/2K9XBTP
46. Kafka Connector
• Connector SDK
• Helm Chart
• Integrate with existing instances
• Function Annotations
• Consumer of multiple topics
47. Kafka Connector
Incoming
message
Topic: signup
msg:
{"userid":1013}
Lookup Functions
Use /system/functions
to BuildFunctionMap()
Invoke:
/function/email-welcome
with:
{"userid":1013}
Kafka Connector
Topic Function
payment billing-audit
signup email-welcome
... ...
Builds
API Gateway
Function: billing-audit
Annotations:
topic: payment
Function: email-welcome
Annotations:
topic: signup
Function Map
54. Demo - What we saw
• OpenFaaS on Digital Ocean DOKS
• Kafka Connector & Annotated Functions
• Multiple Topics -> Function -> DB
• Voice Service
• Alexa Skill
• OpenFaaS Cloud Function
55. Wrapping Up
OpenFaaS:
Serverless Functions Made Simple
OpenFaaS Cloud:
Further reduce friction
Kafka Connector:
Connect Kafka topics to OpenFaaS Functions
Integrate your existing tools & applications
58. Support OpenFaaS
Sponsor the project:
https://www.openfaas.com/donate/
Donate using Open Collective:
https://opencollective.com/openfaas
Donate using LF Community Bridge:
https://bit.ly/2V8jasf