DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
What's in store for DevOps in 2023? Hear from the experts in our "DZone 2023 Preview: DevOps Edition" on Fri, Jan 27!
Save your seat
  1. DZone
  2. Software Design and Architecture
  3. Cloud Architecture
  4. The Gorilla Guide to Serverless on Kubernetes, Chapter 7: Serverless in the Real World

The Gorilla Guide to Serverless on Kubernetes, Chapter 7: Serverless in the Real World

Take a look at these real-world examples of how to apply serverless functions in the real world.

Vamsi Chemitiganti user avatar by
Vamsi Chemitiganti
·
Mar. 20, 19 · Presentation
Like (4)
Save
Tweet
Share
5.01K Views

Join the DZone community and get the full member experience.

Join For Free

Serverless in the Real World

In this last part of the guide, we'll show some practical examples of serverless. The first one is a common banking application using web and API technologies. It uses a database running on Kubernetes, CockroachDB, with various functions in Fission, the open source Kubernetes-native Serverless Framework interacting directly.

Each example is accompanied by a GitHub page that enables you to easily run the sample code on any Kubernetes environment with Fission.

Example 1: Banking Site

Each of the actions on the site, like depositing, withdrawing, and transferring money between accounts and balances are functions running on Fission, triggered by HTTP actions.

Fission lets you easily and quickly create the various functional areas of the site, such as creating an account and various banking activities as functions.

Check out this GitHub page to run this sample use case on any Fission environment.
  1. When a user visits a web page, the browser hits the web server's HTTP trigger to get the HTML files.
  2. Any operations on the web page send an AJAX HTTP request to backend RESTful API functions.
  3. Once a function receives requests, it interacts with the database, which launched in a different namespace, to get/insert/update records.
  4. After database operations complete, the function response user requests with HTTP code and the message body.

Example 2: Carpool

The carpool application is a great example of combining multiple functions into a single workflow, parallelizing certain functions to optimize the flow.

Check out this GitHub page to run this sample use case on any Fission environment.

The application tries to match a car owner offering seats in their car with riders looking for one or more seats in a shared carpool.

Example 3: Internet of Things

Check out this GitHub page to run this sample use case on any Fission environment.

This use case shows how a serverless app consumes sensor data from IoT vehicles to figure out the most optimal route.

The Unstoppable Force

Serverless is an unstoppable force that's changing the way developers release code into production. It allows them to focus on what's important: developing business logic. It abstracts everything the developer shouldn't have to worry about, increasing their velocity, simplifying the pipeline, and shortening the feedback loops.

Organizations adopting serverless are able to adapt to changing requirements more quickly and make it easier to do more and smaller experiments, to quickly discover what works and what doesn't. This leads to better quality code, delivered faster.

The unified serverless experience of Fission allows functions to run locally, on the developer's laptop, in the data center, or in the cloud by leveraging the power of the Kubernetes platform.

The ability to run functions in spare compute capacity in the on-premises data center has more than just cost benefits. It also minimizes network latency and associated network bandwidth costs.

Learn more and install Fission


To learn more about Serverless, download the Gorilla Guide: Serverless on Kubernetes.


Kubernetes

Published at DZone with permission of Vamsi Chemitiganti, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Bye Bye, Regular Dev [Comic]
  • Better Performance and Security by Monitoring Logs, Metrics, and More
  • Top 10 Secure Coding Practices Every Developer Should Know
  • Differences Between Site Reliability Engineer vs. Software Engineer vs. Cloud Engineer vs. DevOps Engineer

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: