Deep dive into Serverless By Lino «Jan» Telera
About me…
• Lino «Jan» Telera
• Blogger (http://blog.linoproject.net)
• Ex developer SOA and Frontend
• System administrator, cloud architect, CNA coach, Mentor
• VCP4-5-6 VCP-Cloud VCP-DT vExpert 2015,2016,2017
• VMworld 2016-2017 official blogger
• VMUG.it board member
• TechFieldDay delegate since 2016
• DevOPS enthusiast and VMware «code» member
• Beer lover!
• 100.000 Users and 200 local groups
• 1 local group in Italy: vmugit (http://www.vmug.it)
• In Italy (since 2016) new devops track!
• Italian Events in 2018: To be defined... Stay tuned!
• VMUG is your place! Join and share your experience!
Agenda
• Serverless concepts
• Function as a Service
• First Microservice in Lambda
• An interaction...
• Questions
• Eat, drink, funs
Back to the past brewbox: What is a container
• Isolated instances that include
• Library
• Tools
• Business logic
• Most fashion: Docker
• More and more vendors are «in container» (and sometimes you don’t know!)
• Software as a service
• Platform as a service
• Infrastructure as a service
• Monitoring, backup and orchestrators
• Storage and computing systems (HCI)
• Software defined Network
• The container paradigm:
• Write your code
• Encapsulate in a «box»
• Deploy without Sysadmin
• Scale start/stop/increase and reduce (app scaling)
• Integrate, patch and deliver (Continous integration)
Near containers some worries!
• Scalability: yet I don’t know how is going the future of my application
(A cloud paradigm)
• Security: attack surface increases a lot! How to address potential
issue in containers?
• Monitor (performance and cost): what’s the condition to scale?
Compute cost is under your control?
• What about data resiliency?
Serverless
• is a cloud computing execution model in which the cloud provider
dynamically manages the allocation of machine resources. Pricing is based
on the actual amount of resources consumed by an application, rather
than on pre-purchased units of capacity (Wikipedia)
• is a natural evolution of Platform As a Service and containers technology
that automate the handling and processing respectively data and functions,
“templating” the code and keeping the function/data usage as cost model.
• Architecture advantage:
• Event-Driven
• Micro-managed
• Cost effective
• Auto scaling
Serverless world!
Serverless world
Function as a service
• is a category of cloud computing services that provides a platform
allowing customers to develop, run, and manage application
functionalities without the complexity of building and maintaining the
infrastructure typically associated with developing and launching an
app. Building an application following this model is one way of
achieving a "serverless" architecture, and is typically used when
building microservices applications.
First example with lambda
• An on-premise infrastructure send data to Lambda. Signals are stored into
a S3 bucket.
• Next, data is retrieved by client to check the status
Just a Suggestion: Using APEX with your IDE
• Create profile and IAM access
• apex --profile <profile> init
• apex --profile <profile> deploy
• Write your code!
• apex --profile <profile> invoke <function>
Integrate with S3 with boto
• Create S3 bucket
• Create IAM role for Function
• Create 2 functions (put and get)
• Attach IAM role to Function
Demo1… and questions
What will happen?
Alexa... Ask Linoproject...
• It’s possible to call functions using url or using devices...
• Skill Example: << Alexa ask Lainoproject: give me the status!>>
Demo2… and questions
What will happen?
Serverless on-premise? You can!
• OpenFaaS: https://github.com/openfaas/faas
• OpenFaaS (Functions as a Service) is a framework for building serverless
functions with Docker and Kubernetes which has first class support for
metrics. Any process can be packaged as a function enabling you to consume
a range of web events without repetitive boiler-plate coding.
• Pivotal Containr Service:
• Pivotal and VMware are applying their deep enterprise expertise to launch
PKS™, a commercial release of the open source Kubo technology, to help
Global 2000 companies operationalize Kubernetes
• https://github.com/cloudfoundry-incubator/kubo-deployment
OpenFaaS
• A community project based on Docker!!!!!
• Easy to deploy: https://github.com/openfaas/faas
• Bundled with ui and CLI
Pivotal Container Service
Pivotal Container Service: Kubo + Harbor + NSX (and VMware support)
Summary
• Serverless and Function as a Service
• Easy to code
• Easy to integrate
• Secure in execution
• AWS Lambda essentials
• You could run on-premise with OpenFaaS or PKS
Online resources
• My Blog: http://blog.linoproject.net
• AWS related:
• http://apex.run
• https://github.com/apex/apex
• JeffConf 2017:
• https://milan.jeffconf.com/
• http://blog.linoproject.net/highlights-from-my-first-jeffconf/
• OpenFaaS by Alex Ellis
• https://www.alexellis.io/
• https://www.youtube.com/watch?v=C3agSKv2s_w (Thanks also to TechFieldDay)
• Danilo Poccia Blog
• https://danilop.net/
• Pivotal Container Service:
• https://octo.vmware.com/serverless-faas-cloud-services-vsphere-yes/
• https://www.youtube.com/watch?v=H9HtmHMZEjc
• Pivotal announcement:
• https://content.pivotal.io/announcements/introducing-pivotal-container-service-pks-the-simple-way-to-bring-kubernetes-to-enterprise-customers
• Kubo:
• https://pivotal.io/partners/kubo
• https://github.com/cloudfoundry-incubator/kubo-deployment
Questions
Thanks… and…
Lino Telera
linotelera@gmail.com
http://blog.linoproject.net
@linotelera
Thanks to VMware (VMTN, {code},
BlogBeat, CloudCredibility)
Lino Telera
linotelera@gmail.com
http://blog.linoproject.net
@linotelera
Thanks to Alex Ellis (OpenFaaS)
and Danilo Poccia (AWS Cloud)
Lino Telera
linotelera@gmail.com
http://blog.linoproject.net
@linotelera
Thanks TechFieldDay
Lino Telera
linotelera@gmail.com
http://blog.linoproject.net
@linotelera
Thanks again to Brewbox!!!!!!!
Lino Telera
linotelera@gmail.com
http://blog.linoproject.net
@linotelera

Serverless brewbox

  • 1.
    Deep dive intoServerless By Lino «Jan» Telera
  • 2.
    About me… • Lino«Jan» Telera • Blogger (http://blog.linoproject.net) • Ex developer SOA and Frontend • System administrator, cloud architect, CNA coach, Mentor • VCP4-5-6 VCP-Cloud VCP-DT vExpert 2015,2016,2017 • VMworld 2016-2017 official blogger • VMUG.it board member • TechFieldDay delegate since 2016 • DevOPS enthusiast and VMware «code» member • Beer lover!
  • 3.
    • 100.000 Usersand 200 local groups • 1 local group in Italy: vmugit (http://www.vmug.it) • In Italy (since 2016) new devops track! • Italian Events in 2018: To be defined... Stay tuned! • VMUG is your place! Join and share your experience!
  • 4.
    Agenda • Serverless concepts •Function as a Service • First Microservice in Lambda • An interaction... • Questions • Eat, drink, funs
  • 5.
    Back to thepast brewbox: What is a container • Isolated instances that include • Library • Tools • Business logic • Most fashion: Docker • More and more vendors are «in container» (and sometimes you don’t know!) • Software as a service • Platform as a service • Infrastructure as a service • Monitoring, backup and orchestrators • Storage and computing systems (HCI) • Software defined Network • The container paradigm: • Write your code • Encapsulate in a «box» • Deploy without Sysadmin • Scale start/stop/increase and reduce (app scaling) • Integrate, patch and deliver (Continous integration)
  • 6.
    Near containers someworries! • Scalability: yet I don’t know how is going the future of my application (A cloud paradigm) • Security: attack surface increases a lot! How to address potential issue in containers? • Monitor (performance and cost): what’s the condition to scale? Compute cost is under your control? • What about data resiliency?
  • 7.
    Serverless • is acloud computing execution model in which the cloud provider dynamically manages the allocation of machine resources. Pricing is based on the actual amount of resources consumed by an application, rather than on pre-purchased units of capacity (Wikipedia) • is a natural evolution of Platform As a Service and containers technology that automate the handling and processing respectively data and functions, “templating” the code and keeping the function/data usage as cost model. • Architecture advantage: • Event-Driven • Micro-managed • Cost effective • Auto scaling
  • 8.
  • 9.
  • 10.
    Function as aservice • is a category of cloud computing services that provides a platform allowing customers to develop, run, and manage application functionalities without the complexity of building and maintaining the infrastructure typically associated with developing and launching an app. Building an application following this model is one way of achieving a "serverless" architecture, and is typically used when building microservices applications.
  • 11.
    First example withlambda • An on-premise infrastructure send data to Lambda. Signals are stored into a S3 bucket. • Next, data is retrieved by client to check the status
  • 12.
    Just a Suggestion:Using APEX with your IDE • Create profile and IAM access • apex --profile <profile> init • apex --profile <profile> deploy • Write your code! • apex --profile <profile> invoke <function>
  • 13.
    Integrate with S3with boto • Create S3 bucket • Create IAM role for Function • Create 2 functions (put and get) • Attach IAM role to Function
  • 14.
  • 15.
    Alexa... Ask Linoproject... •It’s possible to call functions using url or using devices... • Skill Example: << Alexa ask Lainoproject: give me the status!>>
  • 16.
  • 17.
    Serverless on-premise? Youcan! • OpenFaaS: https://github.com/openfaas/faas • OpenFaaS (Functions as a Service) is a framework for building serverless functions with Docker and Kubernetes which has first class support for metrics. Any process can be packaged as a function enabling you to consume a range of web events without repetitive boiler-plate coding. • Pivotal Containr Service: • Pivotal and VMware are applying their deep enterprise expertise to launch PKS™, a commercial release of the open source Kubo technology, to help Global 2000 companies operationalize Kubernetes • https://github.com/cloudfoundry-incubator/kubo-deployment
  • 18.
    OpenFaaS • A communityproject based on Docker!!!!! • Easy to deploy: https://github.com/openfaas/faas • Bundled with ui and CLI
  • 19.
    Pivotal Container Service PivotalContainer Service: Kubo + Harbor + NSX (and VMware support)
  • 20.
    Summary • Serverless andFunction as a Service • Easy to code • Easy to integrate • Secure in execution • AWS Lambda essentials • You could run on-premise with OpenFaaS or PKS
  • 21.
    Online resources • MyBlog: http://blog.linoproject.net • AWS related: • http://apex.run • https://github.com/apex/apex • JeffConf 2017: • https://milan.jeffconf.com/ • http://blog.linoproject.net/highlights-from-my-first-jeffconf/ • OpenFaaS by Alex Ellis • https://www.alexellis.io/ • https://www.youtube.com/watch?v=C3agSKv2s_w (Thanks also to TechFieldDay) • Danilo Poccia Blog • https://danilop.net/ • Pivotal Container Service: • https://octo.vmware.com/serverless-faas-cloud-services-vsphere-yes/ • https://www.youtube.com/watch?v=H9HtmHMZEjc • Pivotal announcement: • https://content.pivotal.io/announcements/introducing-pivotal-container-service-pks-the-simple-way-to-bring-kubernetes-to-enterprise-customers • Kubo: • https://pivotal.io/partners/kubo • https://github.com/cloudfoundry-incubator/kubo-deployment
  • 22.
  • 23.
  • 24.
    Thanks to VMware(VMTN, {code}, BlogBeat, CloudCredibility) Lino Telera linotelera@gmail.com http://blog.linoproject.net @linotelera
  • 25.
    Thanks to AlexEllis (OpenFaaS) and Danilo Poccia (AWS Cloud) Lino Telera linotelera@gmail.com http://blog.linoproject.net @linotelera
  • 26.
  • 27.
    Thanks again toBrewbox!!!!!!! Lino Telera linotelera@gmail.com http://blog.linoproject.net @linotelera