VL 10 Flashcards

1
Q

FaaS

A

PaaS
Event driven computer model
Event trigger stateless functions
Short execution time
Payment: per function invocation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Serverless Computing

A

Application worries don’t have to worry about underlying execution infrastructure, most importantly physical or virtual servers
Serverless computing platform may provide :
FaaS
Backend as a Service

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Faas advantages and disadvantages

A

Advantages:
No provisioning of servers
Automatic scaling
Reduction of costs
Underlying servers shared among different function invocation
Disadvantages
Focused on stateless functions
Performance variation due to restart latencies
Not suited for heavy computation workloads
Limited security: shared VMs, no control over network

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Amazon lambda use cases

A

Image or object upload to Amazon S3
Updates to DynamoDB tables
Responding to website clicks
Backend implementation for custom http requests

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Lambda functions

A

Anonymous functions in functional programming

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

AWS Lambda Execution model

A

Synchronous (push): call API
Asynchronous(event)
Stream based

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Event sourse that trigger AWS Lambda

A

Amazon S3, Amazon Alexa, Amazon API Gateway

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Public website URL exposed by Amazon S3

A

{your-bucket-name}.s3-Website.{Region}.amazonaws.com

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

User management

A

Amazon Congnito

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Permission to write log entries to CloudWatch

A

Create Indetiry and Access Management (IAM) role for lambda function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

OpenWisk

A

Open source FaaS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Optimization in openWhisk

A

Warm Containers:
do not delete container’s immediately
Reuse container for subsequent invocation of same function

Pre-warm containers:
Keep a pool of initialized containers with a certain language runtime

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

OpenWhisk function composition

A

Small, simple, stateless functions
Approaches:
Client side: client calls the functions
Server side: new function that calls the elementary function and passes the result (double billing problem)
Event driven composition: fist function triggers the next
DRAWBACK: write special code

Or use
Primitive sequence

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Primitive sequence adv

A

• Requires no change or knowledge of the composed functions
• Requires no change to the client code
• Does not inflate costs
• Build into OpenWhisk runtime

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Serverless Framework

A

Cross-platform deployment and management tool
• Support for major FaaS implementation of cloud providers
• Templates for cloud provider and function language
• Command line tool that works for all cloud providers
Specification of application for deployment
• Functions
• Triggers
• Resources

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

FaaS Providers

A

Cloud:
Google Cloud functions, IBM Cloud Functions

OperSource:
OpenWhisk, OpenFaaS

17
Q

When to use Serverless?

A

• Easily decomposable functions
• Highly-variable demand (fast response time needed)
• No high frequency in triggering
• Overhead of running instances is high (people/mgmt cost)
• Need for tight integration to cloud events

Caution of:
Don’t want to lock in to a cloud
Demand is bit variable