---
title: "Discussion on \"Running APEX & ORDS on your own Domain with Oracle OCI Free Tier\" | Hashnode"
description: "Discussion on \"Running APEX & ORDS on your own Domain with Oracle OCI Free Tier\". In this post, I will describe a production ready architecture (with some caveats) where you can run Oracle APEX and ORDS for free on your own custom domain."
url: "https://hashnode.com/posts/production-ready-apex-oci-free/6277cbf0dc122f5a4f21fe63"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Running APEX & ORDS on your own Domain with Oracle OCI Free Tier](https://blog.cloudnueva.com/production-ready-apex-oci-free?utm_source=hashnode&utm_medium=feed)

In this post, I will describe a production ready architecture (with some caveats) where you can run Oracle APEX and ORDS for free on your own custom domain.

May 8, 2022 · 9 min read · blog.cloudnueva.com  
Updated Jun 26, 2022  
Read the article

-   [#oracle](https://hashnode.com/tag/oracle)

## Written by

[Jon Dixon](https://hashnode.com/@orclapex)

@orclapex · San Diego, CA

  
[View profile](https://hashnode.com/@orclapex)

APEX, ORDS & the Oracle Database

I’m Jon Dixon, an Oracle APEX developer and consultant at Cloud Nueva. I write about APEX, ORDS, the Oracle Database, and how AI is changing the way we build software. This blog is where I share practical examples, lessons learned, and ideas from my work.

## Responses 4

Markdown supported · ⌘↵ to post

[Apex](https://hashnode.com/@appex)

[Nov 25, 2024](https://hashnode.com/posts/production-ready-apex-oci-free/6277cbf0dc122f5a4f21fe63/comment/674448cdfee1a1c00b6d264f)

Great info!

[zakaria](https://hashnode.com/@zakariah)

[Jun 5, 2024](https://hashnode.com/posts/production-ready-apex-oci-free/6277cbf0dc122f5a4f21fe63/comment/6660b99561fed4cc23f2d9b9)

Have there been any modifications to the process of proxying REST requests on within an Oracle Autonomous Database instance in the last while?

[Álvaro G. Dalloz](https://hashnode.com/@dalloz)

[Aug 23, 2023](https://hashnode.com/posts/production-ready-apex-oci-free/6277cbf0dc122f5a4f21fe63/comment/64e68765cae237eabaabafb2)

Hi Jon,

I have some concerns regarding the utilization of the free OCI Apex in a production-ready architecture. According to the current documentation:

"The HTTP interface for Always Free Autonomous Databases is rate-limited to restrict the number of simultaneous service users. Approximately 3-6 simultaneous users can be supported..."

Is this limit a recent introduction after your post? I'm curious about its impact on the 50 active users you estimated.

Keep up the excellent blogging!

Best regards, Alvaro

[Jon Dixon](https://hashnode.com/@orclapex)

[Aug 24, 2023](https://hashnode.com/posts/production-ready-apex-oci-free/6277cbf0dc122f5a4f21fe63/comment/64e68765cae237eabaabafb2#reply-64e75bfbcddf12fecdfc9144)

Hi Alvaro, thank you for the question. This restriction is new to me and does seem to be enforced. I used a load test tool called siege to simulate 30 concurrent users calling a public page that has 3 small reports on it 5 times each for a total of 150 requests. I got similar results running over customer-managed ORDS and the out-of-the-box URL. I started receiving 503 errors.

Siege command was similar to this: `siege -c30 -r5 "[example.com/ords/prod/r/cloudnueva/website/home&q…](https://www.example.com/ords/prod/r/cloudnueva/website/home%22) --no-parser`

### Customer Managed ORDS 12 503 errors out of

```
150 requests:
Transactions:                 138 hits
Availability:               92.00 %
Elapsed time:               10.34 secs
Data transferred:           10.46 MB
Response time:                1.28 secs
Transaction rate:           13.35 trans/sec
Throughput:                1.01 MB/sec
Concurrency:               17.05
Successful transactions:         137
Failed transactions:              12
Longest transaction:            8.40
Shortest transaction:            0.45
```

### Standard URL ORDS 32 503 errors out of 150 Requests

```
Transactions:                 118 hits
Availability:               78.67 %
Elapsed time:                8.43 secs
Data transferred:           20.99 MB
Response time:                1.27 secs
Transaction rate:           14.00 trans/sec
Throughput:                2.49 MB/sec
Concurrency:               17.74
Successful transactions:         117
Failed transactions:              32
Longest transaction:            5.99
Shortest transaction:            0.44
```

I suspect I got fewer errors from my customer-managed ORDS URL because it runs faster than the standard URL. With a concurrency of 5, I got 0 errors, so the limit seems to be there.

In conclusion, 5 simultaneous users could still support hundreds of actual users, just not if they all hit **_Go_** simultaneously.

[Jim Dickson](https://hashnode.com/@jdickson007)

[Aug 17, 2023](https://hashnode.com/posts/production-ready-apex-oci-free/6277cbf0dc122f5a4f21fe63/comment/64dd6f5d9154427d760d2971)

Great blog, and this content is very interesting to me. For now, just trying to get my head around a bunch of new concepts (webservers, apex).

You explicitly mention that this architecture relies on Oracle wallet - that sounds secure.

I was looking for more explicit how-do-i and found this apex-behind-a-custom-domain-using-oracle-cloud-and-nginx on DSP site - which makes no mention of wallet but does mention public/private keys.

I feel there is a gap in my knowledge - what am i missing ?

Also for ADB network choice, I assume following are best (most secure, whilst still free): ADB Network Access Type = "Secure access from allowed IPs and VCNs only" ABD Network Access Control List = Enabled

-   is that what you use too?

Jim

[Jon Dixon](https://hashnode.com/@orclapex)

[Aug 17, 2023](https://hashnode.com/posts/production-ready-apex-oci-free/6277cbf0dc122f5a4f21fe63/comment/64dd6f5d9154427d760d2971#reply-64dd9d7e9154427d760d3019)

Hi Jim, My approach requires setting up a Virtual Machine (VM) and running ORDS on that VM. That way, you can point your Domain to a specific public IP Address. The wallet comment relates to how ORDS connects to the Autonomous Database. To be honest, my approach is pretty labor-intensive and requires no small amount of maintenance.

If you are still interested, Scott and by reference Dimitri's blog posts have more details on the how. [spendolini.blog/front-man-using-nginx-to-proxy-re…](https://spendolini.blog/front-man-using-nginx-to-proxy-requests-to-apex-on-adb)
