Slide 1

Slide 1 text

jgs CSC 309 Software Engineering II Lecture 20: Web Services I Dr. Javier Gonzalez-Sanchez [email protected] www.javiergs.com Building 14 -227

Slide 2

Slide 2 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 2 Java Desktop JRE JVM Java Libraries Your program

Slide 3

Slide 3 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 3 Java Desktop

Slide 4

Slide 4 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 4 GET vs POST

Slide 5

Slide 5 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 5 Container Server Apache Idea: Serverless Application JRE JVM Java Libraries Your program HTTP @WebServlet (”/name")

Slide 6

Slide 6 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 6 We are NOT here

Slide 7

Slide 7 text

jgs What Next?

Slide 8

Slide 8 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 8 Let’s Go To The Cloud (serverless)

Slide 9

Slide 9 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 9 AWS Lambda: It is a cloud service that can run your code on a high-availability computing infrastructure and perform all of the administration of the total resources. At least seven different languages are available. Including Java, of course! Let’s Go To The Cloud

Slide 10

Slide 10 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 10 Lambda Function: A function without a name, i.e., a short block of code that takes in parameters and returns a value Why the name Lambda?

Slide 11

Slide 11 text

jgs Step 01 Tools for Developers

Slide 12

Slide 12 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 12 § Installing the AWS SAM CLI § AWS Serverless Application Model Command Line Interface (AWS SAM CLI) on supported operating systems. § https://docs.aws.amazon.com/serverless-application- model/latest/developerguide/install-sam-cli.html#install-sam-cli-instructions

Slide 13

Slide 13 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 13 Serverless Application Model – Command Line

Slide 14

Slide 14 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 14 Serverless Application Model – Command Line

Slide 15

Slide 15 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 15 Serverless Application Model – Command Line

Slide 16

Slide 16 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 16 Serverless Application Model – Command Line

Slide 17

Slide 17 text

jgs Step 02 Configure your IDE

Slide 18

Slide 18 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 18 Install AWS Tools

Slide 19

Slide 19 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 19 New Project

Slide 20

Slide 20 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 20 Configuration 👈 👈

Slide 21

Slide 21 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 21

Slide 22

Slide 22 text

jgs Javier Gonzalez-Sanchez | CSC 308 | Winter 2023 | 22 (

Slide 23

Slide 23 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 23 Access Keys

Slide 24

Slide 24 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 24 Access Keys

Slide 25

Slide 25 text

jgs Javier Gonzalez-Sanchez | CSC 308 | Winter 2023 | 25 )

Slide 26

Slide 26 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 26

Slide 27

Slide 27 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 27

Slide 28

Slide 28 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 28 Coding Compile and Run

Slide 29

Slide 29 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 29

Slide 30

Slide 30 text

jgs To be Continued…

Slide 31

Slide 31 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 50 Questions

Slide 32

Slide 32 text

jgs

Slide 33

Slide 33 text

jgs CSC 309 Software Engineering II Lab 20: Continue with your Sprint 4 Dr. Javier Gonzalez-Sanchez [email protected] www.javiergs.com Building 14 -227 Office Hours: By appointment

Slide 34

Slide 34 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 53 Let’s Work

Slide 35

Slide 35 text

jgs CSC 309 Software Engineering II Javier Gonzalez-Sanchez, Ph.D. [email protected] Winter 2023 Copyright. These slides can only be used as study material for the class CSC308 at Cal Poly. They cannot be distributed or used for another purpose.