Skip to Main Content
Serverless Architectures with Kubernetes
book

Serverless Architectures with Kubernetes

by Onur Yılmaz, Sathsara Sarathchandra
November 2019
Intermediate to advanced content levelIntermediate to advanced
474 pages
7h 46m
English
Packt Publishing
Content preview from Serverless Architectures with Kubernetes

Appendix

About

This section is included to assist the students to perform the activities in the book.

It includes detailed steps that are to be performed by the students to achieve the objectives of the activities.

1. Introduction to Serverless

Activity 1: Twitter Bot Backend for Bike Points in London

Solution:

Execute the following steps to complete this activity:

  1. Create a main.go file for registering function handlers, as in Exercise 1.

    This code is the entry point of the application where functions are registered, and the main application is started:

    package main

    import (

       "fmt"

       "net/http"

    )

    func main() {

       fmt.Println("Starting the 🚲 finder..")

       http.HandleFunc("/", FindBikes)

       fmt.Println("Function handlers are registered.")

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Cloud Native with Kubernetes

Cloud Native with Kubernetes

Alexander Raul

Publisher Resources

ISBN: 9781838983277Supplemental Content