Ce diaporama a bien été signalé.
Nous utilisons votre profil LinkedIn et vos données d’activité pour vous proposer des publicités personnalisées et pertinentes. Vous pouvez changer vos préférences de publicités à tout moment.
riff is for functions
Mark Fisher
@projectriff
Buildpacks assemble Function Containers
● developers implement only
business logic in a Function
● the Buildpack-provided
...
Functions can handle HTTP Requests
● configuration is mutable, each
update creates an immutable
revision
● a route enables ...
Functions can process Streams of events
● provides loose coupling
between producers and
consumers
● enables a variety of
i...
Buildpacks can assemble Applications too
● developers implement an
application that handles
HTTP requests explicitly
● can...
Application
Function
Build
Handler
Processor
Stream
Configuration
Revision
Deployment
ReplicaSet
Pod
Route
Service
BuildTe...
Prochain SlideShare
Chargement dans…5
×

Riff is for Functions - Mark Fisher

346 vues

Publié le

Riff is for Functions by Mark Fisher at SpringOne Tour 2019

Publié dans : Logiciels
  • Soyez le premier à commenter

  • Soyez le premier à aimer ceci

Riff is for Functions - Mark Fisher

  1. 1. riff is for functions Mark Fisher @projectriff
  2. 2. Buildpacks assemble Function Containers ● developers implement only business logic in a Function ● the Buildpack-provided Invoker calls the developer-provided Function ● dependency and base image layers can be updated independently Source Code Function Layer Invoker Layer Dependency Layers Base Image Function Container $ riff function create myfunc --git-repo <url> --artifact myfunc.jsFunction
  3. 3. Functions can handle HTTP Requests ● configuration is mutable, each update creates an immutable revision ● a route enables traffic policies across revisions ● autoscaler monitors request metrics and scales the Function 0-N ● when scaled to 0 the route is redirected to an activator RouteIngress Autoscaler RevisionConfiguration Knative/Istio Handler $ riff handler create myfunc --function-ref myfunc
  4. 4. Functions can process Streams of events ● provides loose coupling between producers and consumers ● enables a variety of interaction patterns beyond request/reply ● promotes a reactive rather than imperative model ● will support correlated stores for stateful processing Messaging Service Stream FC Stream Processor $ riff stream create in --provider kafka $ riff stream create out --provider kafka $ riff processor create myfunc --function-ref myfunc --input in --output out Processor
  5. 5. Buildpacks can assemble Applications too ● developers implement an application that handles HTTP requests explicitly ● can still be deployed with a Handler resource but not with a Processor resource ● dependency and base image layers can still be updated independently Source Code Application Layer Dependency Layers Base Image Application Container $ riff application create petclinic --git-repo https://github.com/spring-projects/spring-petclinicApplication $ riff handler create petclinic --application-ref petclinic
  6. 6. Application Function Build Handler Processor Stream Configuration Revision Deployment ReplicaSet Pod Route Service BuildTemplate Knative Build Knative Serving Kubernetes riff build.projectriff.io request.projectriff.io stream.projectriff.io ControllersCRDs CRDs CRDs

×