E-books

OpenShift for Developers, Second Edition

Joshua Wood, Brian Tannous
September 20, 2021
OpenShift for Developers e-book cover

About

Red Hat UBI book cover

Get a hands-on introduction to daily life as a developer crafting code on OpenShift, the open source container application platform from Red Hat. Creating and packaging your applications for deployment on modern distributed systems can be daunting. Too often, sophisticated infrastructure can complicate development. With this practical guide, you'll learn how to build, deploy, and manage a multitiered application on Red Hat OpenShift.

With the Kubernetes container orchestrator at its core, OpenShift simplifies and automates how you build, ship, and run code. You'll learn how to use OpenShift and the Quarkus Java framework to develop and deploy apps using proven enterprise technologies and practices that you can apply to code in any language.

  • Learn the development techniques and tools for building and deploying on OpenShift.
  • Use OpenShift to build, deploy, and manage the ongoing lifecycle of an n-tier application.
  • Create a continuous integration and deployment pipeline to turn your source code changes into production rollouts.
  • Automate scaling decisions with metrics and trigger application lifecycle events with webhooks.

Excerpt

As you saw in the preceding chapter, the current deployment of the quarkus-backend only stores the list of posts in memory. Keeping lists in memory is excellent for performance, but all the posts will be lost each time the app restarts. Now, imagine if your bank lost your account information each time it decided to add a new feature or fix an issue. You’d probably be first in line at a new bank.

State is a critical aspect of many applications, and databases are one way to handle the information your application needs to keep, such as tracking your bank account ledger or maintaining the list of notes when the quarkus-backend restarts. In this chapter, you will deploy a PostgreSQL database and bind the Noted app to it to store the posts.

Comments