Create a Highly Available Architecture in Oracle Cloud Infrastructure (OCI)

Get started in OCI by creating an infrastructure containing load balancers and compute instances hosted in different availability domains

Vinicius Monteiro
13 min readNov 2, 2022

by Vinicius Monteiro

Infrastructure diagram (draw.io by author)

In one of my articles, I showed how to start with the Java framework Dropwizard. I built a simple “Hello World” REST API and deployed it using Docker.

In this tutorial, we’ll deploy the same application in the cloud. More specifically, in Oracle Cloud Infrastructure (OCI).

This tutorial is inspired by an example in the Practical Oracle Cloud Infrastructure book by Michał Tomasz Jakóbczyk. It’s a great book, and I highly recommend it to anyone learning about OCI.

The application source code is in this Git repo.

The overall infrastructure consists of a load balancer pointing to two network subnets and two compute instances hosting the REST API. The load balancer distributes the load in a round-robin fashion.

The load balancer’s subnets and compute instances are in different availability domains. This way, the application is fault-tolerant and highly available.

--

--

Vinicius Monteiro
Vinicius Monteiro

Written by Vinicius Monteiro

Principal Software Developer at Oracle - MySQL Database Service on OCI (views here my own) | https://twitter.com/vinidsmonteiro | vinidsmonteiro@gmail.com

Responses (1)