September 30, 2020 By Vidyasagar Machupalli 2 min read

Learn to deploy a public frontend and a private backend app, bind Cloud services to the backend, and run a job to analyze uploaded text files. 

Follow the steps in the solution tutorial and use the companion code sample to learn about IBM Cloud™ Code Engine by deploying a text analysis application.

You will create a Code Engine project, select the project, and deploy Code Engine entities—applications and jobs to the project. You will learn how to bind IBM Cloud services (e.g., IBM Cloud Object Storage and Natural Language Understanding) to your Code Engine entities. You’ll also learn about the auto-scaling capability of Code Engine, where instances are scaled up or down (to zero) based on incoming workload.

What is IBM Cloud Code Engine?

We recently announced IBM Cloud Code Engine as the newest platform to host all of your cloud native workloads. With Code Engine, you can enjoy the cloud again.

Code Engine is a fully managed, serverless platform that runs your containerized workloads, including web apps, microservices, event-driven functions, or batch jobs. Code Engine even builds container images for you from your source code. Because these workloads are all hosted within the same Kubernetes infrastructure, all of them can seamlessly work together. The Code Engine experience is designed so that you can focus on writing code and not on the infrastructure that is needed to host it.

Code Engine helps developers by hiding many of the complex tasks, like configuration, dependency management etc., Code Engine simplifies container-based management and enables you to concentrate on writing code. It also makes available many of the features of a serverless platform, such as “scale-to-zero.”

Objectives

  • Understand IBM Cloud Code Engine and how it simplifies the developer experience.
  • Understand how easy it is to deploy and scale an application using Code Engine.
  • Learn the use of jobs to execute run to completion workloads.

Architecture

  1. Developer creates a Code Engine project and deploys a frontend and a backend Code Engine application.
  2. Developer connects the frontend (UI) app to the backend by modifying the frontend application to set an environment variable value to point to the backend application’s endpoint.
  3. Developer provisions the required cloud services and binds them to the backend application and jobs by creating secrets and configmap.
  4. User uploads a text filw(s) via the frontend app that is stored in Object Storage through the backend application.
  5. User runs a Code Engine job via the backend to analyze text by pushing the text to Natural Language Understanding. The result is then saved to Object Storage and displayed in the frontend app when the user clicks the refresh button.

Check out the solution tutorial for easy-to-follow steps.

Questions and feedback

If you have feedback, suggestions, or questions about this post, please reach out to me on Twitter @VidyasagarMSC or use the feedback button on the tutorial to report a problem on its content. You can also open issues

The tutorials section has a feedback form on the side where you can comment on the content. If you have suggestions on the existing tutorials or ideas for future additions, please submit your feedback.

Was this article helpful?
YesNo

More from Cloud

Fortressing the digital frontier: A comprehensive look at IBM Cloud network security services

6 min read - The cloud revolution has fundamentally transformed how businesses operate. Its superior scalability, agility and cost-effectiveness have made it the go-to platform for organizations of all sizes. However, this shift to the cloud has introduced a new landscape of ever-evolving security threats. Data breaches and cyberattacks continue to hit organizations, making robust cloud network security an absolute necessity. IBM®, a titan in the tech industry, recognizes this critical need, provides a comprehensive suite of tools and offers unmatched expertise to fortify…

How well do you know your hypervisor and firmware?

6 min read - IBM Cloud® Virtual Private Cloud (VPC) is designed for secured cloud computing, and several features of our platform planning, development and operations help ensure that design. However, because security in the cloud is typically a shared responsibility between the cloud service provider and the customer, it’s essential for you to fully understand the layers of security that your workloads run on here with us. That’s why here, we detail a few key security components of IBM Cloud VPC that aim…

New IBM study: How business leaders can harness the power of gen AI to drive sustainable IT transformation

3 min read - As organizations strive to balance productivity, innovation and environmental responsibility, the need for sustainable IT practices is even more pressing. A new global study from the IBM Institute for Business Value reveals that emerging technologies, particularly generative AI, can play a pivotal role in advancing sustainable IT initiatives. However, successful transformation of IT systems demands a strategic and enterprise-wide approach to sustainability. The power of generative AI in sustainable IT Generative AI is creating new opportunities to transform IT operations…

IBM Newsletters

Get our newsletters and topic updates that deliver the latest thought leadership and insights on emerging trends.
Subscribe now More newsletters