Skip to content

Commit 51fcdcf

Browse files
committed
working on serverless info
1 parent 2164b30 commit 51fcdcf

File tree

10 files changed

+94
-13
lines changed

10 files changed

+94
-13
lines changed

content/pages/08-web-app-deployment/06-platform-as-a-service.markdown

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,12 @@ application framework and your app itself is up to date and secured. See the
5353

5454
* [Google App Engine](https://developers.google.com/appengine/)
5555

56-
* [Gondor](https://gondor.io/)
57-
5856
* [PythonAnywhere](https://www.pythonanywhere.com/)
5957

6058
* [OpenShift](https://openshift.redhat.com/community/get-started/python)
6159

62-
* [AWS Elastic Beanstalk](https://aws.amazon.com/elasticbeanstalk/)
60+
* [AWS Elastic Beanstalk](https://aws.amazon.com/elasticbeanstalk/),
61+
[AWS CodeStar](https://aws.amazon.com/codestar/)
6362

6463

6564
## Platform-as-a-service resources
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
title: Serverless
2+
category: page
3+
slug: serverless
4+
sortorder: 0835
5+
toc: False
6+
sidebartitle: Serverless
7+
meta: Serverless is an deployment architecture where servers are not explicitly provisioned and code is run based on pre-defined events.
8+
9+
10+
# Serverless
11+
Serverless is an [deployment](/deployment.html) architecture where
12+
[servers](/servers.html) are not explicitly provisioned. Code is instead
13+
executed based on developer-defined events, such as an incoming HTTP request
14+
or a new line written in a file.
15+
16+
Servers still exist to execute the code but they are abstracted away from
17+
the developer and handled by a compute platform such as
18+
[Amazon Web Services Lambda](/aws-lambda.html) or
19+
[Google Cloud Functions](/google-cloud-functions.html).
20+
21+
22+
<img src="/img/visuals/serverless.png" width="100%" alt="Serverless compute spectrum." class="technical-diagram">
23+
24+
25+
### Python-specific serverless resources
26+
27+
28+
### General serverless resources
29+

content/pages/07-web-development/31-aws-lambda.markdown renamed to content/pages/08-web-app-deployment/36-aws-lambda.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
title: AWS Lambda
22
category: page
33
slug: aws-lambda
4-
sortorder: 0731
4+
sortorder: 0836
55
toc: False
66
sidebartitle: AWS Lambda
77
meta: AWS Lambda is a serverless compute service that can execute arbitrary Python 2.7 and 3.6 code.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
title: Google Cloud Functions
2+
category: page
3+
slug: google-cloud-functions
4+
sortorder: 0838
5+
toc: False
6+
sidebartitle: Google Cloud Functions
7+
meta: Google Cloud Functions is a serverless compute service.
8+
9+
10+
# Google Cloud Functions
11+
[Google Cloud Functions](https://cloud.google.com/functions/docs/concepts/overview)
12+
is a [serverless](/serverless.html) compute service that executes arbitrary
13+
code. However, at this time Google Cloud Functions is a beta service that
14+
does not work with Python.
15+
16+
[Amazon Web Services (AWS) Lambda](/aws-lambda.html) is currently a good
17+
alternative until Google Cloud Functions supports Python.

content/posts/160511-send-sms-text-message-python.markdown

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ in the
120120
# change the "from_" number to your Twilio number and the "to" number
121121
# to the phone number you signed up for Twilio with, or upgrade your
122122
# account to send SMS to any phone number
123-
client.api.account.messages.create(to="+19732644152",
124-
from_="+12023351278",
125-
body="Hello from Python!")
123+
client.messages.create(to="+19732644152",
124+
from_="+12023351278",
125+
body="Hello from Python!")
126126

127127

128128
All the lines above that start with `#` are comments. Once you enter that

mockups/full-stack-python.bmpr

33 KB
Binary file not shown.

static/img/visuals/serverless.png

140 KB
Loading
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<h3>What's next after Google Cloud Functions</h3>
2+
<div class="row">
3+
<div class="col-md-4">
4+
<div class="well select-next">
5+
{% include "choices/buttons/web-frameworks.html" %}
6+
</div>
7+
</div>
8+
<div class="col-md-4">
9+
<div class="well select-next">
10+
{% include "choices/buttons/docker.html" %}
11+
</div>
12+
</div>
13+
<div class="col-md-4">
14+
<div class="well select-next">
15+
{% include "choices/buttons/api-creation.html" %}
16+
</div>
17+
</div>
18+
</div>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<h3>What else do you want to learn about serverless and deployments?</h3>
2+
<div class="row">
3+
<div class="col-md-4">
4+
<div class="well select-next">
5+
{% include "choices/buttons/deployment.html" %}
6+
</div>
7+
</div>
8+
<div class="col-md-4">
9+
<div class="well select-next">
10+
{% include "choices/buttons/docker.html" %}
11+
</div>
12+
</div>
13+
<div class="col-md-4">
14+
<div class="well select-next">
15+
{% include "choices/buttons/databases.html" %}
16+
</div>
17+
</div>
18+
</div>

theme/templates/table-of-contents.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,6 @@ <h4 class="toc-subsection">7.5 <a href="/task-queues.html">Task queues</a></h4>
151151
<div class="toc"><a href="/redis-queue-rq.html">Redis Queue (RQ)</a></div>
152152
<div class="toc soon">Huey</div>
153153

154-
<h4 class="toc-subsection">7.6 <span class="soon">Serverless Architectures</span></h4>
155-
<div class="toc soon">AWS Lambda</div>
156-
<div class="toc soon">Google Cloud Functions</div>
157-
<div class="toc soon">Azure Functions</div>
158-
<div class="toc soon">Bluemix OpenWhisk</div>
159-
160154
<h4 class="toc-subsection">7.7 <a href="/static-site-generator.html">Static site generators</a></h4>
161155
<div class="toc"><a href="/pelican.html">Pelican</a></div>
162156
<div class="toc"><a href="/lektor.html">Lektor</a></div>
@@ -214,6 +208,12 @@ <h4 class="toc-subsection">8.7 <a href="/configuration-management.html">Configur
214208
<h4 class="toc-subsection">8.8 <span class="soon">Containers</span></h4>
215209
<div class="toc"><a href="/docker.html">Docker</a></div>
216210
<div class="toc soon">Kubernetes</div>
211+
212+
<h4 class="toc-subsection">8.9 <a href="/serverless.html">Serverless Architectures</a></h4>
213+
<div class="toc"><a href="/aws-lambda.html">AWS Lambda</a></div>
214+
<div class="toc soon">Azure Functions</div>
215+
<div class="toc"><a href="/google-cloud-functions.html">Google Cloud Functions</a></div>
216+
<div class="toc soon">Bluemix OpenWhisk</div>
217217
</div>
218218

219219
<div class="col-md-4">

0 commit comments

Comments
 (0)