Building Serverless Enterprise Applications Using AWS Managed Services

undefined
 
B
u
i
l
d
i
n
g
 
S
e
r
v
e
r
l
e
s
s
E
n
t
e
r
p
r
i
s
e
A
p
p
l
i
c
a
t
i
o
n
s
 
Using AWS managed services to
build web apps
 
A
g
e
n
d
a
 
Justification
Application requirements
AWS serverless architecture
Frameworks and tooling
Gotchas
Questions
 
 
W
h
a
t
s
 
t
h
e
 
b
u
s
i
n
e
s
s
 
c
a
s
e
?
 
Know why you are building in the cloud
before you start
Hint: It’s probably not to save money
Some ideas
Improve responsiveness to customer needs
Centralize and automate resource management
Document and version environment
Support cyclic or shifting usage patterns (match
supply with demand)
Develop skillsets
 
A
W
S
 
A
p
p
l
i
c
a
t
i
o
n
 
M
o
d
e
l
s
 
Lift-and-shift
Take existing virtual machines and move them to
cloud-hosted EC2 instances (rehost)
Quickest and cheapest, but fewest cloud
advantages
Rearchitect
Rebuild application from the ground up using
managed services
Most time consuming and expensive, but most
cloud advantages
 
R
e
q
u
i
r
e
m
e
n
t
s
 
Basic CRUD operations
Create, read, update, delete
Multi-user
Scalable
Secure (authentication and authorization)
Use managed resources
Align with AWS best practices
 
A
n
n
u
a
l
 
E
q
u
i
p
m
e
n
t
 
R
e
q
u
e
s
t
 
A
p
p
 
Used to manage the Library’s annual
purchase and prioritization cycle
20 users with varied roles and permissions
Create, list, update, delete records
Old, ready for rework
Big enough to be non trivial, small enough
that we had a chance of success
Built with PHP (Laravel), jQuery, SQL Server
 
A
W
S
 
A
r
c
h
i
t
e
c
t
u
r
e
 
A
W
S
 
A
r
c
h
i
t
e
c
t
u
r
e
 
 
S
3
 
Cloud document storage
Hosts static web resources
Can be configured to host public websites
HTML, CSS, JavaScript, images
Supports CNAME aliases
Supports .htaccess style configuration for URL rewrite
and redirect
Supports SSL for custom domain names
Billed for storage and for transfer
 
 
A
W
S
 
A
r
c
h
i
t
e
c
t
u
r
e
 
 
A
P
I
 
G
a
t
e
w
a
y
 
Acts as the ‘front door’ to the application
Handles authorization and access control
Exposes Lambda functions to your front-end
application code
Billed for API calls
 
A
W
S
 
A
r
c
h
i
t
e
c
t
u
r
e
 
 
L
a
m
b
d
a
 
Run code without servers
Supports Node.js, Python, Java, C#, and Go.
Can use existing libraries
Upload functions, configure triggers
Works closely with API gateway via proxy
integration
Business logic and data access code goes
here
Billed for compute cycles (function run time)
 
A
W
S
 
A
r
c
h
i
t
e
c
t
u
r
e
 
 
D
y
n
a
m
o
D
B
 
Document database in the cloud
Non-relational (NoSQL)
Fast and scalable
Built in security, backup, restore, caching
Billed for storage and for transfer
 
S
u
p
p
o
r
t
i
n
g
 
C
a
s
t
 
Auth0
CloudFormation
CloudWatch
Serverless.com
 
S
e
r
v
e
r
l
e
s
s
 
F
r
a
m
e
w
o
r
k
 
The ‘glue’
3
rd
 party service
“A toolkit for deploying and operating serverless
architectures”
Cloud infrastructure as code
Deployment tools
Environment configuration
Profiles
IAM Roles
CloudFormation
 
D
e
m
o
 
G
o
t
c
h
a
s
 
CORS
https://serverless.com/blog/cors-api-gateway-
survival-guide/
 Lambda Proxy Integration response
Client-side authentication
AWS Custom Authorizers and Auth0
JSON Web Tokens
Example code issues
Framework maturity
 
L
i
n
k
s
 
a
n
d
 
Q
u
e
s
t
i
o
n
s
 
https://github.com/scottmetoyer/libapps-cloud
https://serverless.com/
https://auth0.com/
https://github.com/serverless/examples
Slide Note
Embed
Share

Explore how to leverage AWS managed services to develop web applications in a serverless architecture. Discover the business case for cloud adoption, different AWS application models, basic requirements for CRUD operations, and AWS architecture components like S3, Lambda, and more.


Uploaded on Aug 06, 2024 | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. Download presentation by click this link. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

E N D

Presentation Transcript


  1. Building Serverless Enterprise Applications Using AWS managed services to build web apps

  2. Agenda Justification Application requirements AWS serverless architecture Frameworks and tooling Gotchas Questions

  3. Whats the business case? Know why you are building in the cloud before you start Hint: It s probably not to save money Some ideas Improve responsiveness to customer needs Centralize and automate resource management Document and version environment Support cyclic or shifting usage patterns (match supply with demand) Develop skillsets

  4. AWS Application Models Lift-and-shift Take existing virtual machines and move them to cloud-hosted EC2 instances (rehost) Quickest and cheapest, but fewest cloud advantages Rearchitect Rebuild application from the ground up using managed services Most time consuming and expensive, but most cloud advantages

  5. Requirements Basic CRUD operations Create, read, update, delete Multi-user Scalable Secure (authentication and authorization) Use managed resources Align with AWS best practices

  6. Annual Equipment Request App Used to manage the Library s annual purchase and prioritization cycle 20 users with varied roles and permissions Create, list, update, delete records Old, ready for rework Big enough to be non trivial, small enough that we had a chance of success Built with PHP (Laravel), jQuery, SQL Server

  7. AWS Architecture Javascript (AngularJS) HTML CSS Images API Gateway S3 Lambda DynamoDB Auth0

  8. AWS Architecture S3 Cloud document storage Hosts static web resources Can be configured to host public websites HTML, CSS, JavaScript, images Supports CNAME aliases Supports .htaccess style configuration for URL rewrite and redirect Supports SSL for custom domain names Billed for storage and for transfer

  9. AWS Architecture API Gateway Acts as the front door to the application Handles authorization and access control Exposes Lambda functions to your front-end application code Billed for API calls

  10. AWS Architecture Lambda Run code without servers Supports Node.js, Python, Java, C#, and Go. Can use existing libraries Upload functions, configure triggers Works closely with API gateway via proxy integration Business logic and data access code goes here Billed for compute cycles (function run time)

  11. AWS Architecture DynamoDB Document database in the cloud Non-relational (NoSQL) Fast and scalable Built in security, backup, restore, caching Billed for storage and for transfer

  12. Supporting Cast Auth0 CloudFormation CloudWatch Serverless.com

  13. Serverless Framework The glue 3rdparty service A toolkit for deploying and operating serverless architectures Cloud infrastructure as code Deployment tools Environment configuration Profiles IAM Roles CloudFormation

  14. Demo

  15. Gotchas CORS https://serverless.com/blog/cors-api-gateway- survival-guide/ Lambda Proxy Integration response Client-side authentication AWS Custom Authorizers and Auth0 JSON Web Tokens Example code issues Framework maturity

  16. Links and Questions https://github.com/scottmetoyer/libapps-cloud https://serverless.com/ https://auth0.com/ https://github.com/serverless/examples

Related


More Related Content

giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#