Code patterns

Roadmaps for solving complex programming challenges.

Patterns give you a 360-degree view of the underlying code, including overviews, architecture diagrams, process flows, repo pointers, and additional reading.

Integrate adversarial attacks into a model training pipeline

Use a Jupyter Notebook to integrate the Fast Gradient Method from the Adversarial Robustness Toolbox into a model training pipeline leveraging FfDL.


Use MQTT to stream real-time data

Create a real-time stream of carbon intensity for the NY State grid with MQTT and Kubernetes


Create an Android app with Blockchain integration

This code pattern is for developers who want to provide data anonymity and security to their users. Learn how to build a native Android app, deploy a Blockchain Network in Kubernetes, and then integrate the Android app with the Blockchain Network.


Deploy Hyperledger Fabric network on IBM Cloud

Get started with blockchain by deploying the blockchain network on Hyperledger Fabric using Kubernetes APIs on the IBM Cloud Kubernetes Service.


Deploy a React application on Kubernetes

Built for developers who are interested in learning how to deploy a React application on Kubernetes, this code pattern uses the React and Redux framework and calls the OMDb API to look up movie information based on user input. This pattern can be built and run on both Docker and Kubernetes.


Deploy and use a multi-framework deep learning platform on Kubernetes

Deploy and consume a deep learning platform on Kubernetes, offering TensorFlow, Caffe, PyTorch etc. as a service.


Deploy Akka Cluster on Kubernetes

Akka Cluster is a fault-tolerant peer-to-peer cluster membership service. Kubernetes provides multiple features that are a great fit for running applications built with Akka Cluster. Learn how to configure your Akka Cluster application to run on top of Kubernetes, taking advantage of its many standard features.


Classify art using TensorFlow

Learn how to build your own data set and train a TensorFlow model for image classification on a Kubernetes cluster.


Cloud-host a graph database using Kubernetes

Learn how to quickly host OrientDB on the IBM Cloud Kubernetes Service by using Kubernetes APIs.


Implement computer vision for PlayerUnknown’s Battlegrounds live streams

PUBG Rotisserie performs OCR on Twitch live streams to identify which streams have only a handful of players left and are close to the final moments of play.


Assemble a pizza-ordering chatbot dialog

The new Watson Conversation Slots feature allows you to create a complex dialog with fewer nodes. Using slots in this example, we can define the fields in one dialog node and handle the logic in a single node.


Deploy Spring Boot microservices on Kubernetes

This developer journey demonstrates a deployment of a polyglot microservices application including Spring Boot microservices on a Kubernetes cluster.


Manage microservices traffic using Istio

Developers can use a service mesh to manage microservices with load balancing, advanced traffic management, request tracing and connective capabilities.


Deploy Java microservices on Kubernetes with polyglot support

Deploy a Java microservices application that runs alongside other polyglot microservices, leveraging service discovery, registration, and routing.


Deploy MicroProfile-based Java microservices on Kubernetes

Create and deploy Java 8-based microservices using MicroProfile and Kubernetes with the skills and experience you already have.