CS5412: LECTURE 4 IMPLEMENTING A SMART FARM
Ken Birman Spring, 2018
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2018SP 1
CS5412: LECTURE 4 Ken Birman IMPLEMENTING A SMART FARM Spring, - - PowerPoint PPT Presentation
CS5412: LECTURE 4 Ken Birman IMPLEMENTING A SMART FARM Spring, 2018 HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2018SP 1 TODAYS LECTURE: HALF RECAP, HALF NEW In most lectures this semester, we just push forward. But the topics from lectures
Ken Birman Spring, 2018
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2018SP 1
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2018SP 2
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2018SP 3
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2018SP 4
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2018SP 5
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2018SP 6
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 7
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 8
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 9
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 10
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 11
A spline uses a model too (a polynomial of some order) With the wrong model you still get something, but it may not be useful
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 12
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 13
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 14
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 15
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 16
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 17
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 18
Still using search plan A Starting to use search plan B
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2018SP 19
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2018SP 20
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2018SP 21
Functions µ-Service
Length of a typical “action” Typically a single “RPC” or some other event from a client
Long-running, could continuously evolve some form of knowledge base using background computation that might be quite slow/costly. Long-term state Lives outside the functions, like in a key-value store Could be in memory, or in local files, or could be in other µ-Services. Resource footprint Long-term state is small, function itself runs in a lightweight container Long-term state might be huge, computation runs on heavier-weight compute nodes dedicated to the role for long periods of time Access to accelerators Probably not. If needed, yes. Cost to own & operate Pay only for cycles you use. Can be very costly, but amortized over many clients.
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2018SP 22
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2018SP 23
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2018SP 24
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2018SP 25
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2018SP 26
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2018SP 27
Azure Function Server Functions: Lightweight, event-triggered programs in containers, “pay for what you use” resource model Message bus or queue µ-Services: some Azure provided, some “new”
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2018SP 28
Cache Layer Back-end Store
Multicasts used for cache invalidations, updates
Load balancer External clients use standard RESTful RPC through a load balancer
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2018SP 29
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2018SP 30
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2018SP 31
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2018SP 32
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2018SP 33
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2018SP 34
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2018SP 35
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2018SP 36
Easy today, doesn’t need machine learning/AI Extremely hard, will depend on machine learning/AI
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2018SP 37
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2018SP 38
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2018SP 39
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2018SP 40
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2018SP 41
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2018SP 42